Author: koen.aers(a)jboss.com
Date: 2008-07-30 11:05:47 -0400 (Wed, 30 Jul 2008)
New Revision: 9439
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/GenericActionBarContributor.java
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/HorizontalAutoLayoutAction.java
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/VerticalAutoLayoutAction.java
Log:
fixed the image invisibility of the auto layout buttons
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/GenericActionBarContributor.java
===================================================================
---
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/GenericActionBarContributor.java 2008-07-30
14:56:01 UTC (rev 9438)
+++
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/GenericActionBarContributor.java 2008-07-30
15:05:47 UTC (rev 9439)
@@ -28,8 +28,10 @@
import org.eclipse.gef.ui.actions.ZoomOutRetargetAction;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.actions.RetargetAction;
+import org.jboss.tools.flow.Activator;
import org.jboss.tools.flow.editor.action.HorizontalAutoLayoutAction;
import org.jboss.tools.flow.editor.action.VerticalAutoLayoutAction;
@@ -58,8 +60,16 @@
addRetargetAction( new RetargetAction(
GEFActionConstants.TOGGLE_GRID_VISIBILITY, "Grid" ));
- addRetargetAction( new RetargetAction(VerticalAutoLayoutAction.ID, null));
- addRetargetAction( new RetargetAction(HorizontalAutoLayoutAction.ID, null));
+ RetargetAction verticalAutoLayoutAction = new
RetargetAction(VerticalAutoLayoutAction.ID, null);
+ verticalAutoLayoutAction.setImageDescriptor(
+
ImageDescriptor.createFromURL(Activator.getDefault().getBundle().getEntry("icons/layoutV.gif")));
+ addRetargetAction(verticalAutoLayoutAction);
+
+ RetargetAction horizontalAutoLayoutAction = new
RetargetAction(HorizontalAutoLayoutAction.ID, null);
+ horizontalAutoLayoutAction.setImageDescriptor(
+
ImageDescriptor.createFromURL(Activator.getDefault().getBundle().getEntry("icons/layoutH.gif")));
+ addRetargetAction(horizontalAutoLayoutAction);
+
}
public void contributeToToolBar(IToolBarManager toolBarManager) {
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/HorizontalAutoLayoutAction.java
===================================================================
---
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/HorizontalAutoLayoutAction.java 2008-07-30
14:56:01 UTC (rev 9438)
+++
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/HorizontalAutoLayoutAction.java 2008-07-30
15:05:47 UTC (rev 9439)
@@ -43,7 +43,7 @@
setText("Auto Layout (Horizontal)");
setImageDescriptor(
ImageDescriptor.createFromURL(
- Activator.getDefault().getBundle().getEntry("/icons/layoutH.gif")));
+ Activator.getDefault().getBundle().getEntry("icons/layoutH.gif")));
setToolTipText("Auto layout the process (horizontal)");
}
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/VerticalAutoLayoutAction.java
===================================================================
---
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/VerticalAutoLayoutAction.java 2008-07-30
14:56:01 UTC (rev 9438)
+++
trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/action/VerticalAutoLayoutAction.java 2008-07-30
15:05:47 UTC (rev 9439)
@@ -55,7 +55,7 @@
setText("Auto Layout (Vertical)");
setImageDescriptor(
ImageDescriptor.createFromURL(
- Activator.getDefault().getBundle().getEntry("/icons/layoutV.gif")));
+ Activator.getDefault().getBundle().getEntry("icons/layoutV.gif")));
setToolTipText("Auto layout the process (vertical)");
}
Show replies by date