Author: scabanovich
Date: 2011-11-17 19:47:16 -0500 (Thu, 17 Nov 2011)
New Revision: 36428
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamPerspectiveFactory.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIUtil.java
Log:
Constants are substituted for strings.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamPerspectiveFactory.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamPerspectiveFactory.java 2011-11-17
23:26:09 UTC (rev 36427)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamPerspectiveFactory.java 2011-11-18
00:47:16 UTC (rev 36428)
@@ -9,7 +9,7 @@
public class SeamPerspectiveFactory implements IPerspectiveFactory {
- private static final String SEAM_COMPONENTS_NAVIGATOR =
"org.jboss.tools.seam.ui.views.SeamComponentsNavigator"; //$NON-NLS-1$
+ private static final String SEAM_COMPONENTS_NAVIGATOR =
ISeamUiConstants.SEAM_COMPONENTS_VIEW_ID;
private static String JBOSS_SERVERS_VIEW =
"org.jboss.ide.eclipse.as.ui.views.JBossServerView"; //$NON-NLS-1$
private static String WTP_SERVERS_VIEW =
"org.eclipse.wst.server.ui.ServersView"; //$NON-NLS-1$
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIUtil.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIUtil.java 2011-11-17
23:26:09 UTC (rev 36427)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIUtil.java 2011-11-18
00:47:16 UTC (rev 36428)
@@ -22,7 +22,7 @@
public class SeamUIUtil {
public static void refreshSeamComponentView(){
- CommonNavigator navigator =
(CommonNavigator)Workbench.getInstance().getActiveWorkbenchWindow().getActivePage().findView("org.jboss.tools.seam.ui.views.SeamComponentsNavigator");
+ CommonNavigator navigator =
(CommonNavigator)Workbench.getInstance().getActiveWorkbenchWindow().getActivePage().findView(ISeamUiConstants.SEAM_COMPONENTS_VIEW_ID);
if(navigator != null)
navigator.getCommonViewer().refresh();
}
Show replies by date