Author: dgolovin
Date: 2007-12-19 19:11:55 -0500 (Wed, 19 Dec 2007)
New Revision: 5384
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/JSFEditor.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/dnd/JSFTemplateTransferDropTargetListener.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/model/impl/Link.java
Log:
Cleanup the code:
1. new Long(value) replaced for Long.valueOf(value)
2. new String() removed
3. new Boolean(true/false) replaced to Boolean.TRUE/FALSE
4. Unused packages were removed from seam.plugins
5. Throwing of NullPointerException replaced to IllegalArgument Exception
6. catch Exception replaced to particular Exception types in several places
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/JSFEditor.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/JSFEditor.java 2007-12-20
00:11:50 UTC (rev 5383)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/JSFEditor.java 2007-12-20
00:11:55 UTC (rev 5384)
@@ -483,9 +483,9 @@
.getLayer(ScalableFreeformRootEditPart.CONNECTION_LAYER))
.setConnectionRouter(new JSFConnectionRouter());
getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_VISIBLE,
- new Boolean(true));
+ Boolean.TRUE);
getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_ENABLED,
- new Boolean(true));
+ Boolean.TRUE);
getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_SPACING,
new Dimension(8, 8));
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/dnd/JSFTemplateTransferDropTargetListener.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/dnd/JSFTemplateTransferDropTargetListener.java 2007-12-20
00:11:50 UTC (rev 5383)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/dnd/JSFTemplateTransferDropTargetListener.java 2007-12-20
00:11:55 UTC (rev 5384)
@@ -26,7 +26,7 @@
class JSFTemplateFactory implements CreationFactory {
public Object getNewObject() {
- return new String("view");
+ return "view";
}
public Object getObjectType() {
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/model/impl/Link.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/model/impl/Link.java 2007-12-20
00:11:50 UTC (rev 5383)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/model/impl/Link.java 2007-12-20
00:11:55 UTC (rev 5384)
@@ -85,7 +85,7 @@
}
public void savePointList(PointList list) {
- String value = new String("");
+ String value = "";
for (int i = 0; i < list.size(); i++) {
if (i != 0)
value += ",";
Show replies by date