You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/09/05 17:17:10 UTC
svn commit: r278771 - in
/forrest/trunk/tools/eclipse/plugins/org.apache.forrest: ./
src/org/apache/forrest/eclipse/views/
Author: rgardler
Date: Mon Sep 5 08:16:20 2005
New Revision: 278771
URL: http://svn.apache.org/viewcvs?rev=278771&view=rev
Log:
IDs should conform to conventions
Modified:
forrest/trunk/tools/eclipse/plugins/org.apache.forrest/plugin.xml
forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/ForrestPropertiesView.java
forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/LocationmapView.java
forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/SiteXMLView.java
forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/TabsXMLView.java
Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/plugin.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/plugin.xml?rev=278771&r1=278770&r2=278771&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/plugin.xml (original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/plugin.xml Mon Sep 5 08:16:20 2005
@@ -123,23 +123,23 @@
category="Forrest"
class="org.apache.forrest.eclipse.views.SiteXMLView"
icon="icons/start.png"
- id="SiteXML"
+ id="org.apache.forrest.view.siteXML"
name="SiteXML"/>
<view
category="Forrest"
class="org.apache.forrest.eclipse.views.TabsXMLView"
icon="icons/start.png"
- id="TabsXML"
+ id="org.apache.forrest.view.tabsXML"
name="TabsXML"/>
<view
category="Forrest"
class="org.apache.forrest.eclipse.views.ForrestPropertiesView"
- id="properties.editor"
- name="properties.editor"/>
+ id="org.apache.forrest.view.propertiesEditor"
+ name="Properties"/>
<view
category="Forrest"
class="org.apache.forrest.eclipse.views.LocationmapView"
- id="Locationmap"
+ id="org.apache.forrest.view.locationmap"
name="Locationmap"/>
</extension>
@@ -170,7 +170,7 @@
point="org.eclipse.ui.perspectives">
<perspective
class="org.apache.forrest.eclipse.Perspective"
- id="ForrestIDE.perspective"
- name="Perspective"/>
+ id="org.apache.forrest.perspective.ContentObject"
+ name="Content Object (Forrest)"/>
</extension>
</plugin>
Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/ForrestPropertiesView.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/ForrestPropertiesView.java?rev=278771&r1=278770&r2=278771&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/ForrestPropertiesView.java (original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/ForrestPropertiesView.java Mon Sep 5 08:16:20 2005
@@ -45,7 +45,8 @@
*/
public class ForrestPropertiesView extends NavigationView {
- private Table table;
+ public static final String ID_VIEW = "org.apache.forrest.view.propertiesEditor";
+ private Table table;
public static TableViewer tableViewer;
public static Element editorElement;
@@ -57,8 +58,7 @@
// Set column names
- private String[] columnNames = new String[] {
-
+ private String[] columnNames = new String[] {
PROPERTY_NAME_COLUMN,
PROPERTY_VALUE_COLUMN
@@ -98,8 +98,6 @@
int style = SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL |
SWT.FULL_SELECTION | SWT.HIDE_SELECTION;
-
-
table = new Table(parent, style);
GridData gridData = new GridData(GridData.FILL_BOTH);
@@ -109,7 +107,6 @@
table.setLinesVisible(true);
table.setHeaderVisible(true);
-
// 1st column with Property
TableColumn column = new TableColumn(table, SWT.LEFT, 0);
@@ -123,7 +120,6 @@
}
});
-
// 2nd column with Value
column = new TableColumn(table, SWT.LEFT, 1);
column.setText("VALUE");
@@ -135,10 +131,9 @@
}
});
-
-
}
- public static Vector getContent(Element element){
+
+ public static Vector getContent(Element element){
Vector objectList = new Vector();
if (element != null) {
NamedNodeMap atrs = element.getAttributes();
Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/LocationmapView.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/LocationmapView.java?rev=278771&r1=278770&r2=278771&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/LocationmapView.java (original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/LocationmapView.java Mon Sep 5 08:16:20 2005
@@ -62,7 +62,8 @@
*/
public class LocationmapView extends NavigationView implements IMenuListener,
ISelectionListener {
- private Action AddMatch;
+ public static final String ID_VIEW = "org.apache.forrest.view.locationmap";
+ private Action AddMatch;
private Action AddLocation;
private Action RemoveElement;
private Action SaveDocument;
@@ -301,13 +302,6 @@
SaveDocument.setToolTipText("Save XML Document");
SaveDocument.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK));
- }
-
- private void showMessage(String message) {
- MessageDialog.openInformation(
- treeViewer.getControl().getShell(),
- "Sample View",
- message);
}
/**
Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/SiteXMLView.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/SiteXMLView.java?rev=278771&r1=278770&r2=278771&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/SiteXMLView.java (original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/SiteXMLView.java Mon Sep 5 08:16:20 2005
@@ -58,7 +58,9 @@
* navigator and supports a number of context menus for editing.
*/
public class SiteXMLView extends NavigationView {
- private Action AddElement;
+ public static String ID_VIEW = "org.apache.forrest.view.siteXML";
+
+ private Action AddElement;
private Action RemoveElement;
@@ -283,12 +285,7 @@
ISharedImages.IMG_OBJS_INFO_TSK));
}
- private void showMessage(String message) {
- MessageDialog.openInformation(treeViewer.getControl().getShell(),
- "Sample View", message);
- }
-
- /**
+ /**
* Get the name of the file this editor view represents. This name does not
* include the path. For example. 'site.xml' or 'tabs.xml'
*
Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/TabsXMLView.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/TabsXMLView.java?rev=278771&r1=278770&r2=278771&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/TabsXMLView.java (original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/TabsXMLView.java Mon Sep 5 08:16:20 2005
@@ -56,7 +56,8 @@
* menus for editing.
*/
public class TabsXMLView extends NavigationView {
- private Action AddElement;
+ public static final String ID_VIEW = "org.apache.forrest.view.tabsXML";
+ private Action AddElement;
private Action RemoveElement;
private Action SaveDocument;
@@ -135,7 +136,7 @@
public void setFocus() {
// TODO Auto-generated method stub
-
+
}
public void menuAboutToShow(IMenuManager manager) {
@@ -209,13 +210,6 @@
SaveDocument.setToolTipText("Save XML Document");
SaveDocument.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK));
- }
-
- private void showMessage(String message) {
- MessageDialog.openInformation(
- treeViewer.getControl().getShell(),
- "Sample View",
- message);
}
/**