Author: DartPeng
Date: 2009-05-21 06:29:12 -0400 (Thu, 21 May 2009)
New Revision: 15385
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java
Log:
JBIDE-4280
I replace the about icon.
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png 2009-05-21 08:54:20 UTC
(rev 15384)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png 2009-05-21 10:29:12 UTC
(rev 15385)
@@ -1,9 +0,0 @@
-�PNG
-
-
-IHDR
-a+d(^*ga%e"d`1^54W=
-k4m"n*@[Ck("g5*d<GU�s !j-5bDn1q&o+s/.j;3k6mS�vS�rT�oW�mW�uV�nY�6rET�p[�sX�sZ�|U�m\�wV�f`�rX�EoQvZ�wX�Hh�l`�t\�|Y�v[�oa�yZ�q`�s\�{[�s^�w\�q^�p_�Wi�tb�Nk�[h�rd��\�ud�Sl�]k�Zj��^�ya�zb�~b�wc�`�yd�Wm�cm�Yl�~b�bl�wh�Qp�Tn�}f�4�PSp�Vr�zh�fq�\r�Yr�_q�Ts�\q�cq�Su�V|`aq��h�L�YXt�^s�du��h�}n�kt�Zx�_x��q�ix�S�bg{�rz�g{��qr��v�n~��}�g�oz��}�����]�p���x���ɚ��l�{���������������u��������������}�����r�y��Ŗ����˩�ս�ͭ����ϐ����ċ����ڷ�˹�ݡ����Ӧ��Ūۉȕ�ġ���ß��ӡĪ���Ŷ�Ƹ���Ȼ�Ǿ�̿���գҭ���������ý������ݽ������������������������������̽������������������������������������������������������������������������������������������������������������������������������_��
-������hf��q��*C�2�����cn��j_�*@x<�\�1>�ǹy-�ڇ�
-"O!��
-��<��N+5��S�hࢠ����Q����hh�y�<I}�7�z૨��~�N<���5R�aD.�q�Vf��Lh��:�c��p�{0_��w2*k�5?% �e���Ao��P�*�w/Kŭ
\ No newline at end of file
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/jboss_about.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-05-21
08:54:20 UTC (rev 15384)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-05-21
10:29:12 UTC (rev 15385)
@@ -37,11 +37,8 @@
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-import org.eclipse.emf.ecore.xmi.impl.DefaultDOMHandlerImpl;
import org.eclipse.emf.edit.command.AddCommand;
import org.eclipse.emf.edit.command.DeleteCommand;
import org.eclipse.emf.edit.command.SetCommand;
@@ -87,7 +84,6 @@
import org.jboss.tools.smooks.model.smooks.provider.SmooksItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.xsl.provider.XslItemProviderAdapterFactory;
import org.jboss.tools.smooks10.model.smooks.util.SmooksResourceFactoryImpl;
-import org.w3c.dom.Node;
/**
*
@@ -119,7 +115,7 @@
private List<Diagnostic> diagnosticList;
- private Object smooksDOMModel;
+// private Object smooksDOMModel;
public SmooksMultiFormEditor() {
super();
@@ -427,17 +423,7 @@
validator = new SmooksModelValidator();
addValidateListener(this);
setDiagnosticList(validator.validate(smooksModel.eResource().getContents(),
editingDomain));
-// ((XMLResource)smooksResource).save(null, Collections.emptyMap(), new
DefaultDOMHandlerImpl(){
-//
-// /* (non-Javadoc)
-// * @see org.eclipse.emf.ecore.xmi.DOMHandler#recordValues(org.w3c.dom.Node,
org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature,
java.lang.Object)
-// */
-// public void recordValues(Node node, EObject container, EStructuralFeature feature,
Object value) {
-// super.recordValues(node, container, feature, value);
-// System.out.println(value + ":" + node);
-// }
-//
-// });
+
// if success to open editor , check if there isn't ext file and create
// a new one
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-21
08:54:20 UTC (rev 15384)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-05-21
10:29:12 UTC (rev 15385)
@@ -152,6 +152,10 @@
public static FieldMarkerWrapper createFieldEditorLabel(String labelText, Composite
parent,
FormToolkit formToolKit, IItemPropertyDescriptor itemPropertyDescriptor, Object model,
boolean isLink) {
FieldMarkerWrapper wrapper = new FieldMarkerWrapper();
+ String description = labelText;
+ if (itemPropertyDescriptor != null) {
+ description = itemPropertyDescriptor.getDescription(model);
+ }
String displayName = labelText;
if (itemPropertyDescriptor == null) {
} else {
@@ -181,6 +185,9 @@
Hyperlink link = formToolKit.createHyperlink(labelComposite, displayName + "
:", SWT.NONE);
labelControl = link;
}
+ if (description != null) {
+ labelControl.setToolTipText(description);
+ }
// gd = new GridData();
// labelControl.setLayoutData(gd);