org.eclipse.xtext.ui.editor.outline.impl.OutlineMode Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.outline.impl.OutlineMode.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: N4JSOutlineModes.java From n4js with Eclipse Public License 1.0 | 5 votes |
@Override public void setCurrentMode(OutlineMode outlineMode) { int newIndex = getOutlineModes().indexOf(outlineMode); if (newIndex != -1) { index = newIndex; } }
Example #2
Source File: QuickOutlinePopup.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * @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); } }
Example #3
Source File: N4JSOutlineModes.java From n4js with Eclipse Public License 1.0 | 4 votes |
@Override public OutlineMode getCurrentMode() { return getOutlineModes().get(index); }
Example #4
Source File: XtendOutlineModes.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void setCurrentMode(OutlineMode outlineMode) { int newIndex = getOutlineModes().indexOf(outlineMode); if (newIndex != -1) currentModeIndex = newIndex; }
Example #5
Source File: XtendOutlineModes.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public OutlineMode getNextMode() { return getOutlineModes().get((currentModeIndex + 1) % getOutlineModes().size()); }
Example #6
Source File: XtendOutlineModes.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public OutlineMode getCurrentMode() { return getOutlineModes().get(currentModeIndex); }
Example #7
Source File: XtendOutlineModes.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public List<OutlineMode> getOutlineModes() { return MODES; }
Example #8
Source File: XtendOutlineTreeProvider.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void setCurrentMode(OutlineMode outlineMode) { modeAware.setCurrentMode(outlineMode); }
Example #9
Source File: XtendOutlineTreeProvider.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public OutlineMode getNextMode() { return modeAware.getNextMode(); }
Example #10
Source File: XtendOutlineTreeProvider.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public OutlineMode getCurrentMode() { return modeAware.getCurrentMode(); }
Example #11
Source File: XtendOutlineTreeProvider.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public List<OutlineMode> getOutlineModes() { return modeAware.getOutlineModes(); }
Example #12
Source File: AbstractOutlineTests.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
protected void setShowInherited(boolean isShowInherited) { List<OutlineMode> modes = getTreeProvider().getOutlineModes(); getTreeProvider().setCurrentMode((isShowInherited) ? modes.get(1) : modes.get(0)); }
Example #13
Source File: XtextOutlineTreeProviderTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected void setShowInherited(boolean isShowInherited) { List<OutlineMode> outlineModes = treeProvider.getOutlineModes(); treeProvider.setCurrentMode(outlineModes.get(isShowInherited ? 1 : 0)); }
Example #14
Source File: XtextOutlineTreeProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public List<OutlineMode> getOutlineModes() { return MODES; }
Example #15
Source File: N4JSOutlineModes.java From n4js with Eclipse Public License 1.0 | 4 votes |
@Override public OutlineMode getNextMode() { return getOutlineModes().get((index + 1) % getOutlineModes().size()); }
Example #16
Source File: N4JSOutlineModes.java From n4js with Eclipse Public License 1.0 | 4 votes |
@Override public List<OutlineMode> getOutlineModes() { return MODES; }
Example #17
Source File: IOutlineTreeProvider.java From xtext-eclipse with Eclipse Public License 2.0 | votes |
void setCurrentMode(OutlineMode outlineMode);
Example #18
Source File: IOutlineTreeProvider.java From xtext-eclipse with Eclipse Public License 2.0 | votes |
OutlineMode getNextMode();
Example #19
Source File: IOutlineTreeProvider.java From xtext-eclipse with Eclipse Public License 2.0 | votes |
OutlineMode getCurrentMode();
Example #20
Source File: IOutlineTreeProvider.java From xtext-eclipse with Eclipse Public License 2.0 | votes |
List<OutlineMode> getOutlineModes();