You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/06/28 14:38:02 UTC

svn commit: r1140570 - in /uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor: CasEditorPlugin.java ui/property/TypeSystemLocationPropertyPage.java

Author: joern
Date: Tue Jun 28 12:38:02 2011
New Revision: 1140570

URL: http://svn.apache.org/viewvc?rev=1140570&view=rev
Log:
UIMA-2151 Moved ts constant to CasEditorPlugin

Modified:
    uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/CasEditorPlugin.java
    uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/ui/property/TypeSystemLocationPropertyPage.java

Modified: uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/CasEditorPlugin.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/CasEditorPlugin.java?rev=1140570&r1=1140569&r2=1140570&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/CasEditorPlugin.java (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/CasEditorPlugin.java Tue Jun 28 12:38:02 2011
@@ -44,6 +44,11 @@ import org.osgi.framework.BundleContext;
 public class CasEditorPlugin extends AbstractUIPlugin {
   public static final String ID = "org.apache.uima.caseditor";
 
+  // TODO: Constant should be moved to ide part as soon as the Cas Editor
+  //       Project migration support can be removed!
+  @Deprecated
+  public final static String TYPE_SYSTEM_PROPERTY = "UimaCasEditorTypeSystemPath";
+
   private static final String ICONS_PATH = "icons/";
 
   /**
@@ -92,7 +97,7 @@ public class CasEditorPlugin extends Abs
         String typeSystemLocation;
         try {
           typeSystemLocation = project.getPersistentProperty(new QualifiedName("", 
-                  TypeSystemLocationPropertyPage.TYPE_SYSTEM_PROPERTY));
+                  CasEditorPlugin.TYPE_SYSTEM_PROPERTY));
         } catch (CoreException e) {
           typeSystemLocation = null;
         }

Modified: uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/ui/property/TypeSystemLocationPropertyPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/ui/property/TypeSystemLocationPropertyPage.java?rev=1140570&r1=1140569&r2=1140570&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/ui/property/TypeSystemLocationPropertyPage.java (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/ui/property/TypeSystemLocationPropertyPage.java Tue Jun 28 12:38:02 2011
@@ -50,7 +50,7 @@ import org.eclipse.ui.model.WorkbenchLab
  */
 public class TypeSystemLocationPropertyPage extends PropertyPage {
 
-  public final static String TYPE_SYSTEM_PROPERTY = "UimaCasEditorTypeSystemPath";
+  public final static String TYPE_SYSTEM_PROPERTY = CasEditorPlugin.TYPE_SYSTEM_PROPERTY;
 
   private static final String DEFAULT_TYPE_SYSTEM_PATH = "TypeSystem.xml";