Commit cb4b5720 authored by Simon Barner's avatar Simon Barner
Browse files

- Use HierarchicElementHandlerBase as base class for AllocationTableHandler to...

- Use HierarchicElementHandlerBase as base class for AllocationTableHandler to show children in model navigator
- Export all packages
- Make PrototypeProvider.CATEGORY public (to be reused by concrete allocation models)
refs 2950
parent 4f8322f7
......@@ -4,10 +4,12 @@ Bundle-Name: fortiss AF3 Allocation UI
Bundle-SymbolicName: org.fortiss.af3.allocation.ui;singleton:=true
Bundle-Version: 2.11.0.qualifier
Bundle-Activator: org.fortiss.af3.allocation.ui.AF3AllocationUIActivator
Require-Bundle: org.eclipse.ui.ide;bundle-version="3.7.0";visibility:=reexport,
org.fortiss.af3.allocation;bundle-version="2.11.0",
org.fortiss.tooling.kernel.ui
Require-Bundle: org.eclipse.ui.ide;visibility:=reexport,
org.fortiss.af3.allocation,
org.fortiss.tooling.base.ui
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-Vendor: fortiss GmbH
Export-Package: org.fortiss.af3.allocation.ui
Export-Package: org.fortiss.af3.allocation.ui,
org.fortiss.af3.allocation.ui.handler,
org.fortiss.af3.allocation.ui.prototypes
......@@ -21,8 +21,8 @@ import static org.fortiss.af3.allocation.ui.AF3AllocationUIActivator.getImageDes
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.allocation.model.AllocationTable;
import org.fortiss.tooling.base.ui.extension.base.HierarchicElementHandlerBase;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
/**
* {@link IModelElementHandler} for {@link AllocationTable}.
......@@ -32,17 +32,11 @@ import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHa
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 5F30BF572620C88340A27E2CDC29D466
*/
public class AllocationTableHandler extends NamedCommentedModelElementHandlerBase<AllocationTable> {
public class AllocationTableHandler extends HierarchicElementHandlerBase<AllocationTable> {
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/allocationtable.png");
}
/** {@inheritDoc} */
@Override
public int getNavigatorViewWeight(AllocationTable element) {
return 3000;
}
}
......@@ -33,7 +33,7 @@ import org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase;
public final class PrototypeProvider extends PrototypeProviderBase {
/** Stores the category to display for these prototypes. */
protected final static String CATEGORY_NAME = "Allocation";
public final static String CATEGORY = "Allocation";
/** {@inheritDoc} */
@Override
......@@ -44,7 +44,6 @@ public final class PrototypeProvider extends PrototypeProviderBase {
/** Defines prototypes for {@link Allocation}s. */
private void setupAllocationPrototypes() {
registerPrimaryPrototype("AllocationTable",
AllocationModelElementFactory.createAllocationTable("AllocationTable"),
CATEGORY_NAME);
AllocationModelElementFactory.createAllocationTable("AllocationTable"), CATEGORY);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment