use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class InitialStatePropertiesEditionPartImpl method createActionsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createActionsAdvancedTableComposition(Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.InitialState.Properties.actions, FlowMessages.InitialStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InitialStatePropertiesEditionPartImpl.this, FlowViewsRepository.InitialState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InitialStatePropertiesEditionPartImpl.this, FlowViewsRepository.InitialState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InitialStatePropertiesEditionPartImpl.this, FlowViewsRepository.InitialState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InitialStatePropertiesEditionPartImpl.this, FlowViewsRepository.InitialState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
actions.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.actionsFilters) {
this.actions.addFilter(filter);
}
this.actions.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.InitialState.Properties.actions, FlowViewsRepository.SWT_KIND));
this.actions.createControls(parent);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InitialStatePropertiesEditionPartImpl.this, FlowViewsRepository.InitialState.Properties.actions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData actionsData = new GridData(GridData.FILL_HORIZONTAL);
actionsData.horizontalSpan = 3;
this.actions.setLayoutData(actionsData);
this.actions.setLowerBound(0);
this.actions.setUpperBound(-1);
actions.setID(FlowViewsRepository.InitialState.Properties.actions);
// $NON-NLS-1$
actions.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class ViewStatePropertiesEditionPartImpl method createActionsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createActionsAdvancedTableComposition(Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.ViewState.Properties.actions, FlowMessages.ViewStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartImpl.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartImpl.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartImpl.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartImpl.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
actions.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.actionsFilters) {
this.actions.addFilter(filter);
}
this.actions.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.ViewState.Properties.actions, FlowViewsRepository.SWT_KIND));
this.actions.createControls(parent);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartImpl.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData actionsData = new GridData(GridData.FILL_HORIZONTAL);
actionsData.horizontalSpan = 3;
this.actions.setLayoutData(actionsData);
this.actions.setLowerBound(0);
this.actions.setUpperBound(-1);
actions.setID(FlowViewsRepository.ViewState.Properties.actions);
// $NON-NLS-1$
actions.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class AsyncEventStatePropertiesEditionPartImpl method createActionsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createActionsAdvancedTableComposition(Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.AsyncEventState.Properties.actions, FlowMessages.AsyncEventStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AsyncEventStatePropertiesEditionPartImpl.this, FlowViewsRepository.AsyncEventState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AsyncEventStatePropertiesEditionPartImpl.this, FlowViewsRepository.AsyncEventState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AsyncEventStatePropertiesEditionPartImpl.this, FlowViewsRepository.AsyncEventState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AsyncEventStatePropertiesEditionPartImpl.this, FlowViewsRepository.AsyncEventState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
actions.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.actionsFilters) {
this.actions.addFilter(filter);
}
this.actions.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.AsyncEventState.Properties.actions, FlowViewsRepository.SWT_KIND));
this.actions.createControls(parent);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AsyncEventStatePropertiesEditionPartImpl.this, FlowViewsRepository.AsyncEventState.Properties.actions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData actionsData = new GridData(GridData.FILL_HORIZONTAL);
actionsData.horizontalSpan = 3;
this.actions.setLayoutData(actionsData);
this.actions.setLowerBound(0);
this.actions.setUpperBound(-1);
actions.setID(FlowViewsRepository.AsyncEventState.Properties.actions);
// $NON-NLS-1$
actions.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class DecisionStatePropertiesEditionPartImpl method createActionsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createActionsAdvancedTableComposition(Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.DecisionState.Properties.actions, FlowMessages.DecisionStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DecisionStatePropertiesEditionPartImpl.this, FlowViewsRepository.DecisionState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DecisionStatePropertiesEditionPartImpl.this, FlowViewsRepository.DecisionState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DecisionStatePropertiesEditionPartImpl.this, FlowViewsRepository.DecisionState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DecisionStatePropertiesEditionPartImpl.this, FlowViewsRepository.DecisionState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
actions.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.actionsFilters) {
this.actions.addFilter(filter);
}
this.actions.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.DecisionState.Properties.actions, FlowViewsRepository.SWT_KIND));
this.actions.createControls(parent);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DecisionStatePropertiesEditionPartImpl.this, FlowViewsRepository.DecisionState.Properties.actions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData actionsData = new GridData(GridData.FILL_HORIZONTAL);
actionsData.horizontalSpan = 3;
this.actions.setLayoutData(actionsData);
this.actions.setLowerBound(0);
this.actions.setUpperBound(-1);
actions.setID(FlowViewsRepository.DecisionState.Properties.actions);
// $NON-NLS-1$
actions.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class FinalStatePropertiesEditionPartImpl method createActionsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createActionsAdvancedTableComposition(Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.FinalState.Properties.actions, FlowMessages.FinalStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalStatePropertiesEditionPartImpl.this, FlowViewsRepository.FinalState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalStatePropertiesEditionPartImpl.this, FlowViewsRepository.FinalState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalStatePropertiesEditionPartImpl.this, FlowViewsRepository.FinalState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalStatePropertiesEditionPartImpl.this, FlowViewsRepository.FinalState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
actions.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.actionsFilters) {
this.actions.addFilter(filter);
}
this.actions.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.FinalState.Properties.actions, FlowViewsRepository.SWT_KIND));
this.actions.createControls(parent);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalStatePropertiesEditionPartImpl.this, FlowViewsRepository.FinalState.Properties.actions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData actionsData = new GridData(GridData.FILL_HORIZONTAL);
actionsData.horizontalSpan = 3;
this.actions.setLayoutData(actionsData);
this.actions.setLowerBound(0);
this.actions.setUpperBound(-1);
actions.setID(FlowViewsRepository.FinalState.Properties.actions);
// $NON-NLS-1$
actions.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
Aggregations