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

YELLOW

refs 2460
parent 8169d780
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ package org.fortiss.tooling.kernel.ui.internal.introspection.details.handler;
import org.conqat.ide.commons.ui.jface.TreeContentProviderBase;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TableLabelProviderBase;
......@@ -40,7 +41,7 @@ import org.fortiss.tooling.kernel.service.IConstraintCheckerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 51F40DAE7FE1985D079D3C700C27A6BC
* @ConQAT.Rating YELLOW Hash: E412A60542E96333FEF015DF8008F061
*/
public final class ConstraintCheckerServiceIntrospectionDetailsUIHandler extends
IntrospectionDetailsUIHandlerBase {
......@@ -135,4 +136,20 @@ public final class ConstraintCheckerServiceIntrospectionDetailsUIHandler extends
protected ConstraintCheckerServiceIntrospectionDetailsItem getInputObject() {
return (ConstraintCheckerServiceIntrospectionDetailsItem)dataItem;
}
/** {@inheritDoc} */
@Override
protected boolean testSelection(Object selection) {
return true;
}
/** {@inheritDoc} */
@Override
protected void populateContextMenu(Object selection, MenuManager mgr) {
if(selection instanceof Class<?>) {
mgr.add(createCopyClassNameAction((Class<?>)selection));
} else if(selection instanceof IConstraintChecker<?>) {
mgr.add(createCopyClassNameAction(selection.getClass()));
}
}
}
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