use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener in project InformationSystem by ObeoNetwork.
the class AppliEventPropertiesEditionPartForm method createIncomingTransitionsReferencesTable.
/**
*/
protected Composite createIncomingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.incomingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.AppliEvent.Properties.incomingTransitions, GraalMessages.AppliEventPropertiesEditionPart_IncomingTransitionsLabel), new ReferencesTableListener() {
public void handleAdd() {
addIncomingTransitions();
}
public void handleEdit(EObject element) {
editIncomingTransitions(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveIncomingTransitions(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromIncomingTransitions(element);
}
public void navigateTo(EObject element) {
}
});
this.incomingTransitions.setHelpText(propertiesEditionComponent.getHelpContent(GraalViewsRepository.AppliEvent.Properties.incomingTransitions, GraalViewsRepository.FORM_KIND));
this.incomingTransitions.createControls(parent, widgetFactory);
this.incomingTransitions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AppliEventPropertiesEditionPartForm.this, GraalViewsRepository.AppliEvent.Properties.incomingTransitions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData incomingTransitionsData = new GridData(GridData.FILL_HORIZONTAL);
incomingTransitionsData.horizontalSpan = 3;
this.incomingTransitions.setLayoutData(incomingTransitionsData);
this.incomingTransitions.disableMove();
incomingTransitions.setID(GraalViewsRepository.AppliEvent.Properties.incomingTransitions);
// $NON-NLS-1$
incomingTransitions.setEEFType("eef::AdvancedReferencesTable");
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener in project InformationSystem by ObeoNetwork.
the class FinalNodePropertiesEditionPartForm method createOutgoingTransitionsReferencesTable.
/**
*/
protected Composite createOutgoingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.outgoingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.FinalNode.Properties.outgoingTransitions, GraalMessages.FinalNodePropertiesEditionPart_OutgoingTransitionsLabel), new ReferencesTableListener() {
public void handleAdd() {
addOutgoingTransitions();
}
public void handleEdit(EObject element) {
editOutgoingTransitions(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveOutgoingTransitions(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromOutgoingTransitions(element);
}
public void navigateTo(EObject element) {
}
});
this.outgoingTransitions.setHelpText(propertiesEditionComponent.getHelpContent(GraalViewsRepository.FinalNode.Properties.outgoingTransitions, GraalViewsRepository.FORM_KIND));
this.outgoingTransitions.createControls(parent, widgetFactory);
this.outgoingTransitions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalNodePropertiesEditionPartForm.this, GraalViewsRepository.FinalNode.Properties.outgoingTransitions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData outgoingTransitionsData = new GridData(GridData.FILL_HORIZONTAL);
outgoingTransitionsData.horizontalSpan = 3;
this.outgoingTransitions.setLayoutData(outgoingTransitionsData);
this.outgoingTransitions.disableMove();
outgoingTransitions.setID(GraalViewsRepository.FinalNode.Properties.outgoingTransitions);
// $NON-NLS-1$
outgoingTransitions.setEEFType("eef::AdvancedReferencesTable");
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener in project InformationSystem by ObeoNetwork.
the class FinalNodePropertiesEditionPartForm method createIncomingTransitionsReferencesTable.
/**
*/
protected Composite createIncomingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.incomingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.FinalNode.Properties.incomingTransitions, GraalMessages.FinalNodePropertiesEditionPart_IncomingTransitionsLabel), new ReferencesTableListener() {
public void handleAdd() {
addIncomingTransitions();
}
public void handleEdit(EObject element) {
editIncomingTransitions(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveIncomingTransitions(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromIncomingTransitions(element);
}
public void navigateTo(EObject element) {
}
});
this.incomingTransitions.setHelpText(propertiesEditionComponent.getHelpContent(GraalViewsRepository.FinalNode.Properties.incomingTransitions, GraalViewsRepository.FORM_KIND));
this.incomingTransitions.createControls(parent, widgetFactory);
this.incomingTransitions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FinalNodePropertiesEditionPartForm.this, GraalViewsRepository.FinalNode.Properties.incomingTransitions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData incomingTransitionsData = new GridData(GridData.FILL_HORIZONTAL);
incomingTransitionsData.horizontalSpan = 3;
this.incomingTransitions.setLayoutData(incomingTransitionsData);
this.incomingTransitions.disableMove();
incomingTransitions.setID(GraalViewsRepository.FinalNode.Properties.incomingTransitions);
// $NON-NLS-1$
incomingTransitions.setEEFType("eef::AdvancedReferencesTable");
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener in project InformationSystem by ObeoNetwork.
the class InitialNodePropertiesEditionPartForm method createIncomingTransitionsReferencesTable.
/**
*/
protected Composite createIncomingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.incomingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.InitialNode.Properties.incomingTransitions, GraalMessages.InitialNodePropertiesEditionPart_IncomingTransitionsLabel), new ReferencesTableListener() {
public void handleAdd() {
addIncomingTransitions();
}
public void handleEdit(EObject element) {
editIncomingTransitions(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveIncomingTransitions(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromIncomingTransitions(element);
}
public void navigateTo(EObject element) {
}
});
this.incomingTransitions.setHelpText(propertiesEditionComponent.getHelpContent(GraalViewsRepository.InitialNode.Properties.incomingTransitions, GraalViewsRepository.FORM_KIND));
this.incomingTransitions.createControls(parent, widgetFactory);
this.incomingTransitions.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InitialNodePropertiesEditionPartForm.this, GraalViewsRepository.InitialNode.Properties.incomingTransitions, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData incomingTransitionsData = new GridData(GridData.FILL_HORIZONTAL);
incomingTransitionsData.horizontalSpan = 3;
this.incomingTransitions.setLayoutData(incomingTransitionsData);
this.incomingTransitions.disableMove();
incomingTransitions.setID(GraalViewsRepository.InitialNode.Properties.incomingTransitions);
// $NON-NLS-1$
incomingTransitions.setEEFType("eef::AdvancedReferencesTable");
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener 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