use of org.eclipse.wst.xsd.ui.internal.adt.actions.SetInputToGraphView in project webtools.sourceediting by eclipse.
the class BackToSchemaEditPart method createFigure.
protected IFigure createFigure() {
backToSchema = new CenteredIconFigure();
backToSchema.setBackgroundColor(ColorConstants.white);
backToSchema.image = XSDEditorPlugin.getPlugin().getIcon("elcl16/schemaview_co.gif");
// TODO, look at why the editpolicy doesn't work
mouseListener = new MouseListener() {
public void mouseDoubleClicked(org.eclipse.draw2d.MouseEvent me) {
}
public void mousePressed(org.eclipse.draw2d.MouseEvent me) {
if (isEnabled) {
addFeedback();
}
}
public void mouseReleased(org.eclipse.draw2d.MouseEvent me) {
if (isEnabled) {
removeFeedback();
SetInputToGraphView action = new SetInputToGraphView(multipageEditor, getModel());
action.run();
}
}
};
backToSchema.addMouseListener(mouseListener);
return backToSchema;
}
use of org.eclipse.wst.xsd.ui.internal.adt.actions.SetInputToGraphView in project webtools.sourceediting by eclipse.
the class BackToSchemaEditPart method performRequest.
public void performRequest(Request request) {
if (request.getType() == RequestConstants.REQ_DIRECT_EDIT || request.getType() == RequestConstants.REQ_OPEN) {
SetInputToGraphView action = new SetInputToGraphView(multipageEditor, getModel());
action.run();
}
}
use of org.eclipse.wst.xsd.ui.internal.adt.actions.SetInputToGraphView in project webtools.sourceediting by eclipse.
the class ADTFloatingToolbarEditPart method doAction.
protected void doAction(org.eclipse.draw2d.KeyEvent ke) {
IEditorPart editorPart = getActionEditorPart();
SetInputToGraphView action = new SetInputToGraphView(editorPart, model);
action.run();
}
use of org.eclipse.wst.xsd.ui.internal.adt.actions.SetInputToGraphView in project webtools.sourceediting by eclipse.
the class ADTMultiPageEditor method createActions.
protected void createActions() {
ActionRegistry registry = getActionRegistry();
BaseSelectionAction action = new SetInputToGraphView(this);
action.setSelectionProvider(getSelectionManager());
registry.registerAction(action);
}
use of org.eclipse.wst.xsd.ui.internal.adt.actions.SetInputToGraphView in project webtools.sourceediting by eclipse.
the class ADTFloatingToolbarEditPart method doAction.
protected void doAction(MouseEvent me) {
IEditorPart editorPart = getActionEditorPart();
if (backToSchema.getBounds().contains(me.getLocation())) {
SetInputToGraphView action = new SetInputToGraphView(editorPart, model);
action.run();
}
}
Aggregations