Author: DartPeng
Date: 2009-05-19 03:26:26 -0400 (Tue, 19 May 2009)
New Revision: 15339
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SearchComposite.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java
Log:
JBIDE-4232
1.remove useless plugin dependence.
2.change the text SWT type when the tool runs on Linux.
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-05-19
05:47:39 UTC (rev 15338)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-05-19
07:26:26 UTC (rev 15339)
@@ -19,8 +19,7 @@
org.eclipse.emf.edit.ui,
org.eclipse.jdt.core,
org.eclipse.jdt.ui,
- org.eclipse.wst.validation,
- org.eclipse.wst.validation.ui;bundle-version="1.2.2"
+ org.eclipse.wst.validation
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SearchComposite.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SearchComposite.java 2009-05-19
05:47:39 UTC (rev 15338)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SearchComposite.java 2009-05-19
07:26:26 UTC (rev 15339)
@@ -41,8 +41,12 @@
gl.makeColumnsEqualWidth = false;
gl.marginHeight = 0;
this.setLayout(gl);
+ int textStyle = SWT.NONE;
+ if(SmooksUIUtils.isLinuxOS()){
+ textStyle = SWT.BORDER;
+ }
if (toolkit != null) {
- text = toolkit.createText(this, "");
+ text = toolkit.createText(this, "" , textStyle);
} else {
text = new Text(this, SWT.BORDER);
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-05-19
05:47:39 UTC (rev 15338)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-05-19
07:26:26 UTC (rev 15339)
@@ -331,6 +331,14 @@
return createStringFieldEditor(label, parent, editingdomain, toolkit,
itemPropertyDescriptor, model, false,
true, true, 0, listener, valueType, action);
}
+
+ public static boolean isLinuxOS(){
+ Object osName = System.getProperties().get("os.name");
+ if(osName != null && "linux".equalsIgnoreCase(osName.toString())){
+ return true;
+ }
+ return false;
+ }
public static AttributeFieldEditPart createStringFieldEditor(String label, final
Composite parent,
EditingDomain editingdomain, FormToolkit toolkit, final IItemPropertyDescriptor
itemPropertyDescriptor,
@@ -430,7 +438,11 @@
}
gd = new GridData(GridData.FILL_HORIZONTAL);
+
int textType = SWT.FLAT;
+ if(isLinuxOS()){
+ textType = SWT.BORDER;
+ }
if (multiText) {
textType = SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL;
}
Show replies by date