JBoss Tools SVN: r17413 - in trunk/jsf/docs/userguide/en/images: web_projects and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-02 06:29:06 -0400 (Wed, 02 Sep 2009)
New Revision: 17413
Modified:
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_10.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_22.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_23.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_25.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_26.png
trunk/jsf/docs/userguide/en/images/web_projects/web_projects_13.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-720 -Screens of VPE were updated.</p>
</body></html>
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_10.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_22.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_23.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_25.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_26.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/web_projects/web_projects_13.png
===================================================================
(Binary files differ)
15 years, 3 months
JBoss Tools SVN: r17412 - trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-09-02 04:45:13 -0400 (Wed, 02 Sep 2009)
New Revision: 17412
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java
Log:
JBIDE-4633: commit the changes
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java 2009-09-02 08:45:13 UTC (rev 17412)
@@ -1,18 +1,32 @@
package org.eclipse.bpel.ui.editparts;
import org.eclipse.bpel.common.ui.tray.TrayCategoryEditPart;
-import org.eclipse.bpel.model.Scope;
import org.eclipse.bpel.ui.BPELEditor;
import org.eclipse.bpel.ui.editparts.policies.TrayContainerEditPolicy;
import org.eclipse.bpel.ui.util.ModelHelper;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.AccessibleEditPart;
import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.RootEditPart;
import org.eclipse.jface.viewers.StructuredSelection;
public abstract class BPELTrayCategoryEditPart extends TrayCategoryEditPart{
+ // added by Grid.Qian
+ // use the variable to hold the root of the editpart
+ // because when we delete a correlationSets from scope
+ // the editpart parent will be null
+ private RootEditPart holdRoot;
+
+ // added by Grid.Qian
+ // use the variable to hold the parent's of the model
+ // that will be a scope or a process
+ // because when we delete a correlationSets from scope
+ // the eContainer will be null
+ private EObject eObj;
+
@Override
protected void createEditPolicies() {
super.createEditPolicies();
@@ -40,13 +54,54 @@
selectEditPart(getModelChildren().get(0));
} else {
// if we are executing this method we are dealing with scoped variables
- Scope scope = (Scope)((EObject)getModel()).eContainer();
- BPELEditor editor = ModelHelper.getBPELEditor(scope);
- EditPart editPart = (EditPart)editor.getGraphicalViewer().getEditPartRegistry().get(scope);
+
+ // delete the line by Grid.Qian because the econtainer maybe null
+ // when the model is deleted from the scope
+ // Scope scope = (Scope)((EObject)getModel()).eContainer();
+ BPELEditor editor = ModelHelper.getBPELEditor(eObj);
+ EditPart editPart = (EditPart)editor.getGraphicalViewer().getEditPartRegistry().get(eObj);
if (editPart != null) {
getViewer().setSelection(new StructuredSelection(editPart));
}
}
}
+
+ /**
+ * Overwrite the method by Grid.Qian to get the viewer
+ * when the editpart's parent == null
+ */
+ public EditPartViewer getViewer() {
+ try {
+ return super.getViewer();
+ } catch (Exception e) {
+ return holdRoot.getViewer();
+ }
+ }
+
+ /**
+ * Overwrite the method by Grid.Qian
+ * Hold the editpart's root editpart
+ */
+ public void setParent(EditPart parent) {
+ if (this.getParent() == parent)
+ return;
+ if (parent != null) {
+ holdRoot = parent.getRoot();
+ }
+ super.setParent(parent);
+ }
+
+
+ /**
+ * Overwrite the method by Grid.Qian
+ * Hold the scope or process that the model belong to
+ */
+ public void setModel(Object model) {
+ if (getModel() == model)
+ return;
+ eObj = ((EObject) model).eContainer();
+ super.setModel(model);
+ }
+
}
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java 2009-09-02 08:45:13 UTC (rev 17412)
@@ -23,7 +23,9 @@
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.AccessibleEditPart;
import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.RootEditPart;
/**
* Tray category edit part.
@@ -38,6 +40,12 @@
protected MouseMotionListener mouseMotionListener;
+ // added by Grid.Qian
+ // use the variable to hold the root of the editpart
+ // because when we delete a correlationSet from scope
+ // the editpart parent will be null
+ private RootEditPart holdRoot;
+
@Override
protected AccessibleEditPart createAccessible() {
return new BPELTrayAccessibleEditPart(this);
@@ -134,7 +142,11 @@
@Override
public void removeNotify() {
// we only do the following hack if we are dealing with scoped variables
- if (!(((EObject)getParent().getModel()).eContainer() instanceof Scope)) {
+
+ // when we delete a variable from scope, the variables parent will
+ // be null, so we need to filter this
+ EObject eObj = ((EObject) getParent().getModel()).eContainer();
+ if (eObj != null && !(eObj instanceof Scope)) {
super.removeNotify();
return;
}
@@ -152,4 +164,30 @@
children.get(i).removeNotify();
unregister();
}
+
+ /**
+ * Overwrite the method by Grid.Qian to get the viewer
+ * when the editpart's parent == null
+ */
+ public EditPartViewer getViewer() {
+ try {
+ return super.getViewer();
+ } catch (Exception e) {
+ return holdRoot.getViewer();
+ }
+
+ }
+
+ /**
+ * Overwrite the method by Grid.Qian
+ * Hold the editpart's root editpart
+ */
+ public void setParent(EditPart parent) {
+ if (this.getParent() == parent)
+ return;
+ if (parent != null) {
+ holdRoot = parent.getRoot();
+ }
+ super.setParent(parent);
+ }
}
15 years, 3 months
JBoss Tools SVN: r17411 - trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-09-02 04:42:39 -0400 (Wed, 02 Sep 2009)
New Revision: 17411
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java
Log:
JBIDE-4633: forget to create a patch, so rollback and create a patch.
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java 2009-09-02 06:05:51 UTC (rev 17410)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411)
@@ -1,32 +1,18 @@
package org.eclipse.bpel.ui.editparts;
import org.eclipse.bpel.common.ui.tray.TrayCategoryEditPart;
+import org.eclipse.bpel.model.Scope;
import org.eclipse.bpel.ui.BPELEditor;
import org.eclipse.bpel.ui.editparts.policies.TrayContainerEditPolicy;
import org.eclipse.bpel.ui.util.ModelHelper;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.AccessibleEditPart;
import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.RootEditPart;
import org.eclipse.jface.viewers.StructuredSelection;
public abstract class BPELTrayCategoryEditPart extends TrayCategoryEditPart{
- // added by Grid.Qian
- // use the variable to hold the root of the editpart
- // because when we delete a correlationSets from scope
- // the editpart parent will be null
- private RootEditPart holdRoot;
-
- // added by Grid.Qian
- // use the variable to hold the parent's of the model
- // that will be a scope or a process
- // because when we delete a correlationSets from scope
- // the eContainer will be null
- private EObject eObj;
-
@Override
protected void createEditPolicies() {
super.createEditPolicies();
@@ -54,54 +40,13 @@
selectEditPart(getModelChildren().get(0));
} else {
// if we are executing this method we are dealing with scoped variables
-
- // delete the line by Grid.Qian because the econtainer maybe null
- // when the model is deleted from the scope
- // Scope scope = (Scope)((EObject)getModel()).eContainer();
- BPELEditor editor = ModelHelper.getBPELEditor(eObj);
- EditPart editPart = (EditPart)editor.getGraphicalViewer().getEditPartRegistry().get(eObj);
+ Scope scope = (Scope)((EObject)getModel()).eContainer();
+ BPELEditor editor = ModelHelper.getBPELEditor(scope);
+ EditPart editPart = (EditPart)editor.getGraphicalViewer().getEditPartRegistry().get(scope);
if (editPart != null) {
getViewer().setSelection(new StructuredSelection(editPart));
}
}
}
-
- /**
- * Overwrite the method by Grid.Qian to get the viewer
- * when the editpart's parent == null
- */
- public EditPartViewer getViewer() {
- try {
- return super.getViewer();
- } catch (Exception e) {
- return holdRoot.getViewer();
- }
- }
-
- /**
- * Overwrite the method by Grid.Qian
- * Hold the editpart's root editpart
- */
- public void setParent(EditPart parent) {
- if (this.getParent() == parent)
- return;
- if (parent != null) {
- holdRoot = parent.getRoot();
- }
- super.setParent(parent);
- }
-
-
- /**
- * Overwrite the method by Grid.Qian
- * Hold the scope or process that the model belong to
- */
- public void setModel(Object model) {
- if (getModel() == model)
- return;
- eObj = ((EObject) model).eContainer();
- super.setModel(model);
- }
-
}
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java 2009-09-02 06:05:51 UTC (rev 17410)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayCategoryEntryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411)
@@ -23,9 +23,7 @@
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.AccessibleEditPart;
import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.RootEditPart;
/**
* Tray category edit part.
@@ -40,12 +38,6 @@
protected MouseMotionListener mouseMotionListener;
- // added by Grid.Qian
- // use the variable to hold the root of the editpart
- // because when we delete a correlationSet from scope
- // the editpart parent will be null
- private RootEditPart holdRoot;
-
@Override
protected AccessibleEditPart createAccessible() {
return new BPELTrayAccessibleEditPart(this);
@@ -142,11 +134,7 @@
@Override
public void removeNotify() {
// we only do the following hack if we are dealing with scoped variables
-
- // when we delete a variable from scope, the variables parent will
- // be null, so we need to filter this
- EObject eObj = ((EObject) getParent().getModel()).eContainer();
- if (eObj != null && !(eObj instanceof Scope)) {
+ if (!(((EObject)getParent().getModel()).eContainer() instanceof Scope)) {
super.removeNotify();
return;
}
@@ -164,30 +152,4 @@
children.get(i).removeNotify();
unregister();
}
-
- /**
- * Overwrite the method by Grid.Qian to get the viewer
- * when the editpart's parent == null
- */
- public EditPartViewer getViewer() {
- try {
- return super.getViewer();
- } catch (Exception e) {
- return holdRoot.getViewer();
- }
-
- }
-
- /**
- * Overwrite the method by Grid.Qian
- * Hold the editpart's root editpart
- */
- public void setParent(EditPart parent) {
- if (this.getParent() == parent)
- return;
- if (parent != null) {
- holdRoot = parent.getRoot();
- }
- super.setParent(parent);
- }
}
15 years, 3 months
JBoss Tools SVN: r17410 - trunk/bpel/docs/reference/en/images.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-09-02 02:05:51 -0400 (Wed, 02 Sep 2009)
New Revision: 17410
Modified:
trunk/bpel/docs/reference/en/images/deploy_createdeploy_7.png
trunk/bpel/docs/reference/en/images/detail_editprocess_2.png
Log:
change some pics size
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_7.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png
===================================================================
(Binary files differ)
15 years, 3 months
JBoss Tools SVN: r17409 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-01 19:32:35 -0400 (Tue, 01 Sep 2009)
New Revision: 17409
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
Log:
clean up the code from snippets like new Integer(value).toString()
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2009-09-01 15:34:01 UTC (rev 17408)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2009-09-01 23:32:35 UTC (rev 17409)
@@ -205,15 +205,16 @@
private String countMatches(XPathQuery query) {
if( query == null )
- return new Integer(-1).toString();
+ return String.valueOf(-1);
int count = 0;
XPathFileResult[] fResults = query.getResults();
for( int i = 0; i < fResults.length; i++ ) {
count += fResults[i].getChildren().length;
}
- return new Integer(count).toString();
+ return String.valueOf(count);
}
+
private String safeString(String s) {
return s == null ? "" : s; //$NON-NLS-1$
}
15 years, 3 months
JBoss Tools SVN: r17408 - in trunk/jst: plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-09-01 11:34:01 -0400 (Tue, 01 Sep 2009)
New Revision: 17408
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4791/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4791/propertyViewTest.css
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4791
Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java 2009-09-01 15:06:21 UTC (rev 17407)
+++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -20,6 +20,8 @@
import org.eclipse.core.databinding.observable.IChangeListener;
import org.eclipse.core.databinding.observable.IObservable;
import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
@@ -67,6 +69,26 @@
super.init(pageSite);
pageSite.getWorkbenchWindow().getSelectionService()
.addPostSelectionListener(this);
+
+ // FIXED FOR JBIDE-4791
+ pageSite.setSelectionProvider(new ISelectionProvider() {
+
+ public void setSelection(ISelection selection) {
+ }
+
+ public void removeSelectionChangedListener(
+ ISelectionChangedListener listener) {
+ }
+
+ public ISelection getSelection() {
+ return selectedObject != null ? new StructuredSelection(
+ selectedObject) : StructuredSelection.EMPTY;
+ }
+
+ public void addSelectionChangedListener(
+ ISelectionChangedListener listener) {
+ }
+ });
}
@Override
Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java 2009-09-01 15:06:21 UTC (rev 17407)
+++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -13,6 +13,7 @@
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.part.IContributedContentsView;
import org.eclipse.ui.part.IPageBookViewPage;
import org.eclipse.ui.views.properties.IPropertySheetPage;
import org.eclipse.ui.views.properties.PropertySheet;
@@ -57,4 +58,16 @@
public void postSelectionChanged(SelectionChangedEvent event){
getSelectionProvider().postSelectionChanged(event);
}
+
+ @Override
+ public Object getAdapter(Class key) {
+ if (key == IContributedContentsView.class) {
+ return new IContributedContentsView() {
+ public IWorkbenchPart getContributingPart() {
+ return getCurrentContributingPart();
+ }
+ };
+ }
+ return super.getAdapter(key);
+ }
}
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4791/propertyViewTest.css
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4791/propertyViewTest.css (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4791/propertyViewTest.css 2009-09-01 15:34:01 UTC (rev 17408)
@@ -0,0 +1,4 @@
+/* test */
+.test {
+ color: red;
+}
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4791/propertyViewTest.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java 2009-09-01 15:06:21 UTC (rev 17407)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -31,6 +31,9 @@
/**
* @author Sergey Dzmitrovich
*
+ * abstract base class for css test's classes. Override getProjectName()
+ * method if other imported project is used.
+ *
*/
public abstract class AbstractCSSViewTest extends TestCase {
@@ -39,6 +42,8 @@
public static final String CSS_PREVIEW_VIEW = "org.jboss.tools.jst.css.view.preview"; //$NON-NLS-1$
public static final String CSS_EDITOR_ID = "org.eclipse.wst.css.core.csssource.source"; //$NON-NLS-1$
public static final String CSS_PERSPECTIVE = "org.jboss.tools.jst.cssPerspective"; //$NON-NLS-1$
+ public static final String IMPORT_PROJECT_NAME = "cssTest"; //$NON-NLS-1$
+
/**
*
* @param componentPage
@@ -170,6 +175,8 @@
*
* @return
*/
- public abstract String getProjectName();
+ public String getProjectName() {
+ return IMPORT_PROJECT_NAME;
+ }
}
Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java 2009-09-01 15:06:21 UTC (rev 17407)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -15,11 +15,14 @@
import junit.framework.TestSuite;
import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE4790;
+import org.jboss.tools.jst.css.test.jbide.SelectionLosingByPropertySheet_JBIDE4791;
import org.jboss.tools.test.util.ProjectImportTestSetup;
/**
* @author Sergey Dzmitrovich
*
+ * To import other projects add names of imported projects to array the
+ * same way as AbstractCSSViewTest.IMPORT_PROJECT_NAME
*/
public class CSSAllTests {
@@ -29,14 +32,15 @@
TestSuite suite = new TestSuite("Tests for CSS views"); //$NON-NLS-1$
// $JUnit-BEGIN$
- suite.addTestSuite(CSSViewTest.class);
- suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class);
+// suite.addTestSuite(CSSViewTest.class);
+// suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class);
+ suite.addTestSuite(SelectionLosingByPropertySheet_JBIDE4791.class);
// $JUnit-END$
return new ProjectImportTestSetup(
suite,
CSSTestPlugin.PLUGIN_ID,
new String[] { RESOURCE_PATH + CSSViewTest.IMPORT_PROJECT_NAME },
- new String[] { CSSViewTest.IMPORT_PROJECT_NAME });
+ new String[] { AbstractCSSViewTest.IMPORT_PROJECT_NAME });
}
}
Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java 2009-09-01 15:06:21 UTC (rev 17407)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -43,16 +43,11 @@
*/
public class CSSViewTest extends AbstractCSSViewTest {
- public static final String IMPORT_PROJECT_NAME = "cssTest"; //$NON-NLS-1$
public static final String TEST_PAGE_NAME = "test.css"; //$NON-NLS-1$
public static final int COUNT_TABS = 5;
- @Override
- public String getProjectName() {
- return IMPORT_PROJECT_NAME;
- }
/**
*
Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-01 15:06:21 UTC (rev 17407)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -32,8 +32,6 @@
*/
public class InputFractionalValueTest_JBIDE4790 extends AbstractCSSViewTest {
- public static final String IMPORT_PROJECT_NAME = "cssTest"; //$NON-NLS-1$
-
public static final String TEST_PAGE_NAME = "JBIDE/4790/inputFractional.css"; //$NON-NLS-1$
public static final String TEST_CSS_ATTRIBUTE_NAME = "font-size"; //$NON-NLS-1$
@@ -128,14 +126,4 @@
return text.replaceAll(" ", ""); //$NON-NLS-1$ //$NON-NLS-2$
}
- /*
- * (non-Javadoc)
- *
- * @see org.jboss.tools.jst.css.test.AbstractCSSViewTest#getProjectName()
- */
- @Override
- public String getProjectName() {
- return IMPORT_PROJECT_NAME;
- }
-
}
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java 2009-09-01 15:34:01 UTC (rev 17408)
@@ -0,0 +1,98 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.css.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.views.properties.PropertySheet;
+import org.eclipse.wst.css.core.internal.document.CSSStructuredDocumentRegionContainer;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleSheet;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.jboss.tools.jst.css.test.AbstractCSSViewTest;
+import org.jboss.tools.jst.css.view.CSSEditorView;
+import org.jboss.tools.test.util.JobUtils;
+import org.w3c.dom.css.CSSRule;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ * https://jira.jboss.org/jira/browse/JBIDE-4791
+ *
+ */
+public class SelectionLosingByPropertySheet_JBIDE4791 extends
+ AbstractCSSViewTest {
+
+ public static final String TEST_PAGE_NAME = "JBIDE/4791/propertyViewTest.css"; //$NON-NLS-1$
+
+ public static final String PROPERTY_SHEET_VIEW_ID = "org.eclipse.ui.views.PropertySheet"; //$NON-NLS-1$
+
+ public static final String SELECTION_FIELD_NAME = "currentSelection"; //$NON-NLS-1$
+
+ public void testSelectionLosingByPropertySheet() throws CoreException,
+ SecurityException, IllegalArgumentException, NoSuchFieldException,
+ IllegalAccessException {
+
+ IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName());
+
+ assertNotNull(pageFile);
+
+ PropertySheet propertySheet = (PropertySheet) openView(PROPERTY_SHEET_VIEW_ID);
+
+ assertNotNull(propertySheet);
+
+ StructuredTextEditor editor = (StructuredTextEditor) openEditor(
+ pageFile, CSS_EDITOR_ID);
+
+ assertNotNull(editor);
+
+ ICSSModel model = (ICSSModel) getStructuredModel(pageFile);
+
+ assertNotNull(model);
+
+ ICSSStyleSheet document = (ICSSStyleSheet) model.getDocument();
+
+ assertNotNull(document);
+
+ CSSRule cssRule = document.getCssRules().item(0);
+
+ assertNotNull(cssRule);
+
+ int offset = ((CSSStructuredDocumentRegionContainer) cssRule)
+ .getStartOffset();
+
+ setSelection(editor, offset, 0);
+
+ ISelection selection = (ISelection) getFieldValue(propertySheet,
+ SELECTION_FIELD_NAME);
+
+ assertTrue(selection instanceof IStructuredSelection);
+
+ assertEquals(cssRule, ((IStructuredSelection) selection)
+ .getFirstElement());
+
+ CSSEditorView view = (CSSEditorView) openView(CSS_EDITOR_VIEW);
+
+ JobUtils.delay(2000);
+
+ selection = (ISelection) getFieldValue(propertySheet,
+ SELECTION_FIELD_NAME);
+
+ assertTrue(selection instanceof IStructuredSelection);
+
+ assertEquals(cssRule, ((IStructuredSelection) selection)
+ .getFirstElement());
+
+ }
+
+}
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
15 years, 4 months
JBoss Tools SVN: r17407 - trunk/bpel/docs/reference/en/images.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-01 11:06:21 -0400 (Tue, 01 Sep 2009)
New Revision: 17407
Modified:
trunk/bpel/docs/reference/en/images/deploy_createdeploy_1.png
trunk/bpel/docs/reference/en/images/deploy_createdeploy_2.png
trunk/bpel/docs/reference/en/images/deploy_createdeploy_3.png
trunk/bpel/docs/reference/en/images/deploy_createdeploy_4.png
trunk/bpel/docs/reference/en/images/deploy_createdeploy_5.png
trunk/bpel/docs/reference/en/images/deploy_createdeploy_6.png
trunk/bpel/docs/reference/en/images/detail_createprocess_3.png
trunk/bpel/docs/reference/en/images/detail_editprocess_1.png
trunk/bpel/docs/reference/en/images/detail_editprocess_2.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BPEL User Guide according to size conventions.</p>
</body></html>
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_1.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_2.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_3.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_4.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_5.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_6.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_3.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_1.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png
===================================================================
(Binary files differ)
15 years, 4 months
JBoss Tools SVN: r17406 - trunk/bpel/docs/reference/en/images.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-01 09:29:15 -0400 (Tue, 01 Sep 2009)
New Revision: 17406
Modified:
trunk/bpel/docs/reference/en/images/detail_editprocess_1.png
trunk/bpel/docs/reference/en/images/detail_editprocess_2.png
trunk/bpel/docs/reference/en/images/detail_editprocess_3.png
trunk/bpel/docs/reference/en/images/detail_editprocess_4.png
trunk/bpel/docs/reference/en/images/detail_editprocess_5.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BPEL User Guide according to size conventions.</p>
</body></html>
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_1.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_3.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_4.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_5.png
===================================================================
(Binary files differ)
15 years, 4 months
JBoss Tools SVN: r17405 - trunk/bpel/docs/reference/en/images.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-01 08:09:24 -0400 (Tue, 01 Sep 2009)
New Revision: 17405
Modified:
trunk/bpel/docs/reference/en/images/detail_createprocess_3.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BPEL User Guide according to size preferences.Some English mistakes were corrected.</p>
</body></html>
Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_3.png
===================================================================
(Binary files differ)
15 years, 4 months
JBoss Tools SVN: r17404 - trunk/bpel/docs/reference/en/images.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-01 08:03:55 -0400 (Tue, 01 Sep 2009)
New Revision: 17404
Modified:
trunk/bpel/docs/reference/en/images/detail_createprocess_1.png
trunk/bpel/docs/reference/en/images/detail_createprocess_2.png
trunk/bpel/docs/reference/en/images/detail_createproject_1.png
trunk/bpel/docs/reference/en/images/detail_createproject_2.png
trunk/bpel/docs/reference/en/images/detail_createproject_3.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BPEL User Guide according to size preferences.Some English mistakes were corrected.</p>
</body></html>
Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_1.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_2.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_createproject_1.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_createproject_2.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en/images/detail_createproject_3.png
===================================================================
(Binary files differ)
15 years, 4 months