chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1695691 [11/12] - in /chemistry/opencmis/trunk: chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ chemistry-opencmis-android/chemistry-opencmis-android-cli...
Date Thu, 13 Aug 2015 12:06:03 GMT
Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java Thu Aug 13 12:05:59 2015
@@ -57,7 +57,9 @@ import javax.swing.JSpinner;
 import javax.swing.JTextField;
 import javax.swing.SpinnerListModel;
 import javax.swing.SpinnerNumberModel;
+import javax.swing.SwingConstants;
 import javax.swing.UIManager;
+import javax.swing.WindowConstants;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
 
@@ -171,6 +173,7 @@ public class PropertyEditorFrame extends
         updateButton.setBorder(WorkbenchScale.scaleBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)));
         updateButton.setDefaultCapable(true);
         updateButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent event) {
                 if (doUpdate()) {
                     dispose();
@@ -180,7 +183,7 @@ public class PropertyEditorFrame extends
 
         add(updateButton, BorderLayout.PAGE_END);
 
-        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
         pack();
         setLocationRelativeTo(null);
         setVisible(true);
@@ -362,6 +365,7 @@ public class PropertyEditorFrame extends
             }
         }
 
+        @Override
         public void addNewValue() {
             JComponent valueField = new MultiValuePropertyInputField(createInputField(null), this, bgColor);
             valueComponents.add(valueField);
@@ -373,6 +377,7 @@ public class PropertyEditorFrame extends
             revalidate();
         }
 
+        @Override
         public void removeValue(int pos) {
             remove(valueComponents.remove(pos));
 
@@ -382,6 +387,7 @@ public class PropertyEditorFrame extends
             revalidate();
         }
 
+        @Override
         public void moveUp(int pos) {
             JComponent comp = valueComponents.get(pos);
             Collections.swap(valueComponents, pos, pos - 1);
@@ -395,6 +401,7 @@ public class PropertyEditorFrame extends
             revalidate();
         }
 
+        @Override
         public void moveDown(int pos) {
             JComponent comp = valueComponents.get(pos);
             Collections.swap(valueComponents, pos, pos + 1);
@@ -438,6 +445,7 @@ public class PropertyEditorFrame extends
             return getStatus() != StatusFlag.DONT_CHANGE;
         }
 
+        @Override
         public void setStatus(StatusFlag status) {
             switch (status) {
             case UPDATE:
@@ -451,6 +459,7 @@ public class PropertyEditorFrame extends
             }
         }
 
+        @Override
         public StatusFlag getStatus() {
             switch (changeBox.getSelectedIndex()) {
             case 1:
@@ -462,6 +471,7 @@ public class PropertyEditorFrame extends
             }
         }
 
+        @Override
         public Dimension getMaximumSize() {
             Dimension size = getPreferredSize();
             size.width = Short.MAX_VALUE;
@@ -501,6 +511,7 @@ public class PropertyEditorFrame extends
             });
         }
 
+        @Override
         public Object getPropertyValue() {
             return getText();
         }
@@ -535,6 +546,7 @@ public class PropertyEditorFrame extends
             });
         }
 
+        @Override
         public Object getPropertyValue() throws ParseException {
             commitEdit();
             return getValue();
@@ -549,7 +561,7 @@ public class PropertyEditorFrame extends
 
         public IntegerPropertyInputField(final Object value, final UpdateStatus status, final Color bgColor) {
             super(value, createFormat(), status, bgColor);
-            setHorizontalAlignment(JTextField.RIGHT);
+            setHorizontalAlignment(SwingConstants.RIGHT);
         }
 
         private static DecimalFormat createFormat() {
@@ -559,6 +571,7 @@ public class PropertyEditorFrame extends
             return result;
         }
 
+        @Override
         public Object getPropertyValue() {
             return ((BigDecimal) super.getValue()).toBigIntegerExact();
         }
@@ -572,7 +585,7 @@ public class PropertyEditorFrame extends
 
         public DecimalPropertyInputField(final Object value, final UpdateStatus status, final Color bgColor) {
             super(value, createFormat(), status, bgColor);
-            setHorizontalAlignment(JTextField.RIGHT);
+            setHorizontalAlignment(SwingConstants.RIGHT);
         }
 
         private static DecimalFormat createFormat() {
@@ -600,6 +613,7 @@ public class PropertyEditorFrame extends
             });
         }
 
+        @Override
         public Boolean getPropertyValue() {
             return (Boolean) getSelectedItem();
         }
@@ -651,7 +665,7 @@ public class PropertyEditorFrame extends
             if (editor instanceof JSpinner.DefaultEditor) {
                 JFormattedTextField tf = ((JSpinner.DefaultEditor) editor).getTextField();
                 tf.setColumns(6);
-                tf.setHorizontalAlignment(JTextField.RIGHT);
+                tf.setHorizontalAlignment(SwingConstants.RIGHT);
             }
             addSpinner(monthSpinner, status);
 
@@ -693,6 +707,7 @@ public class PropertyEditorFrame extends
             add(spinner);
         }
 
+        @Override
         public Object getPropertyValue() {
             GregorianCalendar result = new GregorianCalendar();
 
@@ -794,6 +809,7 @@ public class PropertyEditorFrame extends
             downButton.setEnabled(!isLast);
         }
 
+        @Override
         public Object getPropertyValue() throws Exception {
             return ((PropertyValue) component).getPropertyValue();
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java Thu Aug 13 12:05:59 2015
@@ -48,6 +48,7 @@ import javax.swing.JSplitPane;
 import javax.swing.JTable;
 import javax.swing.JTextArea;
 import javax.swing.SwingConstants;
+import javax.swing.WindowConstants;
 import javax.swing.table.AbstractTableModel;
 import javax.swing.table.TableCellRenderer;
 import javax.swing.table.TableColumn;
@@ -144,6 +145,7 @@ public class QueryFrame extends JFrame {
         JButton queryButton = new JButton("Query", new QueryIcon(ClientHelper.BUTTON_ICON_SIZE,
                 ClientHelper.BUTTON_ICON_SIZE));
         queryButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 doQuery();
             }
@@ -195,12 +197,14 @@ public class QueryFrame extends JFrame {
         popup.add(menuItem);
 
         menuItem.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 ClientHelper.copyTableToClipboard(resultsTable);
             }
         });
 
         resultsTable.addMouseListener(new MouseAdapter() {
+            @Override
             public void mouseClicked(MouseEvent e) {
                 int row = resultsTable.rowAtPoint(e.getPoint());
                 int column = resultsTable.columnAtPoint(e.getPoint());
@@ -213,10 +217,12 @@ public class QueryFrame extends JFrame {
                 }
             }
 
+            @Override
             public void mousePressed(MouseEvent e) {
                 maybeShowPopup(e);
             }
 
+            @Override
             public void mouseReleased(MouseEvent e) {
                 maybeShowPopup(e);
             }
@@ -229,6 +235,7 @@ public class QueryFrame extends JFrame {
         });
 
         resultsTable.addMouseMotionListener(new MouseMotionListener() {
+            @Override
             public void mouseMoved(MouseEvent e) {
                 int row = resultsTable.rowAtPoint(e.getPoint());
                 int column = resultsTable.columnAtPoint(e.getPoint());
@@ -239,6 +246,7 @@ public class QueryFrame extends JFrame {
                 }
             }
 
+            @Override
             public void mouseDragged(MouseEvent e) {
             }
         });
@@ -249,7 +257,7 @@ public class QueryFrame extends JFrame {
 
         ClientHelper.installEscapeBinding(this, getRootPane(), true);
 
-        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
         pack();
 
         setLocationRelativeTo(null);
@@ -301,7 +309,7 @@ public class QueryFrame extends JFrame {
             rtm.setRowCount(row);
 
             long stopTime = System.currentTimeMillis();
-            float time = ((float) (stopTime - startTime)) / 1000f;
+            float time = (stopTime - startTime) / 1000f;
             String total = "<unknown>";
             if (page.getTotalNumItems() >= 0) {
                 total = String.valueOf(page.getTotalNumItems());
@@ -336,6 +344,7 @@ public class QueryFrame extends JFrame {
             this.columnCount = columnCount;
         }
 
+        @Override
         public int getColumnCount() {
             return columnCount;
         }
@@ -344,6 +353,7 @@ public class QueryFrame extends JFrame {
             this.rowCount = rowCount;
         }
 
+        @Override
         public int getRowCount() {
             return rowCount;
         }
@@ -392,6 +402,7 @@ public class QueryFrame extends JFrame {
             row.put(col, value);
         }
 
+        @Override
         public Object getValueAt(int rowIndex, int columnIndex) {
             Map<Integer, Object> row = data.get(rowIndex);
             if (row == null) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RandomInputStream.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RandomInputStream.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RandomInputStream.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RandomInputStream.java Thu Aug 13 12:05:59 2015
@@ -85,7 +85,7 @@ public class RandomInputStream extends I
         for (int i = 0; i < len; i++) {
             int r = read();
             if (r == -1) {
-                return (i == 0 ? -1 : i);
+                return i == 0 ? -1 : i;
             }
             b[off + i] = (byte) r;
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java Thu Aug 13 12:05:59 2015
@@ -30,6 +30,7 @@ import javax.swing.JFrame;
 import javax.swing.JScrollPane;
 import javax.swing.JTable;
 import javax.swing.JTree;
+import javax.swing.WindowConstants;
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.DefaultTreeModel;
 import javax.swing.tree.TreeSelectionModel;
@@ -81,7 +82,7 @@ public class RepositoryInfoFrame extends
 
         ClientHelper.installEscapeBinding(this, getRootPane(), true);
 
-        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
         pack();
 
         setLocationRelativeTo(null);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java Thu Aug 13 12:05:59 2015
@@ -45,7 +45,6 @@ import javax.swing.JButton;
 import javax.swing.JCheckBox;
 import javax.swing.JComboBox;
 import javax.swing.JDialog;
-import javax.swing.JFrame;
 import javax.swing.JLabel;
 import javax.swing.JMenuItem;
 import javax.swing.JOptionPane;
@@ -58,6 +57,7 @@ import javax.swing.JTree;
 import javax.swing.SwingWorker;
 import javax.swing.ToolTipManager;
 import javax.swing.UIManager;
+import javax.swing.WindowConstants;
 import javax.swing.border.EmptyBorder;
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.DefaultTreeModel;
@@ -162,6 +162,7 @@ public class TckDialog {
 
             final JMenuItem selectItem = new JMenuItem("Select all");
             selectItem.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent e) {
                     selectAll(groupTree, true);
                 }
@@ -170,6 +171,7 @@ public class TckDialog {
 
             final JMenuItem deselectItem = new JMenuItem("Deselect all");
             deselectItem.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent e) {
                     selectAll(groupTree, false);
                 }
@@ -177,10 +179,12 @@ public class TckDialog {
             treePopup.add(deselectItem);
 
             groupTree.addMouseListener(new MouseAdapter() {
+                @Override
                 public void mousePressed(MouseEvent e) {
                     maybeShowPopup(e);
                 }
 
+                @Override
                 public void mouseReleased(MouseEvent e) {
                     maybeShowPopup(e);
                 }
@@ -242,6 +246,7 @@ public class TckDialog {
                     ClientHelper.BUTTON_ICON_SIZE));
             runButton.setDefaultCapable(true);
             runButton.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent event) {
                     int answer = JOptionPane
                             .showConfirmDialog(
@@ -297,7 +302,7 @@ public class TckDialog {
 
             ClientHelper.installEscapeBinding(this, getRootPane(), true);
 
-            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+            setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
             pack();
             setLocationRelativeTo(null);
             setVisible(true);
@@ -432,6 +437,7 @@ public class TckDialog {
             }
         }
 
+        @Override
         public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded,
                 boolean leaf, int row, boolean hasFocus) {
 
@@ -456,21 +462,27 @@ public class TckDialog {
             return this;
         }
 
+        @Override
         public void validate() {
         }
 
+        @Override
         public void invalidate() {
         }
 
+        @Override
         public void revalidate() {
         }
 
+        @Override
         public void repaint(long tm, int x, int y, int width, int height) {
         }
 
+        @Override
         public void repaint(Rectangle r) {
         }
 
+        @Override
         public void repaint() {
         }
     }
@@ -492,6 +504,7 @@ public class TckDialog {
             lastObject = new TestTreeNodeRender();
             lastObject.getTreeCellRendererComponent(tree, value, true, expanded, leaf, row, false);
             lastObject.addItemListener(new ItemListener() {
+                @Override
                 public void itemStateChanged(ItemEvent itemEvent) {
                     ((TestTreeNode) value).setEnabled(((JCheckBox) itemEvent.getItem()).isSelected());
                     fireEditingStopped();
@@ -564,6 +577,7 @@ public class TckDialog {
             JButton cancelButton = new JButton("Cancel");
             cancelButton.setDefaultCapable(true);
             cancelButton.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent event) {
                     task.cancel(true);
                 }
@@ -579,7 +593,7 @@ public class TckDialog {
 
             getRootPane().setDefaultButton(cancelButton);
 
-            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+            setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
             pack();
             setLocationRelativeTo(null);
             setVisible(true);
@@ -606,6 +620,7 @@ public class TckDialog {
             groupsProgressBar.setValue(0);
         }
 
+        @Override
         public void startGroup(CmisTestGroup group) {
             groupsProgressBar.setString(group.getName());
 
@@ -615,15 +630,18 @@ public class TckDialog {
             testsProgressBar.setValue(0);
         }
 
+        @Override
         public void endGroup(CmisTestGroup group) {
             groupsProgressBar.setString("");
             groupsProgressBar.setValue(groupsProgressBar.getValue() + 1);
         }
 
+        @Override
         public void startTest(CmisTest test) {
             testsProgressBar.setString(test.getName());
         }
 
+        @Override
         public void endTest(CmisTest test) {
             testsProgressBar.setString("");
             testsProgressBar.setValue(testsProgressBar.getValue() + 1);
@@ -673,6 +691,7 @@ public class TckDialog {
             statusLabel.setText(sb.toString());
         }
 
+        @Override
         public void message(String msg) {
         }
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java Thu Aug 13 12:05:59 2015
@@ -247,6 +247,7 @@ public class TypeSplitPane extends JSpli
             checkButton = addComponent("", new JButton("Check specification compliance"));
 
             checkButton.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent e) {
                     try {
                         setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
@@ -311,16 +312,19 @@ public class TypeSplitPane extends JSpli
             popup.add(menuItem);
 
             menuItem.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent e) {
                     ClientHelper.copyTableToClipboard(PropertyDefinitionTable.this);
                 }
             });
 
             addMouseListener(new MouseAdapter() {
+                @Override
                 public void mousePressed(MouseEvent e) {
                     maybeShowPopup(e);
                 }
 
+                @Override
                 public void mouseReleased(MouseEvent e) {
                     maybeShowPopup(e);
                 }
@@ -345,6 +349,7 @@ public class TypeSplitPane extends JSpli
                 }
 
                 Collections.sort(propertyDefintions, new Comparator<PropertyDefinition<?>>() {
+                    @Override
                     public int compare(PropertyDefinition<?> pd1, PropertyDefinition<?> pd2) {
                         return pd1.getId().compareTo(pd2.getId());
                     }
@@ -374,14 +379,17 @@ public class TypeSplitPane extends JSpli
                 this.table = table;
             }
 
+            @Override
             public String getColumnName(int columnIndex) {
                 return COLUMN_NAMES[columnIndex];
             }
 
+            @Override
             public int getColumnCount() {
                 return COLUMN_NAMES.length;
             }
 
+            @Override
             public int getRowCount() {
                 if (table.getPropertyDefinitions() == null) {
                     return 0;
@@ -390,6 +398,7 @@ public class TypeSplitPane extends JSpli
                 return table.getPropertyDefinitions().size();
             }
 
+            @Override
             public Object getValueAt(int rowIndex, int columnIndex) {
                 PropertyDefinition<?> propDef = table.getPropertyDefinitions().get(rowIndex);
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java Thu Aug 13 12:05:59 2015
@@ -47,6 +47,8 @@ import javax.swing.JScrollPane;
 import javax.swing.JSplitPane;
 import javax.swing.JToolBar;
 import javax.swing.JTree;
+import javax.swing.SwingConstants;
+import javax.swing.WindowConstants;
 import javax.swing.event.TreeSelectionEvent;
 import javax.swing.event.TreeSelectionListener;
 import javax.swing.filechooser.FileFilter;
@@ -114,7 +116,7 @@ public class TypesFrame extends JFrame {
         setMinimumSize(new Dimension(200, 60));
         setLayout(new BorderLayout());
 
-        toolBar = new JToolBar("CMIS Types Toolbar", JToolBar.HORIZONTAL);
+        toolBar = new JToolBar("CMIS Types Toolbar", SwingConstants.HORIZONTAL);
 
         toolbarButton = new JButton[5];
 
@@ -376,6 +378,7 @@ public class TypesFrame extends JFrame {
         typesTree.setCellRenderer(new TreeCellRenderer());
 
         typesTree.addTreeSelectionListener(new TreeSelectionListener() {
+            @Override
             public void valueChanged(TreeSelectionEvent e) {
                 DefaultMutableTreeNode node = (DefaultMutableTreeNode) ((JTree) e.getSource())
                         .getLastSelectedPathComponent();
@@ -406,7 +409,7 @@ public class TypesFrame extends JFrame {
 
         ClientHelper.installEscapeBinding(this, getRootPane(), true);
 
-        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
         pack();
 
         setLocationRelativeTo(null);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/Workbench.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/Workbench.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/Workbench.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/Workbench.java Thu Aug 13 12:05:59 2015
@@ -43,6 +43,7 @@ public class Workbench {
         // set up Swing
         try {
             SwingUtilities.invokeAndWait(new Runnable() {
+                @Override
                 public void run() {
                     try {
                         boolean nimbus = false;
@@ -77,6 +78,7 @@ public class Workbench {
 
         // show client frame
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 new ClientFrame();
             }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/WorkbenchScale.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/WorkbenchScale.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/WorkbenchScale.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/WorkbenchScale.java Thu Aug 13 12:05:59 2015
@@ -60,7 +60,7 @@ public class WorkbenchScale {
     }
 
     public static float getScaleFactor() {
-        return (scaleFactor == null ? 1.0f : (float) scaleFactor);
+        return scaleFactor == null ? 1.0f : (float) scaleFactor;
     }
 
     public static int scaleInt(int x) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/checks/SwingReport.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/checks/SwingReport.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/checks/SwingReport.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/checks/SwingReport.java Thu Aug 13 12:05:59 2015
@@ -36,13 +36,13 @@ import javax.swing.Icon;
 import javax.swing.JButton;
 import javax.swing.JComboBox;
 import javax.swing.JDialog;
-import javax.swing.JFrame;
 import javax.swing.JLabel;
 import javax.swing.JOptionPane;
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JTree;
 import javax.swing.SwingConstants;
+import javax.swing.WindowConstants;
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.DefaultTreeCellRenderer;
 
@@ -145,6 +145,7 @@ public class SwingReport extends Abstrac
             reportPanel.add(reportButton);
 
             reportButton.addActionListener(new ActionListener() {
+                @Override
                 public void actionPerformed(ActionEvent event) {
                     try {
                         // create report
@@ -192,7 +193,7 @@ public class SwingReport extends Abstrac
 
             ClientHelper.installEscapeBinding(this, getRootPane(), true);
 
-            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+            setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
             pack();
             setLocationRelativeTo(null);
             setVisible(true);
@@ -217,6 +218,7 @@ public class SwingReport extends Abstrac
             public ReportTreeCellRenderer() {
             }
 
+            @Override
             public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded,
                     boolean leaf, int row, boolean hasFocus) {
                 super.getTreeCellRendererComponent(tree, "", sel, expanded, leaf, row, hasFocus);
@@ -273,15 +275,18 @@ public class SwingReport extends Abstrac
             this.color = color;
         }
 
+        @Override
         public void paintIcon(Component c, Graphics g, int x, int y) {
             g.setColor(color);
             g.fillRect(0, 0, getIconWidth(), getIconHeight());
         }
 
+        @Override
         public int getIconWidth() {
             return WorkbenchScale.scaleInt(8);
         }
 
+        @Override
         public int getIconHeight() {
             return WorkbenchScale.scaleInt(18);
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java Thu Aug 13 12:05:59 2015
@@ -61,6 +61,7 @@ public class ACLTable extends AbstractDe
         }
     }
 
+    @Override
     public int getDetailRowCount() {
         if ((getObject().getAcl() == null) || (getObject().getAcl().getAces() == null)) {
             return 0;
@@ -69,6 +70,7 @@ public class ACLTable extends AbstractDe
         return getObject().getAcl().getAces().size();
     }
 
+    @Override
     public Object getDetailValueAt(int rowIndex, int columnIndex) {
         Ace ace = getObject().getAcl().getAces().get(rowIndex);
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java Thu Aug 13 12:05:59 2015
@@ -82,12 +82,14 @@ public abstract class AbstractDetailsTab
         popup.add(menuItem);
 
         menuItem.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 ClientHelper.copyTableToClipboard(AbstractDetailsTable.this);
             }
         });
 
         addMouseListener(new MouseAdapter() {
+            @Override
             public void mouseClicked(MouseEvent e) {
                 if (SwingUtilities.isLeftMouseButton(e)) {
                     int row = rowAtPoint(e.getPoint());
@@ -102,10 +104,12 @@ public abstract class AbstractDetailsTab
                 }
             }
 
+            @Override
             public void mousePressed(MouseEvent e) {
                 maybeShowPopup(e);
             }
 
+            @Override
             public void mouseReleased(MouseEvent e) {
                 maybeShowPopup(e);
             }
@@ -118,6 +122,7 @@ public abstract class AbstractDetailsTab
         });
 
         addMouseMotionListener(new MouseMotionListener() {
+            @Override
             public void mouseMoved(MouseEvent e) {
                 int row = rowAtPoint(e.getPoint());
                 int column = columnAtPoint(e.getPoint());
@@ -129,13 +134,16 @@ public abstract class AbstractDetailsTab
 
             }
 
+            @Override
             public void mouseDragged(MouseEvent e) {
             }
         });
     }
 
+    @Override
     public void objectLoaded(ClientModelEvent event) {
         SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 ((DetailsTableModel) getModel()).fireTableDataChanged();
             }
@@ -182,14 +190,17 @@ public abstract class AbstractDetailsTab
 
         private static final long serialVersionUID = 1L;
 
+        @Override
         public String getColumnName(int columnIndex) {
             return table.getColumnNames()[columnIndex];
         }
 
+        @Override
         public int getColumnCount() {
             return table.getColumnNames().length;
         }
 
+        @Override
         public int getRowCount() {
             if (table.getObject() == null) {
                 return 0;
@@ -198,6 +209,7 @@ public abstract class AbstractDetailsTab
             return table.getDetailRowCount();
         }
 
+        @Override
         public Object getValueAt(int rowIndex, int columnIndex) {
             if (table.getObject() == null) {
                 return null;
@@ -206,6 +218,7 @@ public abstract class AbstractDetailsTab
             return table.getDetailValueAt(rowIndex, columnIndex);
         }
 
+        @Override
         public Class<?> getColumnClass(int columnIndex) {
             return table.getDetailColumClass(columnIndex);
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ActionsPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ActionsPanel.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ActionsPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ActionsPanel.java Thu Aug 13 12:05:59 2015
@@ -77,8 +77,10 @@ public class ActionsPanel extends JPanel
         createGUI();
     }
 
+    @Override
     public void objectLoaded(ClientModelEvent event) {
         SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 CmisObject object = model.getCurrentObject();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/DetailsTabs.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/DetailsTabs.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/DetailsTabs.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/DetailsTabs.java Thu Aug 13 12:05:59 2015
@@ -20,6 +20,7 @@ package org.apache.chemistry.opencmis.wo
 
 import javax.swing.JScrollPane;
 import javax.swing.JTabbedPane;
+import javax.swing.SwingConstants;
 
 import org.apache.chemistry.opencmis.workbench.model.ClientModel;
 
@@ -41,7 +42,7 @@ public class DetailsTabs extends JTabbed
     private ExtensionsPanel extensionsPanel;
 
     public DetailsTabs(ClientModel model) {
-        super(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
+        super(SwingConstants.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
 
         this.model = model;
         createGUI();

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ExtensionsPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ExtensionsPanel.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ExtensionsPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ExtensionsPanel.java Thu Aug 13 12:05:59 2015
@@ -62,6 +62,7 @@ public class ExtensionsPanel extends JPa
     @Override
     public void objectLoaded(ClientModelEvent event) {
         SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 CmisObject object = model.getCurrentObject();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ObjectPanel.java Thu Aug 13 12:05:59 2015
@@ -108,8 +108,10 @@ public class ObjectPanel extends InfoPan
         createGUI();
     }
 
+    @Override
     public void objectLoaded(ClientModelEvent event) {
         SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 CmisObject object = getClientModel().getCurrentObject();
 
@@ -294,6 +296,7 @@ public class ObjectPanel extends InfoPan
         scriptPanel.add(scriptOutput, BorderLayout.CENTER);
 
         refreshButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 try {
                     setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
@@ -307,6 +310,7 @@ public class ObjectPanel extends InfoPan
         });
 
         checkButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 try {
                     setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
@@ -332,6 +336,7 @@ public class ObjectPanel extends InfoPan
         });
 
         consoleButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 try {
                     setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
@@ -347,6 +352,7 @@ public class ObjectPanel extends InfoPan
         });
 
         scriptOpenButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 try {
                     setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
@@ -371,6 +377,7 @@ public class ObjectPanel extends InfoPan
         });
 
         scriptRunButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent e) {
                 try {
                     setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
@@ -453,6 +460,7 @@ public class ObjectPanel extends InfoPan
         public void write(final char[] cbuf, final int off, final int len) throws IOException {
             final String s = new String(cbuf, off, len);
             SwingUtilities.invokeLater(new Runnable() {
+                @Override
                 public void run() {
                     textArea.append(s);
                 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PolicyTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PolicyTable.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PolicyTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PolicyTable.java Thu Aug 13 12:05:59 2015
@@ -52,6 +52,7 @@ public class PolicyTable extends Abstrac
         }
     }
 
+    @Override
     public int getDetailRowCount() {
         if (getObject().getPolicies() == null) {
             return 0;
@@ -60,6 +61,7 @@ public class PolicyTable extends Abstrac
         return getObject().getPolicies().size();
     }
 
+    @Override
     public Object getDetailValueAt(int rowIndex, int columnIndex) {
         Policy policy = getObject().getPolicies().get(rowIndex);
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java Thu Aug 13 12:05:59 2015
@@ -50,10 +50,12 @@ public class PropertyTable extends Abstr
         }
     }
 
+    @Override
     public int getDetailRowCount() {
         return getObject().getProperties().size();
     }
 
+    @Override
     public Object getDetailValueAt(int rowIndex, int columnIndex) {
         CmisObject obj = getObject();
         Property<?> property = obj.getProperties().get(rowIndex);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/TypesPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/TypesPanel.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/TypesPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/TypesPanel.java Thu Aug 13 12:05:59 2015
@@ -38,6 +38,7 @@ public class TypesPanel extends TypeSpli
     @Override
     public void objectLoaded(ClientModelEvent event) {
         SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 CmisObject object = getClientModel().getCurrentObject();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java Thu Aug 13 12:05:59 2015
@@ -48,9 +48,9 @@ public abstract class AbstractWorkbenchI
 
     public AbstractWorkbenchIcon(boolean enabled) {
         this.enabled = enabled;
-        this.width = WorkbenchScale.isScaling() ? (int) ((float) getOrginalWidth() * WorkbenchScale.getScaleFactor())
+        this.width = WorkbenchScale.isScaling() ? (int) (getOrginalWidth() * WorkbenchScale.getScaleFactor())
                 : getOrginalWidth();
-        this.height = WorkbenchScale.isScaling() ? (int) ((float) getOrginalHeight() * WorkbenchScale.getScaleFactor())
+        this.height = WorkbenchScale.isScaling() ? (int) (getOrginalHeight() * WorkbenchScale.getScaleFactor())
                 : getOrginalHeight();
     }
 
@@ -60,8 +60,8 @@ public abstract class AbstractWorkbenchI
 
     public AbstractWorkbenchIcon(int width, int height, boolean enabled) {
         this.enabled = enabled;
-        this.width = WorkbenchScale.isScaling() ? (int) ((float) width * WorkbenchScale.getScaleFactor()) : width;
-        this.height = WorkbenchScale.isScaling() ? (int) ((float) height * WorkbenchScale.getScaleFactor()) : height;
+        this.width = WorkbenchScale.isScaling() ? (int) (width * WorkbenchScale.getScaleFactor()) : width;
+        this.height = WorkbenchScale.isScaling() ? (int) (height * WorkbenchScale.getScaleFactor()) : height;
     }
 
     public void setEnabled(boolean enabled) {
@@ -91,7 +91,7 @@ public abstract class AbstractWorkbenchI
 
         if (scaleP != 100) {
             g2d.scale(1d / scaleD, 1d / scaleD);
-            g2d.drawImage(image, (int) ((double) x * scaleD), (int) ((double) y * scaleD), c);
+            g2d.drawImage(image, (int) (x * scaleD), (int) (y * scaleD), c);
         } else {
             g2d.drawImage(image, x, y, c);
         }
@@ -147,8 +147,8 @@ public abstract class AbstractWorkbenchI
         BufferedImage img = new BufferedImage((int) Math.round(getIconWidth() * factor),
                 (int) Math.round(getIconHeight() * factor), BufferedImage.TYPE_INT_ARGB);
 
-        double coef = Math.min((double) (getIconWidth() * factor) / (double) getOrginalWidth(),
-                (double) (getIconHeight() * factor) / (double) getOrginalHeight());
+        double coef = Math.min(getIconWidth() * factor / getOrginalWidth(),
+                getIconHeight() * factor / getOrginalHeight());
 
         Graphics2D g2d = img.createGraphics();
         g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AddIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AddIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AddIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AddIcon.java Thu Aug 13 12:05:59 2015
@@ -41,6 +41,7 @@ public class AddIcon extends AbstractWor
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ChangeLogIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ChangeLogIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ChangeLogIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ChangeLogIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class ChangeLogIcon extends Abstr
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CheckedOutIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CheckedOutIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CheckedOutIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CheckedOutIcon.java Thu Aug 13 12:05:59 2015
@@ -30,6 +30,7 @@ public class CheckedOutIcon extends Docu
         super(width, height);
     }
 
+    @Override
     protected Color getColor() {
         return new Color(0x8c5c32);
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CmisLogoIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CmisLogoIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CmisLogoIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CmisLogoIcon.java Thu Aug 13 12:05:59 2015
@@ -43,6 +43,7 @@ public class CmisLogoIcon extends Abstra
         return 1334;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = null;
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConnectIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConnectIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConnectIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConnectIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class ConnectIcon extends Abstrac
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConsoleIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConsoleIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConsoleIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ConsoleIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class ConsoleIcon extends Abstrac
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CopyIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CopyIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CopyIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CopyIcon.java Thu Aug 13 12:05:59 2015
@@ -41,6 +41,7 @@ public class CopyIcon extends AbstractWo
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateObjectIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateObjectIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateObjectIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateObjectIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class CreateObjectIcon extends Ab
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateTypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateTypeIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateTypeIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/CreateTypeIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class CreateTypeIcon extends Abst
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DeleteTypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DeleteTypeIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DeleteTypeIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DeleteTypeIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class DeleteTypeIcon extends Abst
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DocumentIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DocumentIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DocumentIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DocumentIcon.java Thu Aug 13 12:05:59 2015
@@ -47,6 +47,7 @@ public class DocumentIcon extends Abstra
         return new Color(0x73a4d1);
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DownIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DownIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DownIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/DownIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class DownIcon extends AbstractWo
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/FolderIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/FolderIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/FolderIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/FolderIcon.java Thu Aug 13 12:05:59 2015
@@ -42,6 +42,7 @@ public class FolderIcon extends Abstract
         return 64;
     }
 
+    @Override
     protected Color getColor() {
         return new Color(0x89328c);
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/InfoIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/InfoIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/InfoIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/InfoIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class InfoIcon extends AbstractWo
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ItemIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ItemIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ItemIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ItemIcon.java Thu Aug 13 12:05:59 2015
@@ -42,10 +42,12 @@ public class ItemIcon extends AbstractWo
         return 64;
     }
 
+    @Override
     protected Color getColor() {
         return new Color(0x73a4d1);
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/LogIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/LogIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/LogIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/LogIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class LogIcon extends AbstractWor
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/NoIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/NoIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/NoIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/NoIcon.java Thu Aug 13 12:05:59 2015
@@ -42,6 +42,7 @@ public class NoIcon extends AbstractWork
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PolicyIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PolicyIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PolicyIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PolicyIcon.java Thu Aug 13 12:05:59 2015
@@ -42,10 +42,12 @@ public class PolicyIcon extends Abstract
         return 64;
     }
 
+    @Override
     protected Color getColor() {
         return new Color(0x73a4d1);
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PwcIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PwcIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PwcIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/PwcIcon.java Thu Aug 13 12:05:59 2015
@@ -30,6 +30,7 @@ public class PwcIcon extends DocumentIco
         super(width, height);
     }
 
+    @Override
     protected Color getColor() {
         return new Color(0x358c32);
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/QueryIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/QueryIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/QueryIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/QueryIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class QueryIcon extends AbstractW
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RelationshipIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RelationshipIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RelationshipIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RelationshipIcon.java Thu Aug 13 12:05:59 2015
@@ -42,10 +42,12 @@ public class RelationshipIcon extends Ab
         return 64;
     }
 
+    @Override
     protected Color getColor() {
         return new Color(0x73a4d1);
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ReloadIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ReloadIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ReloadIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/ReloadIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class ReloadIcon extends Abstract
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RemoveIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RemoveIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RemoveIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RemoveIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class RemoveIcon extends Abstract
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RepositoryInfoIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RepositoryInfoIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RepositoryInfoIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/RepositoryInfoIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class RepositoryInfoIcon extends
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class SaveTypeIcon extends Abstra
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java Thu Aug 13 12:05:59 2015
@@ -47,6 +47,7 @@ public class SecondaryIcon extends Abstr
         return new Color(0x73a4d1);
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class TckIcon extends AbstractWor
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java Thu Aug 13 12:05:59 2015
@@ -47,6 +47,7 @@ public class TypeIcon extends AbstractWo
         return new Color(0x73a4d1);
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class TypesIcon extends AbstractW
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class UpIcon extends AbstractWork
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java Thu Aug 13 12:05:59 2015
@@ -45,6 +45,7 @@ public class UpdateTypeIcon extends Abst
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java Thu Aug 13 12:05:59 2015
@@ -42,6 +42,7 @@ public class YesIcon extends AbstractWor
         return 64;
     }
 
+    @Override
     protected void paint(Graphics2D g) {
         GeneralPath shape = new GeneralPath();
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java Thu Aug 13 12:05:59 2015
@@ -438,6 +438,7 @@ public class ClientModel {
         }
 
         Collections.sort(result, new Comparator<ObjectType>() {
+            @Override
             public int compare(ObjectType ot1, ObjectType ot2) {
                 return ot1.getDisplayName().compareTo(ot2.getDisplayName());
             }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientOperationContext.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientOperationContext.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientOperationContext.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientOperationContext.java Thu Aug 13 12:05:59 2015
@@ -55,7 +55,7 @@ public final class ClientOperationContex
     }
 
     private boolean parseBoolean(String s, boolean defaultValue) {
-        return (s == null ? defaultValue : Boolean.parseBoolean(s));
+        return s == null ? defaultValue : Boolean.parseBoolean(s);
     }
 
     private IncludeRelationships parseIncludeRelationships(String s, IncludeRelationships defaultValue) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java Thu Aug 13 12:05:59 2015
@@ -378,13 +378,16 @@ public class ClientSession {
 
     private void acceptSelfSignedCertificates() {
         TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {
+            @Override
             public X509Certificate[] getAcceptedIssuers() {
                 return new X509Certificate[0];
             }
 
+            @Override
             public void checkClientTrusted(X509Certificate[] certs, String authType) {
             }
 
+            @Override
             public void checkServerTrusted(X509Certificate[] certs, String authType) {
             }
         } };

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CreateDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CreateDialog.java?rev=1695691&r1=1695690&r2=1695691&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CreateDialog.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CreateDialog.java Thu Aug 13 12:05:59 2015
@@ -30,10 +30,10 @@ import javax.swing.BorderFactory;
 import javax.swing.JCheckBox;
 import javax.swing.JComponent;
 import javax.swing.JDialog;
-import javax.swing.JFrame;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
 import javax.swing.JTextField;
+import javax.swing.WindowConstants;
 
 import org.apache.chemistry.opencmis.client.api.ObjectType;
 import org.apache.chemistry.opencmis.commons.PropertyIds;
@@ -114,7 +114,7 @@ public abstract class CreateDialog exten
 
         ClientHelper.installEscapeBinding(this, getRootPane(), true);
 
-        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
         pack();
         setLocationRelativeTo(null);
         setVisible(true);
@@ -128,6 +128,7 @@ public abstract class CreateDialog exten
         int i = 0;
         for (final ObjectType type : types) {
             result[i] = new ObjectTypeItem() {
+                @Override
                 public ObjectType getObjectType() {
                     return type;
                 }



Mime
View raw message