use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable in project InformationSystem by ObeoNetwork.
the class CinematicRootPropertiesEditionPartImpl method createFlowsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createFlowsAdvancedTableComposition(Composite parent) {
this.flows = new ReferencesTable(getDescription(CinematicViewsRepository.CinematicRoot.Properties.flows, CinematicMessages.CinematicRootPropertiesEditionPart_FlowsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CinematicRootPropertiesEditionPartImpl.this, CinematicViewsRepository.CinematicRoot.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
flows.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CinematicRootPropertiesEditionPartImpl.this, CinematicViewsRepository.CinematicRoot.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
flows.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CinematicRootPropertiesEditionPartImpl.this, CinematicViewsRepository.CinematicRoot.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
flows.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CinematicRootPropertiesEditionPartImpl.this, CinematicViewsRepository.CinematicRoot.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
flows.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.flowsFilters) {
this.flows.addFilter(filter);
}
this.flows.setHelpText(propertiesEditionComponent.getHelpContent(CinematicViewsRepository.CinematicRoot.Properties.flows, CinematicViewsRepository.SWT_KIND));
this.flows.createControls(parent);
this.flows.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CinematicRootPropertiesEditionPartImpl.this, CinematicViewsRepository.CinematicRoot.Properties.flows, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData flowsData = new GridData(GridData.FILL_HORIZONTAL);
flowsData.horizontalSpan = 3;
this.flows.setLayoutData(flowsData);
this.flows.setLowerBound(0);
this.flows.setUpperBound(-1);
flows.setID(CinematicViewsRepository.CinematicRoot.Properties.flows);
// $NON-NLS-1$
flows.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 Package_PropertiesEditionPartImpl method createFlowsAdvancedTableComposition.
/**
* @param container
*/
protected Composite createFlowsAdvancedTableComposition(Composite parent) {
this.flows = new ReferencesTable(getDescription(CinematicViewsRepository.Package_.Properties.flows, CinematicMessages.Package_PropertiesEditionPart_FlowsLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
flows.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
flows.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
flows.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.flows, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
flows.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.flowsFilters) {
this.flows.addFilter(filter);
}
this.flows.setHelpText(propertiesEditionComponent.getHelpContent(CinematicViewsRepository.Package_.Properties.flows, CinematicViewsRepository.SWT_KIND));
this.flows.createControls(parent);
this.flows.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.flows, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData flowsData = new GridData(GridData.FILL_HORIZONTAL);
flowsData.horizontalSpan = 3;
this.flows.setLayoutData(flowsData);
this.flows.setLowerBound(0);
this.flows.setUpperBound(-1);
flows.setID(CinematicViewsRepository.Package_.Properties.flows);
// $NON-NLS-1$
flows.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 Package_PropertiesEditionPartImpl method createViewContainersAdvancedTableComposition.
/**
* @param container
*/
protected Composite createViewContainersAdvancedTableComposition(Composite parent) {
this.viewContainers = new ReferencesTable(getDescription(CinematicViewsRepository.Package_.Properties.viewContainers, CinematicMessages.Package_PropertiesEditionPart_ViewContainersLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
viewContainers.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
viewContainers.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
viewContainers.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
viewContainers.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.viewContainersFilters) {
this.viewContainers.addFilter(filter);
}
this.viewContainers.setHelpText(propertiesEditionComponent.getHelpContent(CinematicViewsRepository.Package_.Properties.viewContainers, CinematicViewsRepository.SWT_KIND));
this.viewContainers.createControls(parent);
this.viewContainers.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(Package_PropertiesEditionPartImpl.this, CinematicViewsRepository.Package_.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.setLowerBound(0);
this.viewContainers.setUpperBound(-1);
viewContainers.setID(CinematicViewsRepository.Package_.Properties.viewContainers);
// $NON-NLS-1$
viewContainers.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 ToolkitsPropertiesEditionPartImpl method createToolkitsAdvancedReferencesTable.
/**
*/
protected Composite createToolkitsAdvancedReferencesTable(Composite parent) {
String label = getDescription(CinematicViewsRepository.Toolkits.Properties.toolkits_, CinematicMessages.ToolkitsPropertiesEditionPart_ToolkitsLabel);
this.toolkits = new ReferencesTable(label, new ReferencesTableListener() {
public void handleAdd() {
addToolkits();
}
public void handleEdit(EObject element) {
editToolkits(element);
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
moveToolkits(element, oldIndex, newIndex);
}
public void handleRemove(EObject element) {
removeFromToolkits(element);
}
public void navigateTo(EObject element) {
}
});
this.toolkits.setHelpText(propertiesEditionComponent.getHelpContent(CinematicViewsRepository.Toolkits.Properties.toolkits_, CinematicViewsRepository.SWT_KIND));
this.toolkits.createControls(parent);
this.toolkits.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ToolkitsPropertiesEditionPartImpl.this, CinematicViewsRepository.Toolkits.Properties.toolkits_, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData toolkitsData = new GridData(GridData.FILL_HORIZONTAL);
toolkitsData.horizontalSpan = 3;
this.toolkits.setLayoutData(toolkitsData);
this.toolkits.disableMove();
toolkits.setID(CinematicViewsRepository.Toolkits.Properties.toolkits_);
// $NON-NLS-1$
toolkits.setEEFType("eef::AdvancedReferencesTable");
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable in project InformationSystem by ObeoNetwork.
the class ComplexNamedTypePropertiesEditionPartForm method createTypesTableComposition.
/**
* @param container
*/
protected Composite createTypesTableComposition(FormToolkit widgetFactory, Composite parent) {
this.types = new ReferencesTable(getDescription(TypeslibraryViewsRepository.ComplexNamedType.Properties.types, TypeslibraryMessages.ComplexNamedTypePropertiesEditionPart_TypesLabel), new ReferencesTableListener() {
public void handleAdd() {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ComplexNamedTypePropertiesEditionPartForm.this, TypeslibraryViewsRepository.ComplexNamedType.Properties.types, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null));
types.refresh();
}
public void handleEdit(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ComplexNamedTypePropertiesEditionPartForm.this, TypeslibraryViewsRepository.ComplexNamedType.Properties.types, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element));
types.refresh();
}
public void handleMove(EObject element, int oldIndex, int newIndex) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ComplexNamedTypePropertiesEditionPartForm.this, TypeslibraryViewsRepository.ComplexNamedType.Properties.types, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex));
types.refresh();
}
public void handleRemove(EObject element) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ComplexNamedTypePropertiesEditionPartForm.this, TypeslibraryViewsRepository.ComplexNamedType.Properties.types, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element));
types.refresh();
}
public void navigateTo(EObject element) {
}
});
for (ViewerFilter filter : this.typesFilters) {
this.types.addFilter(filter);
}
this.types.setHelpText(propertiesEditionComponent.getHelpContent(TypeslibraryViewsRepository.ComplexNamedType.Properties.types, TypeslibraryViewsRepository.FORM_KIND));
this.types.createControls(parent, widgetFactory);
this.types.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (e.item != null && e.item.getData() instanceof EObject) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ComplexNamedTypePropertiesEditionPartForm.this, TypeslibraryViewsRepository.ComplexNamedType.Properties.types, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData()));
}
}
});
GridData typesData = new GridData(GridData.FILL_HORIZONTAL);
typesData.horizontalSpan = 3;
this.types.setLayoutData(typesData);
this.types.setLowerBound(0);
this.types.setUpperBound(-1);
types.setID(TypeslibraryViewsRepository.ComplexNamedType.Properties.types);
// $NON-NLS-1$
types.setEEFType("eef::AdvancedTableComposition");
// End of user code
return parent;
}
Aggregations