use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable in project InformationSystem by ObeoNetwork.
the class SubflowStatePropertiesEditionPartForm method createActionsTableComposition.
/**
* @param container
*/
protected Composite createActionsTableComposition(FormToolkit widgetFactory, Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.SubflowState.Properties.actions, FlowMessages.SubflowStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(SubflowStatePropertiesEditionPartForm.this, FlowViewsRepository.SubflowState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(SubflowStatePropertiesEditionPartForm.this, FlowViewsRepository.SubflowState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
actions.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(SubflowStatePropertiesEditionPartForm.this, FlowViewsRepository.SubflowState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(SubflowStatePropertiesEditionPartForm.this, FlowViewsRepository.SubflowState.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.SubflowState.Properties.actions, FlowViewsRepository.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(SubflowStatePropertiesEditionPartForm.this, FlowViewsRepository.SubflowState.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.SubflowState.Properties.actions);
// $NON-NLS-1$
actions.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable in project InformationSystem by ObeoNetwork.
the class ViewStatePropertiesEditionPartForm method createActionsTableComposition.
/**
* @param container
*/
protected Composite createActionsTableComposition(FormToolkit widgetFactory, Composite parent) {
this.actions = new ReferencesTable(getDescription(FlowViewsRepository.ViewState.Properties.actions, FlowMessages.ViewStatePropertiesEditionPart_ActionsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
actions.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartForm.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(ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.actions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
actions.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartForm.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.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(ViewStatePropertiesEditionPartForm.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.emf.eef.runtime.ui.widgets.ReferencesTable in project InformationSystem by ObeoNetwork.
the class ViewStatePropertiesEditionPartForm method createViewContainersReferencesTable.
/**
*/
protected Composite createViewContainersReferencesTable(FormToolkit widgetFactory, Composite parent) {
this.viewContainers = new ReferencesTable(getDescription(FlowViewsRepository.ViewState.Properties.viewContainers, FlowMessages.ViewStatePropertiesEditionPart_ViewContainersLabel), new ReferencesTableListener() {
public void handleAdd() {
addViewContainers();
}
public void handleEdit(EObject element) {
editViewContainers(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveViewContainers(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromViewContainers(element);
}
public void navigateTo(EObject element) {
}
});
this.viewContainers.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.ViewState.Properties.viewContainers, FlowViewsRepository.FORM_KIND));
this.viewContainers.createControls(parent, widgetFactory);
this.viewContainers.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.viewContainers, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData viewContainersData = new GridData(GridData.FILL_HORIZONTAL);
viewContainersData.horizontalSpan = 3;
this.viewContainers.setLayoutData(viewContainersData);
this.viewContainers.disableMove();
viewContainers.setID(FlowViewsRepository.ViewState.Properties.viewContainers);
// $NON-NLS-1$
viewContainers.setEEFType("eef::AdvancedReferencesTable");
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable in project InformationSystem by ObeoNetwork.
the class FlowEventPropertiesEditionPartImpl method createBindsAdvancedReferencesTable.
/**
*/
protected Composite createBindsAdvancedReferencesTable(Composite parent) {
String label = getDescription(FlowViewsRepository.FlowEvent.Properties.binds, FlowMessages.FlowEventPropertiesEditionPart_BindsLabel);
this.binds = new ReferencesTable(label, new ReferencesTableListener() {
public void handleAdd() {
addBinds();
}
public void handleEdit(EObject element) {
editBinds(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveBinds(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromBinds(element);
}
public void navigateTo(EObject element) {
}
});
this.binds.setHelpText(propertiesEditionComponent.getHelpContent(FlowViewsRepository.FlowEvent.Properties.binds, FlowViewsRepository.SWT_KIND));
this.binds.createControls(parent);
this.binds.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(FlowEventPropertiesEditionPartImpl.this, FlowViewsRepository.FlowEvent.Properties.binds, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData bindsData = new GridData(GridData.FILL_HORIZONTAL);
bindsData.horizontalSpan = 3;
this.binds.setLayoutData(bindsData);
this.binds.disableMove();
binds.setID(FlowViewsRepository.FlowEvent.Properties.binds);
// $NON-NLS-1$
binds.setEEFType("eef::AdvancedReferencesTable");
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable 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;
}
Aggregations