use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class ViewContainerReferencePropertiesEditionPartForm method createEventsTableComposition.
/**
* @param container
*/
protected Composite createEventsTableComposition(FormToolkit widgetFactory, Composite parent) {
this.events = new ReferencesTable(getDescription(ViewViewsRepository.ViewContainerReference.Properties.events, ViewMessages.ViewContainerReferencePropertiesEditionPart_EventsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
events.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
events.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
events.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
events.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.eventsFilters) {
this.events.addFilter(filter);
}
this.events.setHelpText(propertiesEditionComponent.getHelpContent(ViewViewsRepository.ViewContainerReference.Properties.events, ViewViewsRepository.FORM_KIND));
this.events.createControls(parent, widgetFactory);
this.events.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.events, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData eventsData = new GridData(GridData.FILL_HORIZONTAL);
eventsData.horizontalSpan = 3;
this.events.setLayoutData(eventsData);
this.events.setLowerBound(0);
this.events.setUpperBound(-1);
events.setID(ViewViewsRepository.ViewContainerReference.Properties.events);
// $NON-NLS-1$
events.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class ViewContainerReferencePropertiesEditionPartForm method createActionsTableComposition.
/**
* @param container
*/
protected Composite createActionsTableComposition(FormToolkit widgetFactory, Composite parent) {
this.actions = new ReferencesTable(getDescription(ViewViewsRepository.ViewContainerReference.Properties.actions, ViewMessages.ViewContainerReferencePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.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(ViewViewsRepository.ViewContainerReference.Properties.actions, ViewViewsRepository.FORM_KIND));
this.actions.createControls(parent, widgetFactory);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartForm.this, ViewViewsRepository.ViewContainerReference.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(ViewViewsRepository.ViewContainerReference.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 ViewElementPropertiesEditionPartForm method createEventsTableComposition.
/**
* @param container
*/
protected Composite createEventsTableComposition(FormToolkit widgetFactory, Composite parent) {
this.events = new ReferencesTable(getDescription(ViewViewsRepository.ViewElement.Properties.events, ViewMessages.ViewElementPropertiesEditionPart_EventsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
events.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
events.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
events.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.events, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
events.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.eventsFilters) {
this.events.addFilter(filter);
}
this.events.setHelpText(propertiesEditionComponent.getHelpContent(ViewViewsRepository.ViewElement.Properties.events, ViewViewsRepository.FORM_KIND));
this.events.createControls(parent, widgetFactory);
this.events.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.events, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData eventsData = new GridData(GridData.FILL_HORIZONTAL);
eventsData.horizontalSpan = 3;
this.events.setLayoutData(eventsData);
this.events.setLowerBound(0);
this.events.setUpperBound(-1);
events.setID(ViewViewsRepository.ViewElement.Properties.events);
// $NON-NLS-1$
events.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.jface.viewers.ViewerFilter in project InformationSystem by ObeoNetwork.
the class ViewElementPropertiesEditionPartForm method createActionsTableComposition.
/**
* @param container
*/
protected Composite createActionsTableComposition(FormToolkit widgetFactory, Composite parent) {
this.actions = new ReferencesTable(getDescription(ViewViewsRepository.ViewElement.Properties.actions, ViewMessages.ViewElementPropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.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(ViewViewsRepository.ViewElement.Properties.actions, ViewViewsRepository.FORM_KIND));
this.actions.createControls(parent, widgetFactory);
this.actions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartForm.this, ViewViewsRepository.ViewElement.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(ViewViewsRepository.ViewElement.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 LoopPropertiesEditionPartForm method createSubActivitiesTableComposition.
/**
* @param container
*/
protected Composite createSubActivitiesTableComposition(FormToolkit widgetFactory, Composite parent) {
this.subActivities = new ReferencesTable(getDescription(GraalViewsRepository.Loop.Properties.subActivities, GraalMessages.LoopPropertiesEditionPart_SubActivitiesLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(LoopPropertiesEditionPartForm.this, GraalViewsRepository.Loop.Properties.subActivities, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
subActivities.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(LoopPropertiesEditionPartForm.this, GraalViewsRepository.Loop.Properties.subActivities, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
subActivities.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(LoopPropertiesEditionPartForm.this, GraalViewsRepository.Loop.Properties.subActivities, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
subActivities.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(LoopPropertiesEditionPartForm.this, GraalViewsRepository.Loop.Properties.subActivities, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
subActivities.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.subActivitiesFilters) {
this.subActivities.addFilter(filter);
}
this.subActivities.setHelpText(propertiesEditionComponent.getHelpContent(GraalViewsRepository.Loop.Properties.subActivities, GraalViewsRepository.FORM_KIND));
this.subActivities.createControls(parent, widgetFactory);
this.subActivities.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(LoopPropertiesEditionPartForm.this, GraalViewsRepository.Loop.Properties.subActivities, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData subActivitiesData = new GridData(GridData.FILL_HORIZONTAL);
subActivitiesData.horizontalSpan = 3;
this.subActivities.setLayoutData(subActivitiesData);
this.subActivities.setLowerBound(0);
this.subActivities.setUpperBound(-1);
subActivities.setID(GraalViewsRepository.Loop.Properties.subActivities);
// $NON-NLS-1$
subActivities.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
Aggregations