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

YELLOW

refs 2460
parent 83385d2d
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.core.resources.IFile;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TableLabelProviderBase;
......@@ -39,7 +40,7 @@ import org.fortiss.tooling.kernel.introspection.items.EclipseResourceStorageProv
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 9BF9B0E59E1017147A0294C147E7259C
* @ConQAT.Rating YELLOW Hash: 5BD26518B7DE3D24C35CBFB9A4D8DA9D
*/
public final class EclipseResourceStorageProviderIntrospectionDetailsUIHandler extends
IntrospectionDetailsUIHandlerBase {
......@@ -139,4 +140,17 @@ public final class EclipseResourceStorageProviderIntrospectionDetailsUIHandler e
protected EclipseResourceStorageProviderIntrospectionDetailsItem getInputObject() {
return (EclipseResourceStorageProviderIntrospectionDetailsItem)dataItem;
}
/** {@inheritDoc} */
@Override
protected boolean testSelection(Object selection) {
return selection instanceof IEclipseResourceStorageLocationProvider ||
selection instanceof IEclipseResourcePostLoadProvider;
}
/** {@inheritDoc} */
@Override
protected void populateContextMenu(Object selection, MenuManager mgr) {
mgr.add(createCopyClassNameAction(selection.getClass()));
}
}
......@@ -18,6 +18,8 @@ $Id$
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 +42,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: EFBBD070916F0FFE4EA697C5C5FED78A
* @ConQAT.Rating YELLOW Hash: 36575F066A2B8048EF285926CD8F66C0
*/
public final class PersistencyServiceIntrospectionDetailsUIHandler extends
IntrospectionDetailsUIHandlerBase {
......@@ -143,6 +145,23 @@ public final class PersistencyServiceIntrospectionDetailsUIHandler extends
};
}
/** {@inheritDoc} */
@Override
protected boolean testSelection(Object selection) {
return selection instanceof IStorageProvider || selection instanceof ITopLevelElement;
}
/** {@inheritDoc} */
@Override
protected void populateContextMenu(Object selection, MenuManager mgr) {
if(selection instanceof IStorageProvider) {
mgr.add(createCopyClassNameAction(selection.getClass()));
} else if(selection instanceof ITopLevelElement) {
EObject eo = ((ITopLevelElement)selection).getRootModelElement();
mgr.add(createCopyClassNameAction(eo.getClass()));
}
}
/** {@inheritDoc} */
@Override
protected PatternFilter createPatternFilter() {
......
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