org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor Java Examples
The following examples show how to use
org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TabbedPropertyRegistryFactory.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * Indicates that the given contributor no longer needs a registry. The * registry will be disposed when no other contributor of the same type * needs it. * * @param target * the contributor; */ public void disposeRegistry(ITabbedPropertySheetPageContributor target) { /** * Get the contributor id from the ITabbedPropertySheetPageContributor * interface */ String key = target.getContributorId(); CacheData data = idToCacheData.get(key); if (data != null) { data.references.remove(target); if (data.references.isEmpty()) { data.registry.dispose(); idToCacheData.remove(key); } } }
Example #2
Source File: CrossflowAbstractNavigatorItem.java From scava with Eclipse Public License 2.0 | 5 votes |
public Object getAdapter(Object adaptableObject, Class adapterType) { if (adaptableObject instanceof crossflow.diagram.navigator.CrossflowAbstractNavigatorItem && adapterType == ITabbedPropertySheetPageContributor.class) { return propertySheetPageContributor; } return null; }
Example #3
Source File: TabbedPropertyRegistryFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * Creates a registry for the given contributor. * * @param target * the contributor. * @return a registry for the given contributor. */ public TabbedPropertyRegistry createRegistry( ITabbedPropertySheetPageContributor target) { /** * Get the contributor id from the ITabbedPropertySheetPageContributor * interface */ String key = target.getContributorId(); CacheData data = idToCacheData.get(key); if (data == null) { data = new CacheData(); /* * use here custom TabbedPropertyRegistry * that are aware of viewID in which they are used */ if (key.equals("org.bonitasoft.studio.diagram") //$NON-NLS-1$ || key.equals("org.bonitasoft.studio.diagram.form")) { //$NON-NLS-1$ data.registry = new TabbedPropertyRegistryViewAware(key); } else { data.registry = new TabbedPropertyRegistry(key); } data.references = new ArrayList<>(5); idToCacheData.put(key, data); } data.references.add(target); // keeps track of contributor using the same registry return data.registry; }
Example #4
Source File: ProcessAbstractNavigatorItem.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public Object getAdapter(Object adaptableObject, Class adapterType) { if (adaptableObject instanceof org.bonitasoft.studio.model.process.diagram.navigator.ProcessAbstractNavigatorItem && adapterType == ITabbedPropertySheetPageContributor.class) { return propertySheetPageContributor; } return null; }
Example #5
Source File: BonitaApplicationPropertiesBrowserPage.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public BonitaApplicationPropertiesBrowserPage( ITabbedPropertySheetPageContributor contributor) { super(contributor); }
Example #6
Source File: BonitaExecutionPropertiesBrowserPage.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public BonitaExecutionPropertiesBrowserPage( ITabbedPropertySheetPageContributor contributor) { super(contributor); }
Example #7
Source File: BonitaGeneralProcessPropertiesBrowserPage.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public BonitaGeneralProcessPropertiesBrowserPage( ITabbedPropertySheetPageContributor contributor) { super(contributor); }
Example #8
Source File: BonitaAppearancePropertiesBrowserPage.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public BonitaAppearancePropertiesBrowserPage( ITabbedPropertySheetPageContributor contributor) { super(contributor); }
Example #9
Source File: BonitaDataPropertiesBrowserPage.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public BonitaDataPropertiesBrowserPage( final ITabbedPropertySheetPageContributor contributor) { super(contributor); }
Example #10
Source File: BonitaPropertiesBrowserPage.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public BonitaPropertiesBrowserPage( final ITabbedPropertySheetPageContributor contributor) { super(contributor); }
Example #11
Source File: BonitaPropertiesView.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
protected abstract BonitaPropertiesBrowserPage getBonitaPropertiesBrowserPage( ITabbedPropertySheetPageContributor part);
Example #12
Source File: BonitaGeneralProcessPropertiesView.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override protected BonitaPropertiesBrowserPage getBonitaPropertiesBrowserPage( ITabbedPropertySheetPageContributor part) { return new BonitaGeneralProcessPropertiesBrowserPage(part); }
Example #13
Source File: BonitaAppearencePropertiesView.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override protected BonitaPropertiesBrowserPage getBonitaPropertiesBrowserPage( ITabbedPropertySheetPageContributor part) { return new BonitaAppearancePropertiesBrowserPage(part); }
Example #14
Source File: BonitaExecutionPropertiesView.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override protected BonitaPropertiesBrowserPage getBonitaPropertiesBrowserPage( ITabbedPropertySheetPageContributor part) { return new BonitaExecutionPropertiesBrowserPage(part); }
Example #15
Source File: BonitaDataPropertiesView.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override protected BonitaPropertiesBrowserPage getBonitaPropertiesBrowserPage( final ITabbedPropertySheetPageContributor part) { return new BonitaDataPropertiesBrowserPage(part); }