org.eclipse.xtext.ui.editor.outline.actions.SortOutlineContribution Java Examples

The following examples show how to use org.eclipse.xtext.ui.editor.outline.actions.SortOutlineContribution. 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: MetaTypeAwareComparator.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public boolean isEnabled() {
	return preferenceStoreAccess.getPreferenceStore().getBoolean(SortOutlineContribution.PREFERENCE_KEY);
}
 
Example #2
Source File: SortContributionTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void tearDown() throws Exception {
	super.tearDown();
	setSorting(preferenceStore.getDefaultBoolean(SortOutlineContribution.PREFERENCE_KEY));
}
 
Example #3
Source File: SortContributionTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected void setSorting(boolean isSorting) {
	preferenceStore.setValue(SortOutlineContribution.PREFERENCE_KEY, isSorting);
}
 
Example #4
Source File: DefaultUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureToggleSortingOutlineContribution(Binder binder) {
	binder.bind(IOutlineContribution.class).annotatedWith(IOutlineContribution.Sort.class)
			.to(SortOutlineContribution.class);
}
 
Example #5
Source File: DefaultUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IComparator> bindOutlineFilterAndSorter$IComparator() {
	return SortOutlineContribution.DefaultComparator.class;
}
 
Example #6
Source File: OutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
protected void setSorting(boolean isSorting) {
	getPreferenceStoreAccess().getWritablePreferenceStore().setValue(SortOutlineContribution.PREFERENCE_KEY, isSorting);
}
 
Example #7
Source File: AbstractOutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
protected void setJvmMode(boolean isJvmMode) {
	getPreferenceStoreAccess().getWritablePreferenceStore().setValue(SwitchOutlineModeContribution.PREFERENCE_KEY,
			isJvmMode);
	getPreferenceStoreAccess().getWritablePreferenceStore().setValue(SortOutlineContribution.PREFERENCE_KEY, false);
}