]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrProcessListView.java
Remove hard coded plugin ID
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / views / JcrProcessListView.java
index ac8b5e8adfc587b4da264f8a2b36a057b63c6cf2..27a39cf7b278ca3d23d662130d290ecbe6e8b1b7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -33,11 +33,12 @@ import javax.jcr.query.Query;
 import org.argeo.eclipse.ui.jcr.AsyncUiEventListener;
 import org.argeo.jcr.JcrUtils;
 import org.argeo.slc.SlcException;
+import org.argeo.slc.client.ui.ClientUiPlugin;
 import org.argeo.slc.client.ui.SlcImages;
 import org.argeo.slc.client.ui.editors.ProcessEditor;
 import org.argeo.slc.client.ui.editors.ProcessEditorInput;
 import org.argeo.slc.execution.ExecutionProcess;
-import org.argeo.slc.jcr.SlcJcrConstants;
+import org.argeo.slc.jcr.SlcJcrUtils;
 import org.argeo.slc.jcr.SlcNames;
 import org.argeo.slc.jcr.SlcTypes;
 import org.eclipse.jface.viewers.ColumnLabelProvider;
@@ -59,7 +60,7 @@ import org.eclipse.ui.part.ViewPart;
 
 /** Displays processes. */
 public class JcrProcessListView extends ViewPart {
-       public static final String ID = "org.argeo.slc.client.ui.jcrProcessListView";
+       public static final String ID = ClientUiPlugin.ID + ".jcrProcessListView";
 
        private TableViewer viewer;
 
@@ -92,8 +93,8 @@ public class JcrProcessListView extends ViewPart {
                        observationManager.addEventListener(processesObserver,
                                        Event.NODE_ADDED | Event.NODE_REMOVED
                                                        | Event.PROPERTY_CHANGED,
-                                       SlcJcrConstants.PROCESSES_BASE_PATH, true, null, null,
-                                       false);
+                                       SlcJcrUtils.getSlcProcessesBasePath(session), true, null,
+                                       null, false);
                } catch (RepositoryException e) {
                        throw new SlcException("Cannot register listeners", e);
                }