Search in sources :

Example 1 with ActionsVisibleWhen

use of org.whole.lang.e4.ui.expressions.ActionsVisibleWhen in project whole by wholeplatform.

the class AbstractUIBuilder method addMigrateItem.

@Override
public void addMigrateItem() {
    FeatureDescriptor menu = ActionsFeatureDescriptorEnum.migrateMenuActions;
    VisibilityExpression expression = new ActionsVisibleWhen(menu);
    IContributionItem ici = new ActionsCompositeContributionItem(this, menu);
    addActionsItem(MIGRATE_LABEL, expression, ici);
}
Also used : FeatureDescriptor(org.whole.lang.reflect.FeatureDescriptor) ActionsVisibleWhen(org.whole.lang.e4.ui.expressions.ActionsVisibleWhen) IContributionItem(org.eclipse.jface.action.IContributionItem) VisibilityExpression(org.whole.lang.e4.ui.expressions.VisibilityExpression) ActionsCompositeContributionItem(org.whole.lang.e4.ui.menu.ActionsCompositeContributionItem)

Example 2 with ActionsVisibleWhen

use of org.whole.lang.e4.ui.expressions.ActionsVisibleWhen in project whole by wholeplatform.

the class AbstractUIBuilder method addRefactorItem.

@Override
public void addRefactorItem() {
    FeatureDescriptor menu = ActionsFeatureDescriptorEnum.refactorMenuActions;
    VisibilityExpression expression = new ActionsVisibleWhen(menu);
    IContributionItem ici = new ActionsCompositeContributionItem(this, menu);
    addActionsItem(REFACTOR_LABEL, expression, ici);
}
Also used : FeatureDescriptor(org.whole.lang.reflect.FeatureDescriptor) ActionsVisibleWhen(org.whole.lang.e4.ui.expressions.ActionsVisibleWhen) IContributionItem(org.eclipse.jface.action.IContributionItem) VisibilityExpression(org.whole.lang.e4.ui.expressions.VisibilityExpression) ActionsCompositeContributionItem(org.whole.lang.e4.ui.menu.ActionsCompositeContributionItem)

Example 3 with ActionsVisibleWhen

use of org.whole.lang.e4.ui.expressions.ActionsVisibleWhen in project whole by wholeplatform.

the class AbstractUIBuilder method addAnalyzeItem.

@Override
public void addAnalyzeItem() {
    FeatureDescriptor menu = ActionsFeatureDescriptorEnum.analyzeMenuActions;
    VisibilityExpression expression = new ActionsVisibleWhen(menu);
    IContributionItem ici = new ActionsCompositeContributionItem(this, menu);
    addActionsItem(ANALYZE_LABEL, expression, ici);
}
Also used : FeatureDescriptor(org.whole.lang.reflect.FeatureDescriptor) ActionsVisibleWhen(org.whole.lang.e4.ui.expressions.ActionsVisibleWhen) IContributionItem(org.eclipse.jface.action.IContributionItem) VisibilityExpression(org.whole.lang.e4.ui.expressions.VisibilityExpression) ActionsCompositeContributionItem(org.whole.lang.e4.ui.menu.ActionsCompositeContributionItem)

Example 4 with ActionsVisibleWhen

use of org.whole.lang.e4.ui.expressions.ActionsVisibleWhen in project whole by wholeplatform.

the class AbstractUIBuilder method addTranslateItem.

@Override
public void addTranslateItem() {
    FeatureDescriptor menu = ActionsFeatureDescriptorEnum.translateMenuActions;
    VisibilityExpression expression = new ActionsVisibleWhen(menu);
    IContributionItem ici = new ActionsCompositeContributionItem(this, menu);
    addActionsItem(TRANSLATE_LABEL, expression, ici);
}
Also used : FeatureDescriptor(org.whole.lang.reflect.FeatureDescriptor) ActionsVisibleWhen(org.whole.lang.e4.ui.expressions.ActionsVisibleWhen) IContributionItem(org.eclipse.jface.action.IContributionItem) VisibilityExpression(org.whole.lang.e4.ui.expressions.VisibilityExpression) ActionsCompositeContributionItem(org.whole.lang.e4.ui.menu.ActionsCompositeContributionItem)

Example 5 with ActionsVisibleWhen

use of org.whole.lang.e4.ui.expressions.ActionsVisibleWhen in project whole by wholeplatform.

the class AbstractUIBuilder method addSourceItem.

@Override
public void addSourceItem() {
    FeatureDescriptor menu = ActionsFeatureDescriptorEnum.sourceMenuActions;
    VisibilityExpression expression = new ActionsVisibleWhen(menu);
    IContributionItem ici = new ActionsCompositeContributionItem(this, menu);
    addActionsItem(SOURCE_LABEL, expression, ici);
}
Also used : FeatureDescriptor(org.whole.lang.reflect.FeatureDescriptor) ActionsVisibleWhen(org.whole.lang.e4.ui.expressions.ActionsVisibleWhen) IContributionItem(org.eclipse.jface.action.IContributionItem) VisibilityExpression(org.whole.lang.e4.ui.expressions.VisibilityExpression) ActionsCompositeContributionItem(org.whole.lang.e4.ui.menu.ActionsCompositeContributionItem)

Aggregations

IContributionItem (org.eclipse.jface.action.IContributionItem)5 ActionsVisibleWhen (org.whole.lang.e4.ui.expressions.ActionsVisibleWhen)5 VisibilityExpression (org.whole.lang.e4.ui.expressions.VisibilityExpression)5 ActionsCompositeContributionItem (org.whole.lang.e4.ui.menu.ActionsCompositeContributionItem)5 FeatureDescriptor (org.whole.lang.reflect.FeatureDescriptor)5