JBoss Tools SVN: r9690 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: template and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-08-13 09:15:08 -0400 (Wed, 13 Aug 2008)
New Revision: 9690
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/template/SelectionManager.java
Log:
code adjustment
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 13:14:40 UTC (rev 9689)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-08-13 13:15:08 UTC (rev 9690)
@@ -510,8 +510,17 @@
}
getChangeEvents().remove(eventBean);
}
+
+ // cause is to lock calls others events
+ if (switcher
+ .startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_SOURCE))
+ try {
+ sourceSelectionChanged();
- sourceSelectionChanged();
+ } finally {
+ switcher.stopActiveEditor();
+ }
+
monitor.done();
return Status.OK_STATUS;
@@ -726,7 +735,7 @@
}
public void sourceSelectionChanged() {
- sourceSelectionChanged(false);
+ sourceSelectionChanged(false);
}
public void sourceSelectionChanged(boolean showCaret) {
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2008-08-13 13:14:40 UTC (rev 9689)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2008-08-13 13:15:08 UTC (rev 9690)
@@ -381,13 +381,11 @@
nsISelection selection = selectionController.getSelection(
nsISelectionController.SELECTION_NORMAL);
- selectionController.getSelection(
- nsISelectionController.SELECTION_NORMAL).collapse(
+ selection.collapse(
visualNode, visualNodeFocusOffcet);
if (visualNodeAnchorOffcet != visualNodeFocusOffcet) {
- selectionController.getSelection(
- nsISelectionController.SELECTION_NORMAL).extend(
+ selection.extend(
visualNode, visualNodeAnchorOffcet);
}
17 years, 4 months
JBoss Tools SVN: r9689 - tags/jbosstools-3.0.0.Alpha1/jsf.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-13 09:14:40 -0400 (Wed, 13 Aug 2008)
New Revision: 9689
Added:
tags/jbosstools-3.0.0.Alpha1/jsf/doc/
Log:
made a copy
Copied: tags/jbosstools-3.0.0.Alpha1/jsf/doc (from rev 9688, trunk/jsf/docs)
17 years, 4 months
JBoss Tools SVN: r9688 - tags/jbosstools-3.0.0.Alpha1/jsf.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-13 09:12:33 -0400 (Wed, 13 Aug 2008)
New Revision: 9688
Removed:
tags/jbosstools-3.0.0.Alpha1/jsf/docs/
Log:
Removed doc folder
in order to retag to the current version
17 years, 4 months
JBoss Tools SVN: r9687 - tags/jbosstools-3.0.0.Alpha1/as.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-13 08:27:44 -0400 (Wed, 13 Aug 2008)
New Revision: 9687
Added:
tags/jbosstools-3.0.0.Alpha1/as/docs/
Log:
made a copy
Copied: tags/jbosstools-3.0.0.Alpha1/as/docs (from rev 9686, trunk/as/docs)
17 years, 4 months
JBoss Tools SVN: r9686 - tags/jbosstools-3.0.0.Alpha1/as.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-13 08:25:23 -0400 (Wed, 13 Aug 2008)
New Revision: 9686
Removed:
tags/jbosstools-3.0.0.Alpha1/as/docs/
Log:
Removed folder docs
retag to the current version will be made
17 years, 4 months
JBoss Tools SVN: r9685 - workspace/dart/plugins/org.jboss.tools.smooks.ui/schema.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 04:59:53 -0400 (Wed, 13 Aug 2008)
New Revision: 9685
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/viewerInitor.exsd
Log:
change the implements interface class name
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 08:46:28 UTC (rev 9684)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/viewerInitor.exsd 2008-08-13 08:59:53 UTC (rev 9685)
@@ -84,7 +84,7 @@
</documentation>
<appInfo>
- <meta.attribute kind="java" basedOn=":org.jboss.tools.smooks.ui.IStrucutredDataWizard"/>
+ <meta.attribute kind="java" basedOn=":org.jboss.tools.smooks.ui.IStrucutredDataCreationWizard"/>
</appInfo>
</annotation>
</attribute>
17 years, 4 months
JBoss Tools SVN: r9684 - in workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui: editors and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-13 04:46:28 -0400 (Wed, 13 Aug 2008)
New Revision: 9684
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java
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/wizards/TransformDataWizardSelectionPage.java
Log:
Nothing,change some code for looks feel
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java 2008-08-13 08:16:02 UTC (rev 9683)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java 2008-08-13 08:46:28 UTC (rev 9684)
@@ -139,9 +139,16 @@
if (typeID == null) {
continue;
}
-
+ String name = element.getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_NAME);
+
+ String iconPath = element.getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_ICON);
+
BaseViewerInitor initor = new BaseViewerInitor();
+ initor.setName(name);
+
+ initor.setWizardIconPath(iconPath);
+
initor.setTypeID(typeID);
createLabelProvider(initor, element);
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 08:16:02 UTC (rev 9683)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-08-13 08:46:28 UTC (rev 9684)
@@ -139,11 +139,12 @@
null, new Object());
}
});
- initSourceTreeViewerProviders();
- initSourceTreeViewer();
+ if (initSourceTreeViewerProviders()) {
+ initSourceTreeViewer();
+ }
composite1.setLayoutData(gd);
composite1.setBackground(GraphicsConstants.groupBorderColor);
-// toolkit.paintBordersFor(composite1);
+ // toolkit.paintBordersFor(composite1);
}
{
Composite composite2 = toolkit
@@ -184,8 +185,9 @@
null, new Object());
}
});
- initTargetTreeViewerProvider();
- initTargetTreeViewer();
+ if (initTargetTreeViewerProviders()) {
+ initTargetTreeViewer();
+ }
targetViewer.expandAll();
composite3.setBackground(GraphicsConstants.groupBorderColor);
}
@@ -245,15 +247,16 @@
protected void initTargetTreeViewer() {
// TODO Auto-generated method stub
-
+ targetViewer.expandAll();
}
- protected void initTargetTreeViewerProvider() {
- this.initTreeViewerProvider(targetViewer, targetDataTypeID);
+ protected boolean initTargetTreeViewerProviders() {
+ return this.initTreeViewerProvider(targetViewer, targetDataTypeID);
}
- protected void initTreeViewerProvider(TreeViewer viewer, String dataTypeID) {
- UIUtils.setTheProvidersForTreeViewer(viewer, dataTypeID);
+ protected boolean initTreeViewerProvider(TreeViewer viewer,
+ String dataTypeID) {
+ return UIUtils.setTheProvidersForTreeViewer(viewer, dataTypeID);
}
protected TreeViewer createSourceTreeViewer(Composite composite) {
@@ -271,8 +274,8 @@
sourceViewer.expandAll();
}
- protected void initSourceTreeViewerProviders() {
- this.initTreeViewerProvider(sourceViewer, sourceDataTypeID);
+ protected boolean initSourceTreeViewerProviders() {
+ return this.initTreeViewerProvider(sourceViewer, sourceDataTypeID);
}
/**
@@ -281,7 +284,8 @@
* @param items
* @param modelClass
*/
- protected void createGraphModels(TreeItem[] items, Class<? extends Object> 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,13 +448,14 @@
if (UIUtils.setTheProvidersForTreeViewer(viewer, cw
.getInputDataTypeID())) {
viewer.setInput(cw.getTreeViewerInputContents());
- // the viewer must be expanded , then the graphics model can calculate the location correctly
+ // the viewer must be expanded , then the graphics model can
+ // calculate the location correctly
viewer.expandAll();
-
- if(viewer == this.sourceViewer){
+
+ if (viewer == this.sourceViewer) {
this.createSourceGraphModels();
}
- if(viewer == this.targetViewer){
+ if (viewer == this.targetViewer) {
this.createTargetGraphModels();
}
} else {
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java 2008-08-13 08:16:02 UTC (rev 9683)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java 2008-08-13 08:46:28 UTC (rev 9684)
@@ -150,7 +150,7 @@
if (path != null) {
Image icon = (Image) map.get(path);
if (icon == null) {
-
+
}
}
}
17 years, 4 months
JBoss Tools SVN: r9683 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-08-13 04:16:02 -0400 (Wed, 13 Aug 2008)
New Revision: 9683
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2254
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java 2008-08-13 07:38:12 UTC (rev 9682)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java 2008-08-13 08:16:02 UTC (rev 9683)
@@ -122,7 +122,7 @@
if (icon != null)
g.drawImage(icon, start + getInsetX(), getInsetY());
- if(SeamPagesDiagramStructureHelper.instance.isUnconfirmedPage((XModelObject)page.getData())){
+ if(page != null && page.getData() != null && SeamPagesDiagramStructureHelper.instance.isUnconfirmedPage((XModelObject)page.getData())){
g.drawImage(errorIcon, start + getInsetX(), getInsetY()+8);
}
@@ -233,7 +233,7 @@
int width = r.width - 1;
int height = r.height - 1;
- if(page.getData() instanceof ReferenceObject && ((ReferenceObject)page.getData()).getReference() == null){
+ if(page != null && page.getData() != null && page.getData() instanceof ReferenceObject && ((ReferenceObject)page.getData()).getReference() == null){
graphics.setLineDash(new int[]{3,3});
graphics.setLineStyle(SWT.LINE_CUSTOM);
}
17 years, 4 months
JBoss Tools SVN: r9682 - 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:38:12 -0400 (Wed, 13 Aug 2008)
New Revision: 9682
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java
Log:
Modified: workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java 2008-08-13 07:37:23 UTC (rev 9681)
+++ workspace/dart/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java 2008-08-13 07:38:12 UTC (rev 9682)
@@ -10,14 +10,8 @@
******************************************************************************/
package org.jboss.tools.smooks.javabean.ui;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.internal.core.JavaProject;
import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
17 years, 4 months