use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener in project InformationSystem by ObeoNetwork.
the class UserViewPropertiesEditionPartForm method createIncomingTransitionsReferencesTable.
/**
*/
protected Composite createIncomingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.incomingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.UserView.Properties.incomingTransitions, GraalMessages.UserViewPropertiesEditionPart_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.UserView.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(UserViewPropertiesEditionPartForm.this, GraalViewsRepository.UserView.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.UserView.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 UserViewPropertiesEditionPartForm method createOutgoingTransitionsReferencesTable.
/**
*/
protected Composite createOutgoingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.outgoingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.UserView.Properties.outgoingTransitions, GraalMessages.UserViewPropertiesEditionPart_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.UserView.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(UserViewPropertiesEditionPartForm.this, GraalViewsRepository.UserView.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.UserView.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 ActorPropertiesEditionPartForm method createSubActorsReferencesTable.
/**
*/
protected Composite createSubActorsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.subActors = new ReferencesTable(getDescription(GraalViewsRepository.Actor.Properties.subActors, GraalMessages.ActorPropertiesEditionPart_SubActorsLabel), new ReferencesTableListener() {
public void handleAdd() {
addSubActors();
}
public void handleEdit(EObject element) {
editSubActors(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveSubActors(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromSubActors(element);
}
public void navigateTo(EObject element) {
}
});
this.subActors.setHelpText(propertiesEditionComponent.getHelpContent(GraalViewsRepository.Actor.Properties.subActors, GraalViewsRepository.FORM_KIND));
this.subActors.createControls(parent, widgetFactory);
this.subActors.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActorPropertiesEditionPartForm.this, GraalViewsRepository.Actor.Properties.subActors, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData subActorsData = new GridData(GridData.FILL_HORIZONTAL);
subActorsData.horizontalSpan = 3;
this.subActors.setLayoutData(subActorsData);
this.subActors.disableMove();
subActors.setID(GraalViewsRepository.Actor.Properties.subActors);
// $NON-NLS-1$
subActors.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 AppliActionPropertiesEditionPartForm method createIncomingTransitionsReferencesTable.
/**
*/
protected Composite createIncomingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.incomingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.AppliAction.Properties.incomingTransitions, GraalMessages.AppliActionPropertiesEditionPart_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.AppliAction.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(AppliActionPropertiesEditionPartForm.this, GraalViewsRepository.AppliAction.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.AppliAction.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 AppliActionPropertiesEditionPartForm method createOutgoingTransitionsReferencesTable.
/**
*/
protected Composite createOutgoingTransitionsReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.outgoingTransitions = new ReferencesTable(getDescription(GraalViewsRepository.AppliAction.Properties.outgoingTransitions, GraalMessages.AppliActionPropertiesEditionPart_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.AppliAction.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(AppliActionPropertiesEditionPartForm.this, GraalViewsRepository.AppliAction.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.AppliAction.Properties.outgoingTransitions);
// $NON-NLS-1$
outgoingTransitions.setEEFType("eef::AdvancedReferencesTable");
// End of user code
return parent;
}
Aggregations