JBoss Tools SVN: r9681 - workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 03:37:23 -0400 (Wed, 13 Aug 2008)
New Revision: 9681
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java
Log:
disabel some UI
Modified: workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java 2008-08-13 07:14:41 UTC (rev 9680)
+++ workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java 2008-08-13 07:37:23 UTC (rev 9681)
@@ -143,58 +143,58 @@
});
- classBrowseButton = new Button(classTextContainer, SWT.BORDER);
+ classBrowseButton = new Button(classTextContainer, SWT.NONE);
classBrowseButton.addSelectionListener(this);
classBrowseButton.setText("Browse...");
}
- final Button atomicLoadButton = new Button(com, SWT.RADIO);
+// final Button atomicLoadButton = new Button(com, SWT.RADIO);
+//
+// atomicLoadButton.setText("Atomicly load");
+// atomicLoadButton.setSelection(true);
+//
+// Button loadButton = new Button(com, SWT.RADIO);
+// loadButton.setText("Load by hand");
+//
+// final Button loadClassButton = new Button(com, SWT.NONE);
+// loadClassButton.setText("Load Class");
+// loadClassButton.addSelectionListener(new SelectionAdapter() {
+//
+// /*
+// * (non-Javadoc)
+// *
+// * @see
+// * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse
+// * .swt.events.SelectionEvent)
+// */
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// super.widgetSelected(e);
+// if (!loadAtomic)
+// loadModelPropertiesAndRefreshViewer(runnableContext);
+// }
+// });
+// loadClassButton.setEnabled(false);
+//
+// SelectionAdapter radioButtonSelectionAdp = new SelectionAdapter() {
+// /*
+// * (non-Javadoc)
+// *
+// * @see
+// * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse
+// * .swt.events.SelectionEvent)
+// */
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// super.widgetSelected(e);
+// loadAtomic = atomicLoadButton.getSelection();
+// loadClassButton.setEnabled(!loadAtomic);
+// }
+//
+// };
+// atomicLoadButton.addSelectionListener(radioButtonSelectionAdp);
+// loadButton.addSelectionListener(radioButtonSelectionAdp);
- atomicLoadButton.setText("Atomicly load");
- atomicLoadButton.setSelection(true);
-
- Button loadButton = new Button(com, SWT.RADIO);
- loadButton.setText("Load by hand");
-
- final Button loadClassButton = new Button(com, SWT.BORDER);
- loadClassButton.setText("Load Class");
- loadClassButton.addSelectionListener(new SelectionAdapter() {
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse
- * .swt.events.SelectionEvent)
- */
- @Override
- public void widgetSelected(SelectionEvent e) {
- super.widgetSelected(e);
- if (!loadAtomic)
- loadModelPropertiesAndRefreshViewer(runnableContext);
- }
- });
- loadClassButton.setEnabled(false);
-
- SelectionAdapter radioButtonSelectionAdp = new SelectionAdapter() {
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse
- * .swt.events.SelectionEvent)
- */
- @Override
- public void widgetSelected(SelectionEvent e) {
- super.widgetSelected(e);
- loadAtomic = atomicLoadButton.getSelection();
- loadClassButton.setEnabled(!loadAtomic);
- }
-
- };
- atomicLoadButton.addSelectionListener(radioButtonSelectionAdp);
- loadButton.addSelectionListener(radioButtonSelectionAdp);
-
Label spliter = new Label(com, SWT.SEPARATOR | SWT.HORIZONTAL);
spliter.setVisible(false);
treeViewer = new CheckboxTreeViewer(com, SWT.BORDER);
17 years, 4 months
JBoss Tools SVN: r9680 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-08-13 03:14:41 -0400 (Wed, 13 Aug 2008)
New Revision: 9680
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2030, code adjustment (catch block was removed).
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-08-13 06:54:29 UTC (rev 9679)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-08-13 07:14:41 UTC (rev 9680)
@@ -676,8 +676,6 @@
sourceSelectionChanged();
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -698,8 +696,6 @@
// if (event.getSource() instanceof StyledText) {
sourceSelectionChanged();
// }
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -718,8 +714,6 @@
if (event.getSource() instanceof StyledText) {
sourceSelectionChanged();
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -842,8 +836,6 @@
}
try {
sourceSelectionChanged(showCaret);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -888,8 +880,6 @@
// visualBuilder.rebuildDom(sourceDocument);
// pageContext.fireTaglibsChanged();
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -905,8 +895,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -926,8 +914,6 @@
sourceBuilder.addNode(targetNode);
visualBuilder.resetPseudoElement(targetNode);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -948,8 +934,6 @@
sourceBuilder.removeNode(targetNode);
visualBuilder.resetPseudoElement(targetNode);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -964,8 +948,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -980,8 +962,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -996,8 +976,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1015,8 +993,6 @@
nsIDOMNode targetNode = VisualDomUtil.getTargetNode(mutationEvent);
sourceBuilder.setText(targetNode);
visualBuilder.resetPseudoElement(targetNode);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1051,8 +1027,6 @@
}
//enables cursor on selection event
visualSelectionController.setCaretEnabled(true);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1121,8 +1095,6 @@
selectionManager.setSelection(mouseEvent);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1143,8 +1115,6 @@
mouseEvent.stopPropagation();
mouseDownSelectionFlag = false;
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1175,8 +1145,6 @@
// selectionBuilder.setClickContentAreaSelection();
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1199,8 +1167,6 @@
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1221,8 +1187,6 @@
// }
visualBuilder.setMoveCursor(mouseEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1240,8 +1204,6 @@
}
try {
visualEditor.hideResizer();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1336,8 +1298,6 @@
*/
sourceSelectionChanged(true);
visualSelectionController.setCaretEnabled(true);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1357,8 +1317,6 @@
}
try {
visualEditor.hideResizer();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1895,8 +1853,6 @@
pageContext.refreshBundleValues();
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1918,8 +1874,6 @@
}
try {
pageContext.refreshBundleValues();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -2448,8 +2402,6 @@
event.stopPropagation();
event.preventDefault();
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -3046,8 +2998,6 @@
.println(">>>>>>>>>>>>>> selectionChanged " + event.getSource()); //$NON-NLS-1$
}
sourceSelectionChanged();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
17 years, 4 months
JBoss Tools SVN: r9679 - workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 02:54:29 -0400 (Wed, 13 Aug 2008)
New Revision: 9679
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
Log:
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-08-13 06:53:55 UTC (rev 9678)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-08-13 06:54:29 UTC (rev 9679)
@@ -7,6 +7,11 @@
import org.eclipse.swt.layout.GridLayout;
import org.jboss.tools.smooks.ui.ViewerInitorStore;
+/**
+ *
+ * @author Dart
+ *
+ */
public class UIUtils {
/** @deprecated */
public static final String EXTENTION_POINT_TRANSFORM_DATATYPE_WIZARD = "org.jboss.tools.smooks.ui.transformDataWizards";
17 years, 4 months
JBoss Tools SVN: r9678 - workspace/dart/plugins/org.jboss.tools.smooks.ui/schema.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 02:53:55 -0400 (Wed, 13 Aug 2008)
New Revision: 9678
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/viewerInitor.exsd
Log:
add a extension attribute
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/viewerInitor.exsd
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/viewerInitor.exsd 2008-08-13 06:37:20 UTC (rev 9677)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/viewerInitor.exsd 2008-08-13 06:53:55 UTC (rev 9678)
@@ -1,139 +1,146 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.jboss.tools.smooks.ui">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.jboss.tools.smooks.ui" id="viewerInitor" name="viewerInitor"/>
- </appInfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <complexType>
- <sequence>
- <element ref="viewerInitor" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="viewerInitor">
- <complexType>
- <attribute name="typeID" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="labelProvider" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.viewers.ILabelProvider"/>
- </appInfo>
- </annotation>
- </attribute>
- <attribute name="contentProvider" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.viewers.ITreeContentProvider"/>
- </appInfo>
- </annotation>
- </attribute>
- <attribute name="creationWizard" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute kind="java" basedOn=":org.jboss.tools.smooks.ui.IStrucutredDataWizard"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="examples"/>
- </appInfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="apiInfo"/>
- </appInfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="implementation"/>
- </appInfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.smooks.ui">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.jboss.tools.smooks.ui" id="viewerInitor" name="viewerInitor"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <complexType>
+ <sequence>
+ <element ref="viewerInitor" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="viewerInitor">
+ <complexType>
+ <attribute name="typeID" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="labelProvider" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.jface.viewers.ILabelProvider"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="contentProvider" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.jface.viewers.ITreeContentProvider"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="creationWizard" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.jboss.tools.smooks.ui.IStrucutredDataWizard"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="icon" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+</schema>
17 years, 4 months
JBoss Tools SVN: r9677 - workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 02:37:20 -0400 (Wed, 13 Aug 2008)
New Revision: 9677
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
Log:
fix a bug -- add new input to tree viewer , the graphics model can't be created at the same time
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-08-13 06:35:31 UTC (rev 9676)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-08-13 06:37:20 UTC (rev 9677)
@@ -281,7 +281,7 @@
* @param items
* @param modelClass
*/
- protected void createGraphModels(TreeItem[] items, Class modelClass) {
+ protected void createGraphModels(TreeItem[] items, Class<? extends Object> modelClass) {
for (int i = 0; i < items.length; i++) {
TreeItem item = (TreeItem) items[i];
AbstractStructuredDataModel model = null;
@@ -444,7 +444,7 @@
if (UIUtils.setTheProvidersForTreeViewer(viewer, cw
.getInputDataTypeID())) {
viewer.setInput(cw.getTreeViewerInputContents());
- // the viewer must be expanded , then the graphics model can cauculate the location correctly
+ // the viewer must be expanded , then the graphics model can calculate the location correctly
viewer.expandAll();
if(viewer == this.sourceViewer){
17 years, 4 months
JBoss Tools SVN: r9676 - workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 02:35:31 -0400 (Wed, 13 Aug 2008)
New Revision: 9676
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
Log:
fix a bug -- add new input to tree viewer , the graphics model can't be created at the same time
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-08-12 23:29:06 UTC (rev 9675)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-08-13 06:35:31 UTC (rev 9676)
@@ -10,9 +10,6 @@
******************************************************************************/
package org.jboss.tools.smooks.ui.editors;
-import java.util.Collection;
-import java.util.Iterator;
-
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.gef.DefaultEditDomain;
import org.eclipse.gef.GraphicalViewer;
@@ -49,7 +46,6 @@
import org.jboss.tools.smooks.ui.IStrucutredDataCreationWizard;
import org.jboss.tools.smooks.ui.IViewerInitor;
import org.jboss.tools.smooks.ui.StructuredDataCreationWizardDailog;
-import org.jboss.tools.smooks.ui.ViewerInitorStore;
import org.jboss.tools.smooks.ui.gef.editparts.SmooksEditPartFactory;
import org.jboss.tools.smooks.ui.gef.model.AbstractStructuredDataModel;
import org.jboss.tools.smooks.ui.gef.model.GraphRootModel;
@@ -59,6 +55,7 @@
import org.jboss.tools.smooks.ui.gef.model.TreeItemRelationModel;
import org.jboss.tools.smooks.ui.gef.tools.MappingPanelDropTargetListener;
import org.jboss.tools.smooks.ui.gef.tools.TargetTreeDropTargetListener;
+import org.jboss.tools.smooks.ui.gef.util.GraphicsConstants;
import org.jboss.tools.smooks.ui.wizards.TransformDataSelectionWizard;
import org.jboss.tools.smooks.utils.UIUtils;
@@ -145,7 +142,8 @@
initSourceTreeViewerProviders();
initSourceTreeViewer();
composite1.setLayoutData(gd);
- toolkit.paintBordersFor(composite1);
+ composite1.setBackground(GraphicsConstants.groupBorderColor);
+// toolkit.paintBordersFor(composite1);
}
{
Composite composite2 = toolkit
@@ -189,7 +187,7 @@
initTargetTreeViewerProvider();
initTargetTreeViewer();
targetViewer.expandAll();
- toolkit.paintBordersFor(composite3);
+ composite3.setBackground(GraphicsConstants.groupBorderColor);
}
{
@@ -446,7 +444,15 @@
if (UIUtils.setTheProvidersForTreeViewer(viewer, cw
.getInputDataTypeID())) {
viewer.setInput(cw.getTreeViewerInputContents());
+ // the viewer must be expanded , then the graphics model can cauculate the location correctly
viewer.expandAll();
+
+ if(viewer == this.sourceViewer){
+ this.createSourceGraphModels();
+ }
+ if(viewer == this.targetViewer){
+ this.createTargetGraphModels();
+ }
} else {
MessageDialog.openError(getSite().getShell(), "Error",
"a error occurs during filling Data into the viewer");
17 years, 4 months
JBoss Tools SVN: r9675 - trunk/vpe/tests/org.jboss.tools.vpe.test/templates.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-08-12 19:29:06 -0400 (Tue, 12 Aug 2008)
New Revision: 9675
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test1.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test2.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test3.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test4.xml
Log:
fix vpe templates parser test errors. comment moved to content of first xml node
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test1.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test1.xml 2008-08-12 23:22:20 UTC (rev 9674)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test1.xml 2008-08-12 23:29:06 UTC (rev 9675)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- there contains incorrect templates. Just for testing -->
<vpe:templates>
+ <!-- there contains incorrect templates. Just for testing -->
<vpe:template-taglib uri="http://xmlns.oracle.com/adf/faces/EA10/html" prefix="afh"/>
<vpe:template-taglib uri="http://xmlns.oracle.com/adf/faces/EA10" prefix="af"/>
<vpe:template-taglib uri="http://xmlns.oracle.com/adf/faces/EA11/html" prefix="afh"/>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test2.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test2.xml 2008-08-12 23:22:20 UTC (rev 9674)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test2.xml 2008-08-12 23:29:06 UTC (rev 9675)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- there contains incorrect templates. Just for testing -->
<vpe:templates>
+ <!-- there contains incorrect templates. Just for testing -->
<vpe:tag name="a" case-sensitive="no">
<vpe:template children="yes" modify="yes">
<vpe:copy attrs="id,style,class">
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test3.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test3.xml 2008-08-12 23:22:20 UTC (rev 9674)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test3.xml 2008-08-12 23:29:06 UTC (rev 9675)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- This class contains valid template expressions -->
<vpe:templates>
+ <!-- This class contains valid template expressions -->
<vpe:template-taglib uri="http://java.sun.com/jsf/html" prefix="h"/>
<vpe:template-taglib uri="http://java.sun.com/jsf/core" prefix="f"/>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test4.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test4.xml 2008-08-12 23:22:20 UTC (rev 9674)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/templates/test4.xml 2008-08-12 23:29:06 UTC (rev 9675)
@@ -1,6 +1,6 @@
-class="<?xml version="1.0" encoding="UTF-8"?>
-<!-- This class contains invalid template expressions -->
+<?xml version="1.0" encoding="UTF-8"?>
<vpe:templates>
+ <!-- This class contains invalid template expressions -->
<vpe:template-taglib uri="http://myfaces.apache.org/extensions"
prefix="x" />
17 years, 4 months
JBoss Tools SVN: r9674 - trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-08-12 19:22:20 -0400 (Tue, 12 Aug 2008)
New Revision: 9674
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/.project
Log:
wst walidator removed from project
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/.project 2008-08-12 22:02:39 UTC (rev 9673)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/.project 2008-08-12 23:22:20 UTC (rev 9674)
@@ -16,11 +16,6 @@
</arguments>
</buildCommand>
<buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
<name>org.jboss.tools.common.verification.verifybuilder</name>
<arguments>
</arguments>
17 years, 4 months
JBoss Tools SVN: r9673 - tags/jbosstools-3.0.0.Alpha1.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-08-12 18:02:39 -0400 (Tue, 12 Aug 2008)
New Revision: 9673
Added:
tags/jbosstools-3.0.0.Alpha1/seam/
Log:
creating new one
Copied: tags/jbosstools-3.0.0.Alpha1/seam (from rev 9672, trunk/seam)
17 years, 4 months
JBoss Tools SVN: r9672 - tags/jbosstools-3.0.0.Alpha1.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-08-12 18:02:24 -0400 (Tue, 12 Aug 2008)
New Revision: 9672
Removed:
tags/jbosstools-3.0.0.Alpha1/seam/
Log:
retagging seam component. deleting previous tag.
17 years, 4 months