JBoss Tools SVN: r39769 - trunk/download.jboss.org/jbosstools/builds/cascade.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-03-22 10:00:11 -0400 (Thu, 22 Mar 2012)
New Revision: 39769
Modified:
trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt
Log:
split out SOA from Core in swimlanes
Modified: trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt
===================================================================
--- trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt 2012-03-22 14:00:01 UTC (rev 39768)
+++ trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt 2012-03-22 14:00:11 UTC (rev 39769)
@@ -26,27 +26,38 @@
esb -> jst -> common -> tests
-gwt, runtime, tests, usage, drools, pi4soa, savara, teiid -> [none]
+gwt, runtime, tests, usage, drools, pi4soa, savara, teiid -> [NONE]
------------------------
-New in 3.3:
+New in 3.3 (Core):
-forge -> [none]
+tptp [REMOVED]
+forge -> [NONE]
+(all but common and tests) -> usage
+
examples -> portlet, jst, runtime
-teiid, runtime -> tests
portlet -> seam, as, tests, usage
-tptp [REMOVED]
-smooks [removed from JBDS, still in JBT]
seam -> hibernate, jsf
central -> examples, portlet, seam, as, archives, jmx, jsf, vpe, jst, hibernate, freemarker, runtime, common, tests, maven, usage
runtime -> common, tests, jmx, as, seam
-esb -> as, jst, common, tests
cdi -> jst
-(all but common and tests) -> usage
usage -> common, tests
ws -> common
maven -> examples
openshift -> as, jmx, archives, common, tests
------------------------
+
+New in 3.3 (SOA Tooling):
+
+smooks [REMOVED]
+
+bpel -> archives
+esb -> as, jst, common, tests
+jbpm -> flow, common -> tests
+runtime-soa -> runtime
+teiid, modeshape -> tests
+
+(also includes SwitchYard, Drools, Savara)
+
12 years, 3 months
JBoss Tools SVN: r39768 - trunk/download.jboss.org/jbosstools/builds/cascade.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-03-22 10:00:01 -0400 (Thu, 22 Mar 2012)
New Revision: 39768
Modified:
trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt
Log:
runtime now depends on as and seam
Modified: trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt
===================================================================
--- trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt 2012-03-22 13:58:07 UTC (rev 39767)
+++ trunk/download.jboss.org/jbosstools/builds/cascade/swimlanes.txt 2012-03-22 14:00:01 UTC (rev 39768)
@@ -1,4 +1,4 @@
-Revised swimlanes, as implemented in 3.2_stable_branch, 3.3_stable_branch and 3.3_trunk jobs, 2012/02/17
+Revised swimlanes, as implemented in 3.2_stable_branch, 3.3_stable_branch and 3.3_trunk jobs, 2012/03/22
See also https://svn.jboss.org/repos/jbosstools/trunk/build/ -> pom*.xml
@@ -40,7 +40,7 @@
smooks [removed from JBDS, still in JBT]
seam -> hibernate, jsf
central -> examples, portlet, seam, as, archives, jmx, jsf, vpe, jst, hibernate, freemarker, runtime, common, tests, maven, usage
-runtime -> common, tests, jmx
+runtime -> common, tests, jmx, as, seam
esb -> as, jst, common, tests
cdi -> jst
(all but common and tests) -> usage
12 years, 3 months
JBoss Tools SVN: r39767 - in trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test: src/org/jboss/tools/freemarker/ui/bot/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2012-03-22 09:58:07 -0400 (Thu, 22 Mar 2012)
New Revision: 39767
Added:
trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/RunAs.java
Modified:
trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/pom.xml
trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java
Log:
Freemarker update to run on maven (pom updated, RunAs bot ext added, etc.)
Modified: trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/pom.xml
===================================================================
--- trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/pom.xml 2012-03-22 13:30:00 UTC (rev 39766)
+++ trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/pom.xml 2012-03-22 13:58:07 UTC (rev 39767)
@@ -19,16 +19,33 @@
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<useUIThread>false</useUIThread>
+ <testSuite>org.jboss.tools.freemarker.ui.bot.test</testSuite>
+ <testClass>org.jboss.tools.freemarker.ui.bot.test.FreeMarkerSuite</testClass>
<skip>${swtbot.test.skip}</skip>
- <dependencies>
+ <dependencies combine.children="append">
<dependency>
<type>p2-installable-unit</type>
+ <artifactId>org.eclipse.ui.views.log</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.pde</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.jdt</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
<artifactId>org.eclipse.platform</artifactId>
<version>0.0.0</version>
- </dependency>
+ </dependency>
<dependency>
<type>p2-installable-unit</type>
- <artifactId>org.jboss.ide.eclipse.freemarker.feature</artifactId>
+ <artifactId>org.jboss.ide.eclipse.freemarker.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
Modified: trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java
===================================================================
--- trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java 2012-03-22 13:30:00 UTC (rev 39766)
+++ trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java 2012-03-22 13:58:07 UTC (rev 39767)
@@ -17,7 +17,6 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.gen.ActionItem;
-import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
import org.jboss.tools.ui.bot.ext.helper.FileHelper;
import org.jboss.tools.ui.bot.ext.helper.ImportHelper;
import org.jboss.tools.ui.bot.ext.helper.ResourceHelper;
@@ -44,6 +43,8 @@
eclipse.closeView(IDELabel.View.WELCOME);
eclipse.closeView(IDELabel.View.JBOSS_CENTRAL);
eclipse.closeAllEditors();
+ util.waitForAll();
+ open.perspective(ActionItem.Perspective.JAVA.LABEL);
}
@Test
@@ -75,7 +76,7 @@
util.waitForNonIgnoredJobs();
}
- private void openFTLFileInEditor() {
+ private void openFTLFileInEditor() {
SWTBotView viewOpen = open
.viewOpen(ActionItem.View.GeneralProjectExplorer.LABEL);
@@ -136,7 +137,8 @@
.viewOpen(ActionItem.View.GeneralProjectExplorer.LABEL);
Tree.select(viewOpen.bot(), prj,"src","org.jboss.tools.freemarker.testprj","FMTest.java");
- ContextMenuHelper.clickContextMenu(viewOpen.bot().tree(),"Run As","2 Java Application");
+ RunAs.click("Java Application");
+
SWTBotShell s = bot.shell("Progress Information");
bot.waitUntil(shellCloses(s));
Added: trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/RunAs.java
===================================================================
--- trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/RunAs.java (rev 0)
+++ trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/RunAs.java 2012-03-22 13:58:07 UTC (rev 39767)
@@ -0,0 +1,49 @@
+package org.jboss.tools.freemarker.ui.bot.test;
+
+import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
+import org.eclipse.swtbot.swt.finder.results.WidgetResult;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
+import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+
+/**
+ * RunAs bot helper
+ * @author jpeterka
+ *
+ */
+public class RunAs {
+
+ public static void click(final String contains) {
+
+ SWTBotExt bot = new SWTBotExt();
+ final SWTBotMenu menuRunAs = bot.menu(IDELabel.Menu.RUN).menu(
+ IDELabel.Menu.RUN_AS);
+ final MenuItem menuItem = UIThreadRunnable
+ .syncExec(new WidgetResult<MenuItem>() {
+ public MenuItem run() {
+ int menuItemIndex = 0;
+ MenuItem menuItem = null;
+ final MenuItem[] menuItems = menuRunAs.widget.getMenu()
+ .getItems();
+ while (menuItem == null
+ && menuItemIndex < menuItems.length) {
+ if (menuItems[menuItemIndex].getText().indexOf(
+ contains) > -1) {
+ menuItem = menuItems[menuItemIndex];
+ } else {
+ menuItemIndex++;
+ }
+ }
+ return menuItem;
+ }
+ });
+ if (menuItem != null) {
+ new SWTBotMenu(menuItem).click();
+ } else {
+ throw new WidgetNotFoundException(
+ "Unable to find Menu Item with Label " + contains);
+ }
+ }
+}
Property changes on: trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/RunAs.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 3 months
JBoss Tools SVN: r39765 - branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-03-22 09:23:43 -0400 (Thu, 22 Mar 2012)
New Revision: 39765
Modified:
branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPageModel.java
Log:
[JBIDE-11322] creating ssh home directory if necessary
Modified: branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPageModel.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPageModel.java 2012-03-22 12:04:05 UTC (rev 39764)
+++ branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPageModel.java 2012-03-22 13:23:43 UTC (rev 39765)
@@ -71,14 +71,18 @@
}
public File getLibraPrivateKey() throws OpenShiftException {
+ String ssh2Home = getSSH2Home();
+ return new File(ssh2Home, LIBRA_KEY);
+ }
+
+ private String getSSH2Home() throws OpenShiftException {
Preferences preferences = JSchCorePlugin.getPlugin().getPluginPreferences();
String ssh2Home = preferences.getString(IConstants.KEY_SSH2HOME);
if (ssh2Home == null
|| ssh2Home.trim().length() == 0) {
throw new OpenShiftException("Could not determine your ssh2 home directory");
}
-
- return new File(ssh2Home, LIBRA_KEY);
+ return ssh2Home;
}
public String getNamespace() {
@@ -103,6 +107,7 @@
// key already exists
return;
}
+ createSSHHome(getSSH2Home());
File libraPrivateKey = getLibraPrivateKey();
SSHKeyPair keyPair = SSHKeyPair.create(passPhrase, libraPrivateKey.getAbsolutePath(), libraPublicKey.getAbsolutePath());
setFilePermissions(libraPrivateKey);
@@ -110,6 +115,26 @@
setSshKey(keyPair.getPublicKeyPath());
}
+ private void createSSHHome(String ssh2Home)
+ throws OpenShiftException {
+ File ssh2HomeFile = new File(ssh2Home);
+ if (FileUtils.canRead(ssh2HomeFile)) {
+ if (!FileUtils.isDirectory(ssh2HomeFile)) {
+ throw new OpenShiftException(
+ ssh2Home + " is a file instead of a directory. This prevents creation and usage of ssh keys");
+ }
+ return;
+ }
+
+ try {
+ if(!ssh2HomeFile.mkdirs()) {
+ throw new OpenShiftException("Could not create ssh2 home directory at {0}", ssh2Home);
+ }
+ } catch(SecurityException e) {
+ throw new OpenShiftException(e, "Could not create ssh2 home directory at {0}", ssh2Home);
+ }
+ }
+
private void setFilePermissions(File file) {
// set f permission to correspond to 'chmod 0600' read/write only for user
// First clear all permissions for both user and others
12 years, 3 months
JBoss Tools SVN: r39764 - trunk/build/aggregate/site/sources.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-03-22 08:04:05 -0400 (Thu, 22 Mar 2012)
New Revision: 39764
Modified:
trunk/build/aggregate/site/sources/site.xml
Log:
JBIDE-10826:
Updated aggregator
Modified: trunk/build/aggregate/site/sources/site.xml
===================================================================
--- trunk/build/aggregate/site/sources/site.xml 2012-03-22 11:58:36 UTC (rev 39763)
+++ trunk/build/aggregate/site/sources/site.xml 2012-03-22 12:04:05 UTC (rev 39764)
@@ -15,46 +15,46 @@
-->
<!--
- <feature url="features/org.jboss.tools.central.source.feature_0.0.0.jar" id="org.jboss.tools.central.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.central.feature.source_0.0.0.jar" id="org.jboss.tools.central.feature.source" version="0.0.0">
<category name="AllSources"/>
</feature>
- <feature url="features/org.jboss.tools.community.central.source.feature_0.0.0.jar" id="org.jboss.tools.community.central.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.community.central.feature.source_0.0.0.jar" id="org.jboss.tools.community.central.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.central.discovery.source.feature_0.0.0.jar" id="org.jboss.tools.central.discovery.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.central.discovery.feature.source_0.0.0.jar" id="org.jboss.tools.central.discovery.feature.source" version="0.0.0">
</feature>
- <feature url="features/org.jboss.tools.richfaces.source.feature_0.0.0.jar" id="org.jboss.tools.richfaces.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.richfaces.feature.source_0.0.0.jar" id="org.jboss.tools.richfaces.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.jst.source.feature_0.0.0.jar" id="org.jboss.tools.jst.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.jst.feature.source_0.0.0.jar" id="org.jboss.tools.jst.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.vpe.source.feature_0.0.0.jar" id="org.jboss.tools.vpe.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.vpe.feature.source_0.0.0.jar" id="org.jboss.tools.vpe.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.jsf.source.feature_0.0.0.jar" id="org.jboss.tools.jsf.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.jsf.feature.source_0.0.0.jar" id="org.jboss.tools.jsf.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.xulrunner.source.feature_0.0.0.jar" id="org.jboss.tools.xulrunner.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.xulrunner.feature.source_0.0.0.jar" id="org.jboss.tools.xulrunner.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.mozilla.xulrunner.source.feature_0.0.0.jar" id="org.mozilla.xulrunner.source.feature" version="0.0.0">
+ <feature url="features/org.mozilla.xulrunner.feature.source_0.0.0.jar" id="org.mozilla.xulrunner.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.seam.source.feature_0.0.0.jar" id="org.jboss.tools.seam.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.seam.feature.source_0.0.0.jar" id="org.jboss.tools.seam.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.cdi.source.feature_0.0.0.jar" id="org.jboss.tools.cdi.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.cdi.feature.source_0.0.0.jar" id="org.jboss.tools.cdi.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.cdi.seam.source.feature_0.0.0.jar" id="org.jboss.tools.cdi.seam.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.cdi.seam.feature.source_0.0.0.jar" id="org.jboss.tools.cdi.seam.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
-->
<feature url="features/org.jboss.tools.jmx.feature.source_0.0.0.jar" id="org.jboss.tools.jmx.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.ide.eclipse.as.source.feature_0.0.0.jar" id="org.jboss.ide.eclipse.as.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.ide.eclipse.as.feature.source_0.0.0.jar" id="org.jboss.ide.eclipse.as.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
<feature url="features/org.jboss.tools.openshift.express.feature.source_0.0.0.jar" id="org.jboss.tools.openshift.express.feature.source" version="0.0.0">
@@ -67,30 +67,30 @@
<category name="AllSources" />
</feature>
<!--
- <feature url="features/org.hibernate.eclipse.source.feature_0.0.0.jar" id="org.hibernate.eclipse.source.feature" version="0.0.0">
+ <feature url="features/org.hibernate.eclipse.feature.source_0.0.0.jar" id="org.hibernate.eclipse.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.ide.eclipse.freemarker.source.feature_0.0.0.jar" id="org.jboss.ide.eclipse.freemarker.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.ide.eclipse.freemarker.feature.source_0.0.0.jar" id="org.jboss.ide.eclipse.freemarker.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.struts.source.feature_0.0.0.jar" id="org.jboss.tools.struts.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.struts.feature.source_0.0.0.jar" id="org.jboss.tools.struts.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.ws.source.feature_0.0.0.jar" id="org.jboss.tools.ws.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.ws.feature.source_0.0.0.jar" id="org.jboss.tools.ws.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.ws.jaxrs.source.feature_0.0.0.jar" id="org.jboss.tools.ws.jaxrs.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.ws.jaxrs.feature.source_0.0.0.jar" id="org.jboss.tools.ws.jaxrs.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.portlet.source.feature_0.0.0.jar" id="org.jboss.tools.portlet.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.portlet.feature.source_0.0.0.jar" id="org.jboss.tools.portlet.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.project.examples.source.feature_0.0.0.jar" id="org.jboss.tools.project.examples.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.project.examples.feature.source_0.0.0.jar" id="org.jboss.tools.project.examples.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.forge.source.feature_0.0.0.jar" id="org.jboss.tools.forge.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.forge.feature.source_0.0.0.jar" id="org.jboss.tools.forge.feature.source" version="0.0.0">
</feature>
- <feature url="features/org.jboss.tools.community.project.examples.source.feature_0.0.0.jar" id="org.jboss.tools.community.project.examples.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.community.project.examples.feature.source_0.0.0.jar" id="org.jboss.tools.community.project.examples.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
-->
@@ -98,40 +98,40 @@
<category name="AllSources" />
</feature>
<!--
- <feature url="features/org.jboss.tools.maven.source.feature_0.0.0.jar" id="org.jboss.tools.maven.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.feature.source_0.0.0.jar" id="org.jboss.tools.maven.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.seam.source.feature_0.0.0.jar" id="org.jboss.tools.maven.seam.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.seam.feature.source_0.0.0.jar" id="org.jboss.tools.maven.seam.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.jsf.source.feature_0.0.0.jar" id="org.jboss.tools.maven.jsf.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.jsf.feature.source_0.0.0.jar" id="org.jboss.tools.maven.jsf.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.cdi.source.feature_0.0.0.jar" id="org.jboss.tools.maven.cdi.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.cdi.feature.source_0.0.0.jar" id="org.jboss.tools.maven.cdi.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.hibernate.source.feature_0.0.0.jar" id="org.jboss.tools.maven.hibernate.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.hibernate.feature.source_0.0.0.jar" id="org.jboss.tools.maven.hibernate.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.portlet.source.feature_0.0.0.jar" id="org.jboss.tools.maven.portlet.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.portlet.feature.source_0.0.0.jar" id="org.jboss.tools.maven.portlet.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.jaxrs.source.feature_0.0.0.jar" id="org.jboss.tools.maven.jaxrs.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.jaxrs.feature.source_0.0.0.jar" id="org.jboss.tools.maven.jaxrs.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.jpa.source.feature_0.0.0.jar" id="org.jboss.tools.maven.jpa.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.jpa.feature.source_0.0.0.jar" id="org.jboss.tools.maven.jpa.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.jbosspackaging.source.feature_0.0.0.jar" id="org.jboss.tools.maven.jbosspackaging.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.jbosspackaging.feature.source_0.0.0.jar" id="org.jboss.tools.maven.jbosspackaging.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.maven.project.examples.source.feature_0.0.0.jar" id="org.jboss.tools.maven.project.examples.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.project.examples.feature.source_0.0.0.jar" id="org.jboss.tools.maven.project.examples.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.deltacloud.source.feature_0.0.0.jar" id="org.jboss.tools.deltacloud.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.deltacloud.feature.source_0.0.0.jar" id="org.jboss.tools.deltacloud.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.gwt.source.feature_0.0.0.jar" id="org.jboss.tools.gwt.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.gwt.feature.source_0.0.0.jar" id="org.jboss.tools.gwt.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
-->
@@ -145,23 +145,23 @@
<category name="AllSources" />
</feature>
<!--
- <feature url="features/org.jboss.tools.runtime.source.feature_0.0.0.jar" id="org.jboss.tools.runtime.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.runtime.feature.source_0.0.0.jar" id="org.jboss.tools.runtime.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.runtime.core.source.feature_0.0.0.jar" id="org.jboss.tools.runtime.core.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.runtime.core.feature.source_0.0.0.jar" id="org.jboss.tools.runtime.core.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.runtime.as.detector.source.feature_0.0.0.jar" id="org.jboss.tools.runtime.as.detector.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.runtime.as.detector.feature.source_0.0.0.jar" id="org.jboss.tools.runtime.as.detector.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.runtime.seam.detector.source.feature_0.0.0.jar" id="org.jboss.tools.runtime.seam.detector.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.runtime.seam.detector.feature.source_0.0.0.jar" id="org.jboss.tools.runtime.seam.detector.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
- <feature url="features/org.jboss.tools.usage.source.feature_0.0.0.jar" id="org.jboss.tools.usage.source.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.usage.feature.source_0.0.0.jar" id="org.jboss.tools.usage.feature.source" version="0.0.0">
<category name="AllSources" />
</feature>
-->
12 years, 3 months
JBoss Tools SVN: r39763 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src: src and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2012-03-22 07:58:36 -0400 (Thu, 22 Mar 2012)
New Revision: 39763
Added:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/jboss/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/jboss/tools/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/jboss/tools/jst/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/jboss/tools/jst/jsp/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/jboss/tools/jst/jsp/selection/
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/src/org/jboss/tools/jst/jsp/selection/bar/
Log:
https://issues.jboss.org/browse/JBIDE-11302 - "Toggle selection tag bar" icon was added to the VPE toolbar.
12 years, 3 months
JBoss Tools SVN: r39762 - in trunk: jst/plugins/org.jboss.tools.jst.jsp/META-INF and 10 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2012-03-22 07:57:55 -0400 (Thu, 22 Mar 2012)
New Revision: 39762
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/editor/mozilla/icons/selbar.gif
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.properties
trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/bundle/BundleMapUtil.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/editor/IVisualEditor.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/IVpePreferencesPage.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/VpePreferencesInitializer.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBarHandler.java
trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/VpePreferencesPage.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties
Log:
https://issues.jboss.org/browse/JBIDE-11302 - "Toggle selection tag bar" icon was added to the VPE toolbar.
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2012-03-22 11:57:55 UTC (rev 39762)
@@ -23,6 +23,7 @@
org.jboss.tools.jst.jsp.outline.css,
org.jboss.tools.jst.jsp.preferences,
org.jboss.tools.jst.jsp.selection,
+ org.jboss.tools.jst.jsp.selection.bar,
org.jboss.tools.jst.jsp.support.kb,
org.jboss.tools.jst.jsp.text,
org.jboss.tools.jst.jsp.ui.action,
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.properties 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.properties 2012-03-22 11:57:55 UTC (rev 39762)
@@ -16,10 +16,10 @@
proposalCategory.xmlEL= JBoss JSF EL Proposals
proposalCategory.xmlTag= JBoss JSF Tag Proposals
-Toggle.Selection.Bar=Toggle Selection Bar
+Toggle.Selection.Bar=Toggle selection tag bar
Externalize.Selected.Property=Externalize selected string...
-vpe.toolbar.name=VPE Toolbar
+vpe.toolbar.name=JBoss Visual Page Editor toolbar
ContentType_JBossToolsINC=JBoss Tools JSP Include
ContentType_JBossPHPSource=JBoss Tools PHP Source
\ No newline at end of file
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2012-03-22 11:57:55 UTC (rev 39762)
@@ -738,7 +738,7 @@
<command
categoryId="org.jboss.tools.jst.jsp.commands.category"
id="org.jboss.tools.jst.jsp.commands.showSelectionBar"
- name="Show Selection Bar">
+ name="%Toggle.Selection.Bar">
<state
class="org.eclipse.ui.handlers.RegistryToggleState:true"
id="org.eclipse.ui.commands.toggleState">
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/bundle/BundleMapUtil.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/bundle/BundleMapUtil.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/bundle/BundleMapUtil.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -22,7 +22,7 @@
*/
public class BundleMapUtil {
- private static final String elPattern = "(?s:(.*)[#\\$]\\{(.+)\\}(.*))"; //$NON-NLS-1$
+ private static final String EL_PATTERN = "(?s:(.*)[#\\$]\\{(.+)\\}(.*))"; //$NON-NLS-1$
/**
* Checks if node contains text information from resource bundle
* @param pageContext
@@ -85,6 +85,6 @@
* @return
*/
public static boolean isContainsEl(final String value) {
- return value.matches(elPattern);
+ return value.matches(EL_PATTERN);
}
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/editor/IVisualEditor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/editor/IVisualEditor.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/editor/IVisualEditor.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -14,11 +14,11 @@
import org.eclipse.ui.texteditor.ITextEditor;
public interface IVisualEditor extends IReusableEditor {
+ /*
+ * VPE tab indexes
+ */
public static final int VISUALSOURCE_MODE = 0;
- //public static final int VISUAL_MODE = 1;
public static final int SOURCE_MODE = 1;
-
- /** PREVIEW_MODE */
public static final int PREVIEW_MODE = 2;
public void setVisualMode(int mode);
@@ -29,5 +29,4 @@
public void createVisualEditor();
public void maximizeSource();
public void maximizeVisual();
-
-}
+}
\ No newline at end of file
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/IVpePreferencesPage.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/IVpePreferencesPage.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/IVpePreferencesPage.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -14,6 +14,7 @@
static final String SHOW_BORDER_FOR_UNKNOWN_TAGS = "Show Border for Unknown Tags"; //$NON-NLS-1$
static final String SHOW_NON_VISUAL_TAGS = "Show non-visual tags"; //$NON-NLS-1$
+ static final String SHOW_SELECTION_TAG_BAR = "Show Selection Tag Bar"; //$NON-NLS-1$
static final String SHOW_TEXT_FORMATTING = "Show Text Formatting bar"; //$NON-NLS-1$
static final String SHOW_RESOURCE_BUNDLES_USAGE_AS_EL = "Show Resource Bundles Usage as EL Expressions"; //$NON-NLS-1$
static final String ASK_TAG_ATTRIBUTES_ON_TAG_INSERT = "Ask for tag attributes during tag insert"; //$NON-NLS-1$
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/VpePreferencesInitializer.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/VpePreferencesInitializer.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences/VpePreferencesInitializer.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -24,6 +24,7 @@
defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_VISUAL_TOOLBAR, false);
defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_BORDER_FOR_UNKNOWN_TAGS, true);
defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS, false);
+ defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR, true);
defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_TEXT_FORMATTING, true);
defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL, false);
defaultPreferences.putBoolean(IVpePreferencesPage.ASK_TAG_ATTRIBUTES_ON_TAG_INSERT, true);
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -64,9 +64,10 @@
import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditorPart;
import org.jboss.tools.jst.jsp.messages.JstUIMessages;
+import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
import org.jboss.tools.jst.jsp.selection.SelectionHelper;
import org.jboss.tools.jst.jsp.selection.SourceSelection;
import org.jboss.tools.jst.jsp.selection.SourceSelectionBuilder;
@@ -135,9 +136,7 @@
ICommandService commandService = (ICommandService) PlatformUI
.getWorkbench().getService(ICommandService.class);
this.toggleSelBarCommand = commandService.getCommand(SelectionBarHandler.COMMAND_ID);
- toggleSelBarState = toggleSelBarCommand
- .getState("org.eclipse.ui.commands.toggleState"); //$NON-NLS-1$
-
+ toggleSelBarState = toggleSelBarCommand.getState("org.eclipse.ui.commands.toggleState"); //$NON-NLS-1$
toggleSelBarCommandListener = new ICommandListener() {
@Override
public void commandChanged(CommandEvent commandEvent) {
@@ -189,6 +188,8 @@
*/
setVisible(false);
toggleSelBarState.setValue(false);
+ JspEditorPlugin.getDefault().getPreferenceStore().
+ setValue(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR, false);
}
};
@@ -243,7 +244,6 @@
public void refreshVisibility() {
boolean visible = (Boolean) toggleSelBarState.getValue();
-
IEditorPart editorPart = textEditor.getEditorPart();
if(editorPart instanceof JSPMultiPageEditor){
JSPMultiPageEditor jspEditor = (JSPMultiPageEditor) editorPart;
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBarHandler.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBarHandler.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBarHandler.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -22,7 +22,9 @@
import org.eclipse.ui.commands.IElementUpdater;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.ui.menus.UIElement;
+import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
/**
* Selection bar handler
@@ -35,6 +37,11 @@
* The constructor.
*/
public SelectionBarHandler() {
+ /*
+ * Init the item state
+ */
+ setBaseEnabled(JspEditorPlugin.getDefault().getPreferenceStore().
+ getBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR));
}
@Override
@@ -62,7 +69,12 @@
* from the application context.
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
- HandlerUtil.toggleCommandState(event.getCommand());
+ /*
+ * Change command state and save it to PreferenceStore
+ */
+ JspEditorPlugin.getDefault().getPreferenceStore().setValue(
+ IVpePreferencesPage.SHOW_SELECTION_TAG_BAR,
+ !HandlerUtil.toggleCommandState(event.getCommand()));
return null;
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml 2012-03-22 11:57:55 UTC (rev 39762)
@@ -192,7 +192,7 @@
</dynamic>
</menuContribution>
<menuContribution
- locationURI="toolbar:org.jboss.tools.jst.jsp.toolbars.sampleToolbar?after=org.jboss.tools.jst.jsp.toolbars.i18">
+ locationURI="toolbar:org.jboss.tools.jst.jsp.toolbars.sampleToolbar?before=org.jboss.tools.jst.jsp.toolbars.i18">
<command
commandId="org.jboss.tools.vpe.commands.preferencesCommand"
icon="icons/preferences.gif"
Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/editor/mozilla/icons/selbar.gif
===================================================================
(Binary files differ)
Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/editor/mozilla/icons/selbar.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -70,6 +70,7 @@
import org.jboss.tools.jst.jsp.jspeditor.StorageRevisionEditorInputAdapter;
import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
import org.jboss.tools.jst.jsp.preferences.VpePreference;
+import org.jboss.tools.jst.jsp.selection.bar.SelectionBar;
import org.jboss.tools.vpe.IVpeHelpContextIds;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.mozilla.MozillaEditor;
@@ -98,7 +99,7 @@
private ControlListener controlListener;
private XModelTreeListener listener;
private XModelObject optionsObject;
-// private SelectionBar selectionBar = new SelectionBar();
+ private SelectionBar selectionBar; // should be get from o.j.t.jst.jsp plugin
private ActivationListener activationListener = new ActivationListener();
private int visualMode;
private EditorPart multiPageEditor;
@@ -806,12 +807,16 @@
toolBar = visualEditor.createVisualToolbar(verticalToolbarSplitter);
visualEditor.createPartControl(visualContent);
- /*
- * https://issues.jboss.org/browse/JBIDE-10711
- */
- if (!XulRunnerBrowser.isCurrentPlatformOfficiallySupported()) {
- if (multiPageEditor instanceof JSPMultiPageEditor) {
- JSPMultiPageEditor jspMultiPageEditor = (JSPMultiPageEditor) multiPageEditor;
+ if (multiPageEditor instanceof JSPMultiPageEditor) {
+ JSPMultiPageEditor jspMultiPageEditor = (JSPMultiPageEditor) multiPageEditor;
+ /*
+ * https://issues.jboss.org/browse/JBIDE-11302
+ */
+ selectionBar = jspMultiPageEditor.getSelectionBar();
+ /*
+ * https://issues.jboss.org/browse/JBIDE-10711
+ */
+ if (!XulRunnerBrowser.isCurrentPlatformOfficiallySupported()) {
/*
* Set the flag in JSPMultiPageEditor
*/
@@ -1124,27 +1129,24 @@
// doVisualRefresh = true;
// }
- boolean prefsShowNonVisualTags = JspEditorPlugin.getDefault()
- .getPreferenceStore().getBoolean(
- IVpePreferencesPage.SHOW_NON_VISUAL_TAGS);
- if (prefsShowNonVisualTags != getController().getVisualBuilder()
- .isShowInvisibleTags()) {
- getController().getVisualBuilder().setShowInvisibleTags(
- prefsShowNonVisualTags);
+ boolean prefsShowNonVisualTags = JspEditorPlugin.getDefault().getPreferenceStore().
+ getBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS);
+ if (prefsShowNonVisualTags != getController().getVisualBuilder().isShowInvisibleTags()) {
+ getController().getVisualBuilder().setShowInvisibleTags(prefsShowNonVisualTags);
doVisualRefresh = true;
}
- boolean prefsShowBundlesAsEL = JspEditorPlugin
- .getDefault()
- .getPreferenceStore()
- .getBoolean(
- IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL);
- if (prefsShowBundlesAsEL != getController().getPageContext()
- .getBundle().isShowBundleUsageAsEL()) {
- getController().getPageContext().getBundle()
- .updateShowBundleUsageAsEL(prefsShowBundlesAsEL);
+ boolean prefsShowBundlesAsEL = JspEditorPlugin.getDefault().getPreferenceStore()
+ .getBoolean(IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL);
+ if (prefsShowBundlesAsEL != getController().getPageContext().getBundle().isShowBundleUsageAsEL()) {
+ getController().getPageContext().getBundle().updateShowBundleUsageAsEL(prefsShowBundlesAsEL);
doVisualRefresh = true;
}
+
+ boolean prefsShowVPEToolBar = JspEditorPlugin.getDefault().getPreferenceStore()
+ .getBoolean(IVpePreferencesPage.SHOW_VISUAL_TOOLBAR);
+ setVerticalToolbarVisible(prefsShowVPEToolBar);
+
/*
* Visual refresh is only needed when some options have changed.
*/
@@ -1155,13 +1157,13 @@
}
}
-// public void updateSelectionBar(boolean isSelectionBarVisible) {
-// if (selectionBar != null) {
-// selectionBar.setVisible(isSelectionBarVisible);
-// } else {
-// VpePlugin.getDefault().logError("VPE Selection Bar is not initialized."); //$NON-NLS-1$
-// }
-// }
+ public void updateSelectionBar(boolean isSelectionBarVisible) {
+ if (selectionBar != null) {
+ selectionBar.setVisible(isSelectionBarVisible);
+ } else {
+ VpePlugin.getDefault().logError("VPE Selection Bar is not initialized."); //$NON-NLS-1$
+ }
+ }
private void deactivateServices() {
IWorkbench workbench = PlatformUI.getWorkbench();
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -33,6 +33,8 @@
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.util.IPropertyChangeListener;
+import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTError;
@@ -125,6 +127,7 @@
public static final String ICON_ORIENTATION_SOURCE_LEFT_DISABLED = "icons/source_left_disabled.gif"; //$NON-NLS-1$
public static final String ICON_SHOW_BORDER_FOR_UNKNOWN_TAGS = "icons/border.gif"; //$NON-NLS-1$
public static final String ICON_NON_VISUAL_TAGS = "icons/non-visusal-tags.gif"; //$NON-NLS-1$
+ public static final String ICON_SELECTION_BAR = "icons/selbar.gif"; //$NON-NLS-1$
public static final String ICON_TEXT_FORMATTING = "icons/text-formatting.gif"; //$NON-NLS-1$
public static final String ICON_BUNDLE_AS_EL= "icons/bundle-as-el.gif"; //$NON-NLS-1$
public static final String ICON_SCROLL_LOCK= "icons/scroll_lock.gif"; //$NON-NLS-1$
@@ -153,6 +156,7 @@
private Action rotateEditorsAction;
private Action showBorderAction;
private Action showNonVisualTagsAction;
+ private Action showSelectionBarAction;
private Action showTextFormattingAction;
private Action showBundleAsELAction;
private Action scrollLockAction;
@@ -389,7 +393,7 @@
ICON_NON_VISUAL_TAGS));
showNonVisualTagsAction.setToolTipText(VpeUIMessages.SHOW_NON_VISUAL_TAGS);
toolBarManager.add(showNonVisualTagsAction);
-
+
/*
* Create SHOW TEXT FORMATTING tool bar item
*/
@@ -478,6 +482,40 @@
ICON_EXTERNALIZE_STRINGS));
externalizeStringsAction.setToolTipText(JstUIMessages.EXTERNALIZE_STRINGS);
toolBarManager.add(externalizeStringsAction);
+
+ /*
+ * Create SHOW SELECTION BAR tool bar item
+ */
+ showSelectionBarAction = new Action(VpeUIMessages.SHOW_SELECTION_BAR,
+ IAction.AS_CHECK_BOX) {
+ @Override
+ public void run() {
+ /*
+ * Update Selection Bar
+ */
+ controller.getPageContext().getEditPart().updateSelectionBar(this.isChecked());
+ JspEditorPlugin.getDefault().getPreferenceStore().
+ setValue(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR, this.isChecked());
+ }
+ };
+ JspEditorPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(new IPropertyChangeListener() {
+ @Override
+ public void propertyChange(PropertyChangeEvent event) {
+ /*
+ * Change icon state after sel bar was closed
+ */
+ if (IVpePreferencesPage.SHOW_SELECTION_TAG_BAR.equalsIgnoreCase(event.getProperty())) {
+ boolean newValue = (Boolean) event.getNewValue();
+ if (showSelectionBarAction.isChecked() != newValue) {
+ showSelectionBarAction.setChecked(newValue);
+ }
+ }
+ }
+ });
+ showSelectionBarAction.setImageDescriptor(ImageDescriptor.createFromFile(MozillaEditor.class,
+ ICON_SELECTION_BAR));
+ showSelectionBarAction.setToolTipText(VpeUIMessages.SHOW_SELECTION_BAR);
+ toolBarManager.add(showSelectionBarAction);
updateToolbarItemsAccordingToPreferences();
toolBarManager.update(true);
@@ -492,6 +530,7 @@
showResouceDialogAction = null;
rotateEditorsAction = null;;
showBorderAction = null;
+ showSelectionBarAction = null;
showNonVisualTagsAction = null;
showTextFormattingAction = null;
showBundleAsELAction = null;
@@ -1063,6 +1102,8 @@
.getBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS);
boolean prefsShowTextFormatting = JspEditorPlugin.getDefault().getPreferenceStore()
.getBoolean(IVpePreferencesPage.SHOW_TEXT_FORMATTING);
+ boolean prefsShowSelectionBar = JspEditorPlugin.getDefault().getPreferenceStore()
+ .getBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR);
boolean prefsShowBundlesAsEL = JspEditorPlugin.getDefault().getPreferenceStore()
.getBoolean(IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL);
boolean scrollLockEditors = JspEditorPlugin.getDefault().getPreferenceStore()
@@ -1074,6 +1115,9 @@
if (showNonVisualTagsAction != null) {
showNonVisualTagsAction.setChecked(prefsShowNonVisualTags);
}
+ if (showSelectionBarAction != null) {
+ showSelectionBarAction.setChecked(prefsShowSelectionBar);
+ }
if (showTextFormattingAction != null) {
showTextFormattingAction.setChecked(prefsShowTextFormatting);
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/VpePreferencesPage.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/VpePreferencesPage.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/VpePreferencesPage.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -30,6 +30,7 @@
import org.jboss.tools.jst.jsp.editor.IVisualEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
+import org.jboss.tools.jst.jsp.selection.bar.SelectionBarHandler;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.VpeEditorPart;
import org.jboss.tools.vpe.handlers.ScrollLockSourceVisualHandler;
@@ -134,6 +135,8 @@
visualAppearanceGroup));
addField(new VpeBooleanFieldEditor(SHOW_NON_VISUAL_TAGS,
VpeUIMessages.SHOW_NON_VISUAL_TAGS, visualAppearanceGroup));
+ addField(new VpeBooleanFieldEditor(SHOW_SELECTION_TAG_BAR,
+ VpeUIMessages.SHOW_SELECTION_TAG_BAR, visualAppearanceGroup));
addField(new VpeBooleanFieldEditor(SHOW_TEXT_FORMATTING,
VpeUIMessages.SHOW_TEXT_FORMATTING, visualAppearanceGroup));
addField(new VpeBooleanFieldEditor(SHOW_RESOURCE_BUNDLES_USAGE_AS_EL,
@@ -190,6 +193,8 @@
.getPreferenceStore().getBoolean(IVpePreferencesPage.SHOW_BORDER_FOR_UNKNOWN_TAGS);
boolean prefsShowNonVisualTags = JspEditorPlugin.getDefault()
.getPreferenceStore().getBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS);
+ boolean prefsShowSelectionBar = JspEditorPlugin.getDefault()
+ .getPreferenceStore().getBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR);
boolean prefsShowTextFormattingBar = JspEditorPlugin.getDefault()
.getPreferenceStore().getBoolean(IVpePreferencesPage.SHOW_TEXT_FORMATTING);
boolean prefsShowBundlesAsEL = JspEditorPlugin.getDefault()
@@ -199,6 +204,7 @@
setCommandToggleState(ShowBorderHandler.COMMAND_ID, presfShowBorderForUnknownTags);
setCommandToggleState(ShowNonVisualTagsHandler.COMMAND_ID, prefsShowNonVisualTags);
+ setCommandToggleState(SelectionBarHandler.COMMAND_ID, prefsShowSelectionBar);
setCommandToggleState(ShowTextFormattingHandler.COMMAND_ID, prefsShowTextFormattingBar);
setCommandToggleState(ShowBundleAsELHandler.COMMAND_ID, prefsShowBundlesAsEL);
setCommandToggleState(ScrollLockSourceVisualHandler.COMMAND_ID, prefsSynchronizeScrolling);
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java 2012-03-22 11:57:55 UTC (rev 39762)
@@ -29,6 +29,7 @@
public static String PREFERENCES;
public static String REFRESH;
public static String PAGE_DESIGN_OPTIONS;
+ public static String SHOW_SELECTION_BAR;
public static String MOZILLA_LOADING_ERROR;
public static String MOZILLA_LOADING_ERROR_LINK_TEXT;
public static String MOZILLA_LOADING_ERROR_LINK;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties 2012-03-22 11:26:51 UTC (rev 39761)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties 2012-03-22 11:57:55 UTC (rev 39762)
@@ -6,6 +6,7 @@
PREFERENCES=Preferences
REFRESH=Refresh
PAGE_DESIGN_OPTIONS=Page Design Options
+SHOW_SELECTION_BAR=Toggle selection tag bar
MOZILLA_LOADING_ERROR=Could not open the Visual Page Editor:\n{0}
CURRENT_PLATFORM_IS_NOT_SUPPORTED=Current platform ''{0}'' is not supported.
MOZILLA_LOADING_ERROR_LINK_TEXT=See JBoss Tools Visual Editor FAQ
12 years, 3 months
JBoss Tools SVN: r39761 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-03-22 07:26:51 -0400 (Thu, 22 Mar 2012)
New Revision: 39761
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
Log:
Rename with dots label added
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2012-03-22 11:18:36 UTC (rev 39760)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2012-03-22 11:26:51 UTC (rev 39761)
@@ -34,6 +34,7 @@
public static final String CLOSE = "Close";
public static final String OPEN = "Open";
public static final String RENAME = "Rename";
+ public static final String RENAME_WITH_DOTS = "Rename...";
public static final String JSP_FILE = "JSP File";
public static final String PROPERTIES = "Properties";
public static final String XHTML_FILE = "XHTML File";
12 years, 3 months
JBoss Tools SVN: r39760 - trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-03-22 07:18:36 -0400 (Thu, 22 Mar 2012)
New Revision: 39760
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
Log:
Include the new seam3 bot test
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-03-22 11:18:09 UTC (rev 39759)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-03-22 11:18:36 UTC (rev 39760)
@@ -14,6 +14,7 @@
import org.jboss.tools.cdi.bot.test.AbstractTestSuite;
import org.jboss.tools.cdi.seam3.bot.test.tests.DefaultBeansTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.ExactAnnotationTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.FullyQualifiedTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.GenericOpenOnTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.NamedPackagesTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.RequiresAnnotationTest;
@@ -52,7 +53,8 @@
ExactAnnotationTest.class,
VetoAnnotationTest.class,
RequiresAnnotationTest.class,
- NamedPackagesTest.class
+ NamedPackagesTest.class,
+ FullyQualifiedTest.class
})
public class CDISeam3AllBotTests extends AbstractTestSuite {
12 years, 3 months