/** * Set up the test by reading the input file and generating the outline tree. */ @Override protected final void beforeAllTests() { super.beforeAllTests(); IOutlineTreeProvider provider = getXtextTestUtil().get(IOutlineTreeProvider.class); getTestInformation().putTestObject(IOutlineNode.class, new HashMap<Object, ArrayList<IOutlineNode>>()); buildOutlineMap(provider.createRoot(getDocument())); }
/** * @since 2.2 */ protected void setInfoText() { if(treeProvider instanceof IOutlineTreeProvider.ModeAware) setInfoText("Press " + invokingKeystroke + " to " + ((IOutlineTreeProvider.ModeAware) treeProvider) .getNextMode().getDescription()); else setInfoText(Messages.QuickOutlinePopup_pressESC); }
/** * @since 2.2 */ protected void changeOutlineMode() { if(treeProvider instanceof IOutlineTreeProvider.ModeAware) { IOutlineTreeProvider.ModeAware modeTreeProvider = (IOutlineTreeProvider.ModeAware) treeProvider; OutlineMode nextMode = modeTreeProvider.getNextMode(); modeTreeProvider.setCurrentMode(nextMode); setInfoText(); setInput(document); } }
protected IOutlineNode refreshOutlineModel(final IProgressMonitor monitor, final OutlineTreeState formerState, final OutlineTreeState newState) { final IOutlineTreeProvider treeProvider = outlinePage.getTreeProvider(); if(treeProvider instanceof BackgroundOutlineTreeProvider) { return iternalRefreshOutlineModel(formerState, newState, treeProvider); } else { return new DisplayRunnableWithResult<IOutlineNode>() { @Override protected IOutlineNode run() throws Exception { return iternalRefreshOutlineModel(formerState, newState, treeProvider); } }.syncExec(); } }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return PkmntcgoOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return N4JSOutlineTreeProvider.class; }
/** Outline modes for showing inherited members or not */ public Class<? extends IOutlineTreeProvider.ModeAware> bindIOutlineTreeProvider_ModeAware() { return N4JSOutlineModes.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return RegularExpressionOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return N4MFOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return TypesOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return MyDslOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return BromiumOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return DSLPoliciesOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return LcDslOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return DslOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return RestauranteOutlineTreeProvider.class; }
@Override public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return RestauranteOutlineTransformer.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return OCCIOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return Mas2jOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return AslOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return MinitlOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return ModelEditorOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return MongoBeansOutlineTreeProvider.class; }
public IOutlineTreeProvider getTreeProvider() { return treeProvider; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return ComponentOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return ClsOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return UsecaseOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return ASBHLangOutlineTreeProvider.class; }
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { return MiniOCLOutlineTreeProvider.class; }
/** * Asserts that the outline tree has a node with the given name and type. * * @param nodeName * the name of the node expected in the outline. * @param nodeType * the type of the node expected in the outline. * @return the {@link IOutlineNode} with the given name, {@code null} if it does not exist */ protected IOutlineNode assertHasOutlineNode(final String nodeName, final String nodeType) { IOutlineTreeProvider provider = getXtextTestUtil().get(IOutlineTreeProvider.class); IOutlineNode field = findNode(provider.createRoot(getDocument()), nodeName, nodeType); Assert.assertTrue("Outline must contain element '" + nodeName + "'.", field != null); return field; }