]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessEditor.java
Make module operations interruptible
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / editors / ProcessEditor.java
index f4cd3f29eb0f8be57823e06d3f816ead5ebfd9d6..027e7c626516ce627a17045ed98b22419caa39b3 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.argeo.slc.client.ui.editors;
 
 import java.util.HashMap;
@@ -40,11 +55,11 @@ public class ProcessEditor extends FormEditor implements
        private ProcessController processController;
 
        private ProcessBuilderPage builderPage;
-       private ProcessLogPage logPage;
+       //private ProcessLogPage logPage;
 
        private ExecutionModulesManager modulesManager;
 
-       private Boolean switchToLog = false;
+       //private Boolean switchToLog = false;
 
        @Override
        public void init(IEditorSite site, IEditorInput input)
@@ -112,8 +127,8 @@ public class ProcessEditor extends FormEditor implements
                doSave(null);
                try {
                        // show log
-                       if (switchToLog)
-                               setActivePage(logPage.getId());
+//                     if (switchToLog)
+//                             setActivePage(logPage.getId());
 
                        ExecutionProcess process = processController.process(processNode);
                        Map<String, String> properties = new HashMap<String, String>();
@@ -181,8 +196,8 @@ public class ProcessEditor extends FormEditor implements
                        builderPage = new ProcessBuilderPage(this, processNode);
                        addPage(builderPage);
                        firePropertyChange(PROP_DIRTY);
-                       logPage = new ProcessLogPage(this, processNode);
-                       addPage(logPage);
+//                     logPage = new ProcessLogPage(this, processNode);
+//                     addPage(logPage);
                } catch (PartInitException e) {
                        throw new SlcException("Cannot add pages", e);
                }