Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 67706 invoked from network); 5 Sep 2005 15:17:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2005 15:17:13 -0000 Received: (qmail 4897 invoked by uid 500); 5 Sep 2005 15:17:13 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 4820 invoked by uid 500); 5 Sep 2005 15:17:12 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Forrest Developers List" List-Id: Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 4807 invoked by uid 99); 5 Sep 2005 15:17:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 08:17:12 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Sep 2005 08:17:26 -0700 Received: (qmail 67690 invoked by uid 65534); 5 Sep 2005 15:17:11 -0000 Message-ID: <20050905151711.67689.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r278771 - in /forrest/trunk/tools/eclipse/plugins/org.apache.forrest: ./ src/org/apache/forrest/eclipse/views/ Date: Mon, 05 Sep 2005 15:17:10 -0000 To: svn@forrest.apache.org From: rgardler@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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"/> + id="org.apache.forrest.view.propertiesEditor" + name="Properties"/> @@ -170,7 +170,7 @@ point="org.eclipse.ui.perspectives"> + id="org.apache.forrest.perspective.ContentObject" + name="Content Object (Forrest)"/> 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); } /**