code refactoring
authorVictor Kirhenshtein <victor@netxms.org>
Fri, 26 Aug 2016 08:20:14 +0000 (11:20 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Fri, 26 Aug 2016 08:20:14 +0000 (11:20 +0300)
14 files changed:
src/java/netxms-eclipse/EventManager/src/org/netxms/ui/eclipse/eventmanager/widgets/SyslogTraceWidget.java
src/java/netxms-eclipse/ObjectManager/src/org/netxms/ui/eclipse/objectmanager/propertypages/helpers/DciListLabelProvider.java
src/java/netxms-eclipse/PerfView/src/org/netxms/ui/eclipse/perfview/widgets/TableValue.java
src/java/netxms-eclipse/PerfView/src/org/netxms/ui/eclipse/perfview/widgets/helpers/TableLabelProvider.java
src/java/netxms-eclipse/SLM/src/org/netxms/ui/eclipse/slm/propertypages/ServiceCheckScript.java
src/java/netxms-eclipse/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/widgets/helpers/LogParserRuleEditor.java
src/java/netxms-eclipse/Topology/src/org/netxms/ui/eclipse/topology/views/VlanView.java
webui/webapp/Core/src/org/netxms/ui/eclipse/tools/IntermediateSelectionProvider.java
webui/webapp/EventManager/src/org/netxms/ui/eclipse/eventmanager/widgets/SyslogTraceWidget.java
webui/webapp/ObjectManager/src/org/netxms/ui/eclipse/objectmanager/propertypages/helpers/DciListLabelProvider.java
webui/webapp/PerfView/src/org/netxms/ui/eclipse/perfview/widgets/TableValue.java
webui/webapp/PerfView/src/org/netxms/ui/eclipse/perfview/widgets/helpers/TableLabelProvider.java
webui/webapp/SLM/src/org/netxms/ui/eclipse/slm/propertypages/ServiceCheckScript.java
webui/webapp/Topology/src/org/netxms/ui/eclipse/topology/views/VlanView.java

index 0d592be..41ec989 100644 (file)
@@ -26,7 +26,6 @@ import org.eclipse.swt.events.DisposeEvent;
 import org.eclipse.swt.events.DisposeListener;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.PlatformUI;
 import org.netxms.client.NXCSession;
 import org.netxms.client.SessionListener;
 import org.netxms.client.SessionNotification;
index db2a678..ca25bdc 100644 (file)
@@ -26,7 +26,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.LabelProvider;
 import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.PlatformUI;
 import org.netxms.client.NXCSession;
 import org.netxms.client.datacollection.ConditionDciInfo;
 import org.netxms.client.datacollection.DataCollectionObject;
index 4f2687c..ee7ebbf 100644 (file)
@@ -80,41 +80,36 @@ public class TableValue extends Composite
    private long dciId = 0;
    private String configId;
    private String objectName = null;
-   private String id;
    private Table currentData = null;
    private SortableTableViewer viewer;
+   private TableLabelProvider labelProvider;
    private CLabel errorLabel;
    private CellSelectionManager cellSelectionManager;
    private Action actionShowLineChart;
    private Action actionShowBarChart;
    private Action actionShowPieChart;
    private Action actionUseMultipliers;
-   private boolean useMultipliers = false;
-   private TableLabelProvider tlp;
 
    /**
     * @param parent
     * @param style
     * @param viewPart
     */
-   public TableValue(Composite parent, int style, IViewPart viewPart, String configId)
+   public TableValue(Composite parent, int style, IViewPart viewPart, String configSubId)
    {
       super(parent, style);
 
       this.viewPart = viewPart;
-      this.configId = configId;
       session = (NXCSession)ConsoleSharedData.getSession();
 
       setLayout(new FormLayout());
 
       viewer = new SortableTableViewer(this, SWT.FULL_SELECTION | SWT.MULTI);
       viewer.setContentProvider(new TableContentProvider());
-      viewer.setLabelProvider(new TableLabelProvider());
+      labelProvider = new TableLabelProvider();
+      viewer.setLabelProvider(labelProvider);
       cellSelectionManager = new CellSelectionManager(viewer);
       
-      final IDialogSettings ds = Activator.getDefault().getDialogSettings();
-      tlp = (TableLabelProvider)viewer.getLabelProvider();
-      
       FormData fd = new FormData();
       fd.top = new FormAttachment(0, 0);
       fd.left = new FormAttachment(0, 0);
@@ -122,23 +117,21 @@ public class TableValue extends Composite
       fd.bottom = new FormAttachment(100, 0);
       viewer.getControl().setLayoutData(fd);
       
-      createActions();
-      createPopupMenu();
-      
       StringBuilder sb = new StringBuilder("TableLastValues."); //$NON-NLS-1$
       sb.append(dciId);
-      if (configId != null)
+      if (configSubId != null)
       {
          sb.append('.');
-         sb.append(configId);
+         sb.append(configSubId);
       }
-      id = sb.toString();
+      configId = sb.toString();
       
-      if (ds.get(id + ".useMultipliers") != null) {//$NON-NLS-1$
-         useMultipliers = ds.getBoolean(id + ".useMultipliers");
-      }
-      else
-         tlp.useMultipliers(useMultipliers);      
+      final IDialogSettings ds = Activator.getDefault().getDialogSettings();
+      if (ds.get(configId + ".useMultipliers") != null)
+         labelProvider.setUseMultipliers(ds.getBoolean(configId + ".useMultipliers"));
+
+      createActions();
+      createPopupMenu();
    }
 
    /**
@@ -174,9 +167,11 @@ public class TableValue extends Composite
          @Override
          public void run()
          {
-            useMultipliers();
+            labelProvider.setUseMultipliers(actionUseMultipliers.isChecked());
+            viewer.refresh(true);
          }
       };
+      actionUseMultipliers.setChecked(labelProvider.areMultipliersUsed());
    }
 
    /**
@@ -323,25 +318,19 @@ public class TableValue extends Composite
          Arrays.fill(widths, 150);
          viewer.createColumns(names, widths, 0, SWT.UP);
          
-         
-         
-         WidgetHelper.restoreTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), id); //$NON-NLS-1$
+         WidgetHelper.restoreTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), configId); //$NON-NLS-1$
          viewer.getTable().addDisposeListener(new DisposeListener() {
             @Override
             public void widgetDisposed(DisposeEvent e)
             {
-               WidgetHelper.saveTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), id); //$NON-NLS-1$
-               ds.put(id + ".useMultipliers", tlp.areMultipliersUsed()); //$NON-NLS-1$
+               WidgetHelper.saveTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), configId); //$NON-NLS-1$
+               ds.put(configId + ".useMultipliers", labelProvider.areMultipliersUsed()); //$NON-NLS-1$
             }
          });
          viewer.setComparator(new TableItemComparator(table.getColumnDataTypes()));        
       }
       
-      // Passes the useMultipliers flag
-      tlp.useMultipliers(useMultipliers);
-      
-      actionUseMultipliers.setChecked(useMultipliers);
-      tlp.setColumns(table.getColumns());
+      labelProvider.setColumns(table.getColumns());
       viewer.setInput(table);
       currentData = table;
    }
@@ -368,20 +357,6 @@ public class TableValue extends Composite
       return instance.toString();
    }
    
-   
-   /**
-    * Sets the useMultipliers flag
-    */
-   private void useMultipliers()
-   {
-      if (!useMultipliers) {
-         useMultipliers = true;
-      } else if (useMultipliers) {
-         useMultipliers = false;
-      }
-      updateViewer(currentData);
-   }
-
    /**
     * Show line chart
     */
index 798c883..d4ce17d 100644 (file)
@@ -41,7 +41,7 @@ public class TableLabelProvider extends LabelProvider implements ITableLabelProv
        private TableColumnDefinition[] columns = null;
        private TableRow row;
        private Font keyColumnFont;
-   private boolean useMultipliers;
+   private boolean useMultipliers = true;
        
        /**
         * 
@@ -112,11 +112,17 @@ public class TableLabelProvider extends LabelProvider implements ITableLabelProv
                return null;
        }
        
-       public void useMultipliers(boolean useMultipliers)
+       /**
+        * @param useMultipliers
+        */
+       public void setUseMultipliers(boolean useMultipliers)
        {
           this.useMultipliers = useMultipliers;
        }
        
+       /**
+        * @return
+        */
        public boolean areMultipliersUsed()
        {
           return useMultipliers;
index 063987d..e76b168 100644 (file)
@@ -25,7 +25,6 @@ import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.dialogs.PropertyPage;
 import org.netxms.client.NXCObjectModificationData;
 import org.netxms.client.NXCSession;
index 7c72cf5..90b6bdc 100644 (file)
@@ -39,7 +39,6 @@ import org.eclipse.ui.forms.events.HyperlinkEvent;
 import org.eclipse.ui.forms.widgets.FormToolkit;
 import org.eclipse.ui.forms.widgets.ImageHyperlink;
 import org.netxms.client.NXCSession;
-import org.netxms.client.TimePeriod;
 import org.netxms.client.events.EventTemplate;
 import org.netxms.ui.eclipse.console.resources.SharedIcons;
 import org.netxms.ui.eclipse.eventmanager.widgets.EventSelector;
index 3db5773..1518aa9 100644 (file)
@@ -47,7 +47,6 @@ import org.eclipse.ui.IViewSite;
 import org.eclipse.ui.IWorkbenchActionConstants;
 import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.part.ViewPart;
 import org.netxms.client.NXCSession;
 import org.netxms.client.objects.AbstractObject;
index caf45a3..e82b6cd 100644 (file)
@@ -16,115 +16,111 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
  */
 public class IntermediateSelectionProvider implements IPostSelectionProvider
 {
-       private final ListenerList selectionListeners = new ListenerList();
-       private final ListenerList postSelectionListeners = new ListenerList();
-       private ISelectionProvider delegate;
+   private final ListenerList<ISelectionChangedListener> selectionListeners = new ListenerList<ISelectionChangedListener>();
+   private final ListenerList<ISelectionChangedListener> postSelectionListeners = new ListenerList<ISelectionChangedListener>();
+   private ISelectionProvider delegate;
 
-       private ISelectionChangedListener selectionListener = new ISelectionChangedListener() {
-               public void selectionChanged(SelectionChangedEvent event)
-               {
-                       if (event.getSelectionProvider() == delegate)
-                       {
-                               fireSelectionChanged(event.getSelection());
-                       }
-               }
-       };
+   private ISelectionChangedListener selectionListener = new ISelectionChangedListener() {
+      public void selectionChanged(SelectionChangedEvent event)
+      {
+         if (event.getSelectionProvider() == delegate)
+         {
+            fireSelectionChanged(event.getSelection());
+         }
+      }
+   };
 
-       private ISelectionChangedListener postSelectionListener = new ISelectionChangedListener() {
-               public void selectionChanged(SelectionChangedEvent event)
-               {
-                       if (event.getSelectionProvider() == delegate)
-                       {
-                               firePostSelectionChanged(event.getSelection());
-                       }
-               }
-       };
+   private ISelectionChangedListener postSelectionListener = new ISelectionChangedListener() {
+      public void selectionChanged(SelectionChangedEvent event)
+      {
+         if (event.getSelectionProvider() == delegate)
+         {
+            firePostSelectionChanged(event.getSelection());
+         }
+      }
+   };
 
-       /**
-        * Sets a new selection provider to delegate to. Selection listeners registered with the previous delegate are removed before.
-        
-        * @param newDelegate new selection provider
-        */
-       public void setSelectionProviderDelegate(ISelectionProvider newDelegate)
-       {
-               if (delegate == newDelegate)
-               {
-                       return;
-               }
-               if (delegate != null)
-               {
-                       delegate.removeSelectionChangedListener(selectionListener);
-                       if (delegate instanceof IPostSelectionProvider)
-                       {
-                               ((IPostSelectionProvider)delegate).removePostSelectionChangedListener(postSelectionListener);
-                       }
-               }
-               delegate = newDelegate;
-               if (newDelegate != null)
-               {
-                       newDelegate.addSelectionChangedListener(selectionListener);
-                       if (newDelegate instanceof IPostSelectionProvider)
-                       {
-                               ((IPostSelectionProvider)newDelegate).addPostSelectionChangedListener(postSelectionListener);
-                       }
-                       fireSelectionChanged(newDelegate.getSelection());
-                       firePostSelectionChanged(newDelegate.getSelection());
-               }
-       }
+   /**
+    * Sets a new selection provider to delegate to. Selection listeners registered with the previous delegate are removed before.
+    * 
+    * @param newDelegate new selection provider
+    */
+   public void setSelectionProviderDelegate(ISelectionProvider newDelegate)
+   {
+      if (delegate == newDelegate)
+      {
+         return;
+      }
+      if (delegate != null)
+      {
+         delegate.removeSelectionChangedListener(selectionListener);
+         if (delegate instanceof IPostSelectionProvider)
+         {
+            ((IPostSelectionProvider)delegate).removePostSelectionChangedListener(postSelectionListener);
+         }
+      }
+      delegate = newDelegate;
+      if (newDelegate != null)
+      {
+         newDelegate.addSelectionChangedListener(selectionListener);
+         if (newDelegate instanceof IPostSelectionProvider)
+         {
+            ((IPostSelectionProvider)newDelegate).addPostSelectionChangedListener(postSelectionListener);
+         }
+         fireSelectionChanged(newDelegate.getSelection());
+         firePostSelectionChanged(newDelegate.getSelection());
+      }
+   }
 
-       protected void fireSelectionChanged(ISelection selection)
-       {
-               fireSelectionChanged(selectionListeners, selection);
-       }
+   protected void fireSelectionChanged(ISelection selection)
+   {
+      fireSelectionChanged(selectionListeners, selection);
+   }
 
-       protected void firePostSelectionChanged(ISelection selection)
-       {
-               fireSelectionChanged(postSelectionListeners, selection);
-       }
+   protected void firePostSelectionChanged(ISelection selection)
+   {
+      fireSelectionChanged(postSelectionListeners, selection);
+   }
 
-       private void fireSelectionChanged(ListenerList list, ISelection selection)
-       {
-               SelectionChangedEvent event = new SelectionChangedEvent(delegate, selection);
-               Object[] listeners = list.getListeners();
-               for(int i = 0; i < listeners.length; i++)
-               {
-                       ISelectionChangedListener listener = (ISelectionChangedListener)listeners[i];
-                       listener.selectionChanged(event);
-               }
-       }
+   private void fireSelectionChanged(ListenerList<ISelectionChangedListener> list, ISelection selection)
+   {
+      SelectionChangedEvent event = new SelectionChangedEvent(delegate, selection);
+      for(ISelectionChangedListener listener : list)
+         listener.selectionChanged(event);
+   }
 
-       // IPostSelectionProvider Implementation
+   // IPostSelectionProvider Implementation
 
-       public void addSelectionChangedListener(ISelectionChangedListener listener)
-       {
-               selectionListeners.add(listener);
-       }
+   public void addSelectionChangedListener(ISelectionChangedListener listener)
+   {
+      selectionListeners.add(listener);
+   }
 
-       public void removeSelectionChangedListener(ISelectionChangedListener listener)
-       {
-               selectionListeners.remove(listener);
-       }
+   public void removeSelectionChangedListener(ISelectionChangedListener listener)
+   {
+      selectionListeners.remove(listener);
+   }
 
-       public void addPostSelectionChangedListener(ISelectionChangedListener listener)
-       {
-               postSelectionListeners.add(listener);
-       }
+   public void addPostSelectionChangedListener(ISelectionChangedListener listener)
+   {
+      postSelectionListeners.add(listener);
+   }
 
-       public void removePostSelectionChangedListener(ISelectionChangedListener listener)
-       {
-               postSelectionListeners.remove(listener);
-       }
+   public void removePostSelectionChangedListener(ISelectionChangedListener listener)
+   {
+      postSelectionListeners.remove(listener);
+   }
 
-       public ISelection getSelection()
-       {
-               return delegate == null ? null : delegate.getSelection();
-       }
+   public ISelection getSelection()
+   {
+      return delegate == null ? null : delegate.getSelection();
+   }
 
-       public void setSelection(ISelection selection)
-       {
-               if (delegate != null)
-               {
-                       delegate.setSelection(selection);
-               }
-       }
+   public void setSelection(ISelection selection)
+   {
+      if (delegate != null)
+      {
+         delegate.setSelection(selection);
+      }
+   }
 }
index 0d592be..41ec989 100644 (file)
@@ -26,7 +26,6 @@ import org.eclipse.swt.events.DisposeEvent;
 import org.eclipse.swt.events.DisposeListener;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.PlatformUI;
 import org.netxms.client.NXCSession;
 import org.netxms.client.SessionListener;
 import org.netxms.client.SessionNotification;
index db2a678..ca25bdc 100644 (file)
@@ -26,7 +26,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.LabelProvider;
 import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.PlatformUI;
 import org.netxms.client.NXCSession;
 import org.netxms.client.datacollection.ConditionDciInfo;
 import org.netxms.client.datacollection.DataCollectionObject;
index 4b7edb8..ee7ebbf 100644 (file)
@@ -80,65 +80,58 @@ public class TableValue extends Composite
    private long dciId = 0;
    private String configId;
    private String objectName = null;
-   private String id;
    private Table currentData = null;
    private SortableTableViewer viewer;
+   private TableLabelProvider labelProvider;
    private CLabel errorLabel;
    private CellSelectionManager cellSelectionManager;
    private Action actionShowLineChart;
    private Action actionShowBarChart;
    private Action actionShowPieChart;
    private Action actionUseMultipliers;
-   private boolean useMultipliers = false;
-   private TableLabelProvider tlp;
 
    /**
     * @param parent
     * @param style
     * @param viewPart
     */
-   public TableValue(Composite parent, int style, IViewPart viewPart, String configId)
+   public TableValue(Composite parent, int style, IViewPart viewPart, String configSubId)
    {
       super(parent, style);
 
       this.viewPart = viewPart;
-      this.configId = configId;
       session = (NXCSession)ConsoleSharedData.getSession();
 
       setLayout(new FormLayout());
 
       viewer = new SortableTableViewer(this, SWT.FULL_SELECTION | SWT.MULTI);
       viewer.setContentProvider(new TableContentProvider());
-      viewer.setLabelProvider(new TableLabelProvider());
+      labelProvider = new TableLabelProvider();
+      viewer.setLabelProvider(labelProvider);
       cellSelectionManager = new CellSelectionManager(viewer);
       
-      final IDialogSettings ds = Activator.getDefault().getDialogSettings();
-      tlp = (TableLabelProvider)viewer.getLabelProvider();
-      
       FormData fd = new FormData();
       fd.top = new FormAttachment(0, 0);
       fd.left = new FormAttachment(0, 0);
       fd.right = new FormAttachment(100, 0);
       fd.bottom = new FormAttachment(100, 0);
       viewer.getControl().setLayoutData(fd);
-
-      createActions();
-      createPopupMenu();
       
       StringBuilder sb = new StringBuilder("TableLastValues."); //$NON-NLS-1$
       sb.append(dciId);
-      if (configId != null)
+      if (configSubId != null)
       {
          sb.append('.');
-         sb.append(configId);
+         sb.append(configSubId);
       }
-      id = sb.toString();
+      configId = sb.toString();
       
-      if (ds.get(id + ".useMultipliers") != null) {//$NON-NLS-1$
-         useMultipliers = ds.getBoolean(id + ".useMultipliers");
-      }
-      else
-         tlp.useMultipliers(useMultipliers);      
+      final IDialogSettings ds = Activator.getDefault().getDialogSettings();
+      if (ds.get(configId + ".useMultipliers") != null)
+         labelProvider.setUseMultipliers(ds.getBoolean(configId + ".useMultipliers"));
+
+      createActions();
+      createPopupMenu();
    }
 
    /**
@@ -174,9 +167,11 @@ public class TableValue extends Composite
          @Override
          public void run()
          {
-            useMultipliers();
+            labelProvider.setUseMultipliers(actionUseMultipliers.isChecked());
+            viewer.refresh(true);
          }
       };
+      actionUseMultipliers.setChecked(labelProvider.areMultipliersUsed());
    }
 
    /**
@@ -323,26 +318,19 @@ public class TableValue extends Composite
          Arrays.fill(widths, 150);
          viewer.createColumns(names, widths, 0, SWT.UP);
          
-         
-         
-         WidgetHelper.restoreTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), id); //$NON-NLS-1$
+         WidgetHelper.restoreTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), configId); //$NON-NLS-1$
          viewer.getTable().addDisposeListener(new DisposeListener() {
             @Override
             public void widgetDisposed(DisposeEvent e)
             {
-               WidgetHelper.saveTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), id); //$NON-NLS-1$
-               ds.put(id + ".useMultipliers", tlp.areMultipliersUsed()); //$NON-NLS-1$
+               WidgetHelper.saveTableViewerSettings(viewer, Activator.getDefault().getDialogSettings(), configId); //$NON-NLS-1$
+               ds.put(configId + ".useMultipliers", labelProvider.areMultipliersUsed()); //$NON-NLS-1$
             }
          });
          viewer.setComparator(new TableItemComparator(table.getColumnDataTypes()));        
       }
-      TableLabelProvider tlp = (TableLabelProvider)viewer.getLabelProvider();
-      
-      // Passes the useMultipliers flag
-      tlp.useMultipliers(useMultipliers);
       
-      actionUseMultipliers.setChecked(useMultipliers);
-      tlp.setColumns(table.getColumns());
+      labelProvider.setColumns(table.getColumns());
       viewer.setInput(table);
       currentData = table;
    }
@@ -369,22 +357,6 @@ public class TableValue extends Composite
       return instance.toString();
    }
    
-   
-   /**
-    * Sets the useMultipliers flag
-    */
-   private void useMultipliers()
-   {
-      if (!useMultipliers) {
-         actionUseMultipliers.setChecked(true);
-         useMultipliers = true;
-      } else if (useMultipliers) {
-         actionUseMultipliers.setChecked(false);
-         useMultipliers = false;
-      }
-      updateViewer(currentData);
-   }
-
    /**
     * Show line chart
     */
index 7138627..d4ce17d 100644 (file)
@@ -41,7 +41,7 @@ public class TableLabelProvider extends LabelProvider implements ITableLabelProv
        private TableColumnDefinition[] columns = null;
        private TableRow row;
        private Font keyColumnFont;
-   private boolean useMultipliers;
+   private boolean useMultipliers = true;
        
        /**
         * 
@@ -112,15 +112,21 @@ public class TableLabelProvider extends LabelProvider implements ITableLabelProv
                return null;
        }
        
-       public void useMultipliers(boolean useMultipliers)
+       /**
+        * @param useMultipliers
+        */
+       public void setUseMultipliers(boolean useMultipliers)
        {
           this.useMultipliers = useMultipliers;
        }
        
+       /**
+        * @return
+        */
        public boolean areMultipliersUsed()
-   {
-      return useMultipliers;
-   }
+       {
+          return useMultipliers;
+       }
        
        /**
         * @param columnIndex
index 063987d..e76b168 100644 (file)
@@ -25,7 +25,6 @@ import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.dialogs.PropertyPage;
 import org.netxms.client.NXCObjectModificationData;
 import org.netxms.client.NXCSession;
index d23066f..2c43062 100644 (file)
@@ -47,7 +47,6 @@ import org.eclipse.ui.IViewSite;
 import org.eclipse.ui.IWorkbenchActionConstants;
 import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.part.ViewPart;
 import org.netxms.client.NXCSession;
 import org.netxms.client.objects.AbstractObject;