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

YELLOW

refs 2460
parent ec180c02
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,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;
......@@ -36,7 +37,7 @@ import org.fortiss.tooling.kernel.introspection.items.EObjectAware2Introspection
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: E816DB61E13A4E5F34828254E0A6BEB5
* @ConQAT.Rating YELLOW Hash: 3B75E51F5C93276B486C4083579D6880
*/
public abstract class EObjectAware2IntrospectionDetailsUIHandlerBase extends
IntrospectionDetailsUIHandlerBase {
......@@ -160,4 +161,24 @@ public abstract class EObjectAware2IntrospectionDetailsUIHandlerBase extends
return new Object[0];
}
}
/** {@inheritDoc} */
@Override
protected boolean testSelection(Object selection) {
if(selection instanceof Pair<?, ?>) {
Pair<?, ?> pair = (Pair<?, ?>)selection;
return !(pair.getFirst() instanceof Class<?>);
}
return false;
}
/** {@inheritDoc} */
@Override
protected void populateContextMenu(Object selection, MenuManager mgr) {
Pair<?, ?> pair = (Pair<?, ?>)selection;
mgr.add(createCopyClassNameAction(pair.getFirst().getClass()));
Pair<?, ?> classPair = (Pair<?, ?>)pair.getSecond();
mgr.add(createCopyClassNameAction((Class<?>)classPair.getFirst()));
mgr.add(createCopyClassNameAction((Class<?>)classPair.getSecond()));
}
}
......@@ -44,7 +44,7 @@ import org.fortiss.tooling.kernel.ui.internal.introspection.details.DetailsUIHan
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 85948D33F2EE248950630AA48791B101
* @ConQAT.Rating YELLOW Hash: C43E3ADBEAE53065FB96BDD9F1AEF5C6
*/
public abstract class IntrospectionDetailsUIHandlerBase extends DetailsUIHandlerBase {
......@@ -133,7 +133,7 @@ public abstract class IntrospectionDetailsUIHandlerBase extends DetailsUIHandler
/** Creates the copy class name action for the given class. */
protected final Action createCopyClassNameAction(Class<?> clazz) {
return createAction("Copy class name: " + clazz.getSimpleName(),
return createAction("Copy Qualified Class Name: " + clazz.getSimpleName(),
new CopyClassNameToClipBoardRunnable(clazz.getName()));
}
......
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