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

YELLOW

refs 2460
parent f1cb83da
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ import java.util.List;
import org.conqat.ide.commons.ui.jface.TreeContentProviderBase;
import org.conqat.lib.commons.collections.Pair;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.TableLabelProviderBase;
import org.eclipse.swt.SWT;
......@@ -35,7 +36,7 @@ import org.fortiss.tooling.kernel.introspection.items.EObjectAwareIntrospectionD
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 2FA481F78CBB9DE21F751923EFAD8633
* @ConQAT.Rating YELLOW Hash: 683613CC6916F0603285C740F899ACA7
*/
public abstract class EObjectAwareIntrospectionDetailsUIHandlerBase extends
IntrospectionDetailsUIHandlerBase {
......@@ -127,4 +128,18 @@ public abstract class EObjectAwareIntrospectionDetailsUIHandlerBase extends
return new Object[0];
}
}
/** {@inheritDoc} */
@Override
protected boolean testSelection(Object selection) {
return selection instanceof Pair<?, ?>;
}
/** {@inheritDoc} */
@Override
protected void populateContextMenu(Object selection, MenuManager mgr) {
Pair<?, ?> pair = (Pair<?, ?>)selection;
mgr.add(createCopyClassNameAction(pair.getFirst().getClass()));
mgr.add(createCopyClassNameAction((Class<?>)pair.getSecond()));
}
}
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