Author: sdzmitrovich
Date: 2009-05-11 08:04:34 -0400 (Mon, 11 May 2009)
New Revision: 15152
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
Log:
fixed nullpointer
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java 2009-05-11
11:20:45 UTC (rev 15151)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java 2009-05-11
12:04:34 UTC (rev 15152)
@@ -84,7 +84,7 @@
selectFileText = new Text(container, SWT.SINGLE | SWT.BORDER);
selectFileText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
selectFileText.setFont(parent.getFont());
- selectFileText.addModifyListener(this);
+
Button selectFileButton = new Button(container, SWT.NONE);
selectFileButton.setText(WebUIMessages.FILE_SELECT_BUTTON);
@@ -146,6 +146,7 @@
selectFileText.setText(classDescription.getCssFile().getFullPath()
.toString());
+ selectFileText.addModifyListener(this);
setControl(container);
}