Skip to content
Snippets Groups Projects
Commit 76e0fd63 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

added ordering weight

refs 93
parent c1bd768b
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService; ...@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 6CF99CF5089E03E8E60B1019F9D93A78 * @ConQAT.Rating YELLOW Hash: 319AA778BC0D6BFC6DE49B2732E244C4
*/ */
public interface IModelElementHandler<T extends EObject> extends IEObjectAware<T> { public interface IModelElementHandler<T extends EObject> extends IEObjectAware<T> {
...@@ -93,6 +93,12 @@ public interface IModelElementHandler<T extends EObject> extends IEObjectAware<T ...@@ -93,6 +93,12 @@ public interface IModelElementHandler<T extends EObject> extends IEObjectAware<T
*/ */
boolean hiddenInNonExpertView(); boolean hiddenInNonExpertView();
/**
* Returns the weight of the model element used for sorting of model elements in the navigator
* view. Ordering is performed in ascending order.
*/
int getNavigatorViewWeight();
/** /**
* Handles the open model element request by returning the object that * Handles the open model element request by returning the object that
* should be passed to the model editor service. * should be passed to the model editor service.
......
...@@ -37,7 +37,7 @@ import org.fortiss.tooling.kernel.ui.internal.views.NavigatorTreeContentProvider ...@@ -37,7 +37,7 @@ import org.fortiss.tooling.kernel.ui.internal.views.NavigatorTreeContentProvider
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 9673BF0EB3582152AEE991F632CFDA09 * @ConQAT.Rating YELLOW Hash: 8CDC7FB6E124536AB4375BFA03B3CE6B
*/ */
public abstract class ModelElementHandlerBase<T extends EObject> implements IModelElementHandler<T> { public abstract class ModelElementHandlerBase<T extends EObject> implements IModelElementHandler<T> {
...@@ -100,6 +100,16 @@ public abstract class ModelElementHandlerBase<T extends EObject> implements IMod ...@@ -100,6 +100,16 @@ public abstract class ModelElementHandlerBase<T extends EObject> implements IMod
return false; return false;
} }
/**
* {@inheritDoc}
* <P>
* The default returns zero.
*/
@Override
public int getNavigatorViewWeight() {
return 0;
}
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public EObject handleOpenModelElementRequest(T element) { public EObject handleOpenModelElementRequest(T element) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment