Author: timotei
Date: Fri May 27 21:57:55 2011
New Revision: 49664
URL: http://svn.gna.org/viewcvs/wesnoth?rev=49664&view=rev
Log:
eclipse plugin: move the 'Projects Explorer' view ID
to the relevant class
Modified:
trunk/utils/java/org.wesnoth/plugin.xml
trunk/utils/java/org.wesnoth/src/org/wesnoth/navigator/WesnothProjectsExplorer.java
trunk/utils/java/org.wesnoth/src/org/wesnoth/product/WMLPerspective.java
trunk/utils/java/org.wesnoth/src/org/wesnoth/utils/WorkspaceUtils.java
Modified: trunk/utils/java/org.wesnoth/plugin.xml
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/org.wesnoth/plugin.xml?rev=49664&r1=49663&r2=49664&view=diff
==============================================================================
--- trunk/utils/java/org.wesnoth/plugin.xml (original)
+++ trunk/utils/java/org.wesnoth/plugin.xml Fri May 27 21:57:55 2011
@@ -218,13 +218,11 @@
id="org.wesnoth.views">
</category>
<view
- allowMultiple="false"
category="org.wesnoth.views"
class="org.wesnoth.navigator.WesnothProjectsExplorer"
icon="icons/wesnoth-icon_16.png"
- id="org.wesnoth.views.projects"
- name="Wesnoth Projects"
- restorable="true">
+ id="org.wesnoth.navigator.WesnothProjectsExplorer"
+ name="Wesnoth Projects">
</view>
</extension>
<extension
@@ -277,10 +275,10 @@
<extension
point="org.eclipse.ui.navigator.viewer">
<viewer
- viewerId="org.wesnoth.views.projects">
+ viewerId="org.wesnoth.navigator.WesnothProjectsExplorer">
</viewer>
<viewerContentBinding
- viewerId="org.wesnoth.views.projects">
+ viewerId="org.wesnoth.navigator.WesnothProjectsExplorer">
<includes>
<contentExtension
pattern="org.eclipse.ui.navigator.resourceContent">
@@ -294,7 +292,7 @@
</includes>
</viewerContentBinding>
<viewerActionBinding
- viewerId="org.wesnoth.views.projects">
+ viewerId="org.wesnoth.navigator.WesnothProjectsExplorer">
<includes>
<actionExtension
pattern="org.eclipse.ui.navigator.resources.*">
Modified:
trunk/utils/java/org.wesnoth/src/org/wesnoth/navigator/WesnothProjectsExplorer.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/org.wesnoth/src/org/wesnoth/navigator/WesnothProjectsExplorer.java?rev=49664&r1=49663&r2=49664&view=diff
==============================================================================
---
trunk/utils/java/org.wesnoth/src/org/wesnoth/navigator/WesnothProjectsExplorer.java
(original)
+++
trunk/utils/java/org.wesnoth/src/org/wesnoth/navigator/WesnothProjectsExplorer.java
Fri May 27 21:57:55 2011
@@ -19,6 +19,8 @@
public class WesnothProjectsExplorer extends CommonNavigator implements
IAdaptable,
IPersistableElement, IElementFactory
{
+ public static final String ID_PROJECTS_EXPLORER =
"org.wesnoth.navigator.WesnothProjectsExplorer"; //$NON-NLS-1$
+
public WesnothProjectsExplorer()
{
}
Modified:
trunk/utils/java/org.wesnoth/src/org/wesnoth/product/WMLPerspective.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/org.wesnoth/src/org/wesnoth/product/WMLPerspective.java?rev=49664&r1=49663&r2=49664&view=diff
==============================================================================
--- trunk/utils/java/org.wesnoth/src/org/wesnoth/product/WMLPerspective.java
(original)
+++ trunk/utils/java/org.wesnoth/src/org/wesnoth/product/WMLPerspective.java
Fri May 27 21:57:55 2011
@@ -12,11 +12,10 @@
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;
+import org.wesnoth.navigator.WesnothProjectsExplorer;
public class WMLPerspective implements IPerspectiveFactory
{
- public static final String WESNOTH_PROJ_EXPLORER_ID =
"org.wesnoth.views.projects"; //$NON-NLS-1$
-
@Override
public void createInitialLayout(IPageLayout layout)
{
@@ -35,7 +34,7 @@
// Place navigator and outline to left of editor area.
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
(float) 0.26, editorArea); //$NON-NLS-1$
- left.addView(WESNOTH_PROJ_EXPLORER_ID);
+ left.addView(WesnothProjectsExplorer.ID_PROJECTS_EXPLORER);
IFolderLayout bottom = layout.createFolder("bottom",
IPageLayout.BOTTOM, 0.76f, editorArea); //$NON-NLS-1$
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
Modified: trunk/utils/java/org.wesnoth/src/org/wesnoth/utils/WorkspaceUtils.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/org.wesnoth/src/org/wesnoth/utils/WorkspaceUtils.java?rev=49664&r1=49663&r2=49664&view=diff
==============================================================================
--- trunk/utils/java/org.wesnoth/src/org/wesnoth/utils/WorkspaceUtils.java
(original)
+++ trunk/utils/java/org.wesnoth/src/org/wesnoth/utils/WorkspaceUtils.java Fri
May 27 21:57:55 2011
@@ -50,7 +50,6 @@
import org.wesnoth.WesnothPlugin;
import org.wesnoth.navigator.WesnothProjectsExplorer;
import org.wesnoth.preferences.Preferences;
-import org.wesnoth.product.WMLPerspective;
public class WorkspaceUtils
@@ -260,7 +259,7 @@
*/
public static WesnothProjectsExplorer getProjectsExplorer()
{
- return
(WesnothProjectsExplorer)getView(WMLPerspective.WESNOTH_PROJ_EXPLORER_ID);
+ return
(WesnothProjectsExplorer)getView(WesnothProjectsExplorer.ID_PROJECTS_EXPLORER);
}
/**
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits