JBoss Tools SVN: r43586 - trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2012-09-11 06:50:27 -0400 (Tue, 11 Sep 2012)
New Revision: 43586
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java
Log:
JBIDE-12542 : Bump default Seam version to 2.3.0.CR1 in the JBoss Maven Facet wizard page
Modified: trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java 2012-09-11 10:37:19 UTC (rev 43585)
+++ trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java 2012-09-11 10:50:27 UTC (rev 43586)
@@ -161,7 +161,7 @@
} else if ("2.2".equals(seamFacetVersion.getVersionString())) { //$NON-NLS-1$
seamVersion.setText("2.2.2.Final"); //$NON-NLS-1$
} else if ("2.3".equals(seamFacetVersion.getVersionString())) { //$NON-NLS-1$
- seamVersion.setText("2.3.0.Beta2"); //$NON-NLS-1$
+ seamVersion.setText("2.3.0.CR1"); //$NON-NLS-1$
}
Button removeWTPContainers = new Button(composite,SWT.CHECK);
removeWTPContainers.setText(Messages.MavenFacetInstallPage_Remove_WTP_Classpath_containers);
13 years, 3 months
JBoss Tools SVN: r43585 - trunk/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/wizard.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-09-11 06:37:19 -0400 (Tue, 11 Sep 2012)
New Revision: 43585
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/wizard/ImportProjectWizard.java
Log:
Added debugging messages.
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/wizard/ImportProjectWizard.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/wizard/ImportProjectWizard.java 2012-09-11 10:25:21 UTC (rev 43584)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/wizard/ImportProjectWizard.java 2012-09-11 10:37:19 UTC (rev 43585)
@@ -61,6 +61,9 @@
selectCopyProjectsIntoWorkspace();
getBot().button("Deselect All").click();
SWTBotTree projectsTree = getBot().treeWithLabel("Projects:");
+ for (SWTBotTreeItem item : projectsTree.getAllItems()){
+ System.out.println(item.getText());
+ }
for (String projectName : projectNames){
SWTBotTreeItem projectItem = projectsTree.getTreeItem(getProjectLabel(projectName));
projectItem.check();
13 years, 3 months
JBoss Tools SVN: r43584 - trunk/runtime/plugins/org.jboss.tools.runtime.core/schema.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-09-11 06:25:21 -0400 (Tue, 11 Sep 2012)
New Revision: 43584
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd
Log:
JBIDE-12581 license for download runtimes. JBIDE-6116 allow for download of jboss-as runtimes
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd 2012-09-11 10:20:57 UTC (rev 43583)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd 2012-09-11 10:25:21 UTC (rev 43584)
@@ -91,7 +91,7 @@
</documentation>
</annotation>
</attribute>
- <attribute name="licenseURL" type="string">
+ <attribute name="licenseUrl" type="string">
<annotation>
<documentation>
13 years, 3 months
JBoss Tools SVN: r43583 - in trunk: as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-09-11 06:20:57 -0400 (Tue, 11 Sep 2012)
New Revision: 43583
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
trunk/as/plugins/org.jboss.tools.runtime.as.detector/plugin.xml
trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd
trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal/RuntimeExtensionManager.java
trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/DownloadRuntime.java
trunk/runtime/plugins/org.jboss.tools.runtime.ui/META-INF/MANIFEST.MF
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/download/DownloadRuntimeViewerDialog.java
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12581 license for download runtimes. JBIDE-6116 allow for download of jboss-as runtimes
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2012-09-11 10:20:57 UTC (rev 43583)
@@ -51,6 +51,12 @@
public static String JBossRuntimeWizardFragment_DeleteConfigTitle;
public static String JBossRuntimeWizardFragment_MustSelectValidConfig;
public static String JBossRuntimeWizardFragment_OutputFolderExists;
+ public static String rwf_DownloadRuntime;
+ public static String rwf_InstallingRuntimeJob;
+ public static String rwf_DownloadAndInstallRuntimeWizard;
+ public static String rwf_DownloadingMayTakeLongTime;
+ public static String rwf_DownloadServerFileChooser;
+ public static String rwf_InstallingASTitle;
public static String rwf_CopyConfigLabel;
public static String rwf_DestinationLabel;
public static String rwf_JBossRuntime;
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2012-09-11 10:20:57 UTC (rev 43583)
@@ -9,6 +9,12 @@
wf_JRELabel=JRE
wf_ExecEnvironmentLabel=Execution Environment
wf_ConfigLabel=Configuration
+rwf_DownloadRuntime=Download and install runtime...
+rwf_InstallingRuntimeJob=Downloading and Installing {0}
+rwf_DownloadAndInstallRuntimeWizard=Download and Install JBoss Runtime
+rwf_DownloadingMayTakeLongTime=The application server is being downloaded and unzipped into {0}. This may take a significant amount of time. You may create a new runtime in this wizard after the installation job is complete. This wizard will now close.
+rwf_DownloadServerFileChooser=Please select the folder to install the application server into.
+rwf_InstallingASTitle=Installing JBoss Application Server
rwf_CopyConfigLabel=Copy configuration "{0}" to a new destination from "{1}".
rwf_DestinationLabel=Destination
rwf_JBossRuntime=JBoss Runtime
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2012-09-11 10:20:57 UTC (rev 43583)
@@ -17,9 +17,14 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jdt.launching.IVMInstall;
@@ -37,6 +42,8 @@
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.BusyIndicator;
@@ -56,6 +63,7 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DirectoryDialog;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
@@ -66,16 +74,18 @@
import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
import org.eclipse.wst.server.core.ServerCore;
import org.eclipse.wst.server.core.TaskModel;
+import org.eclipse.wst.server.core.internal.IInstallableRuntime;
+import org.eclipse.wst.server.core.internal.ServerPlugin;
+import org.eclipse.wst.server.ui.internal.wizard.TaskWizard;
+import org.eclipse.wst.server.ui.internal.wizard.fragment.LicenseWizardFragment;
import org.eclipse.wst.server.ui.wizard.IWizardHandle;
import org.eclipse.wst.server.ui.wizard.WizardFragment;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.bean.JBossServerType;
import org.jboss.ide.eclipse.as.core.server.bean.ServerBeanLoader;
import org.jboss.ide.eclipse.as.core.server.internal.AbstractLocalJBossServerRuntime;
-import org.jboss.ide.eclipse.as.core.server.internal.LocalJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.util.FileUtil;
import org.jboss.ide.eclipse.as.core.util.IConstants;
-import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
import org.jboss.ide.eclipse.as.core.util.RuntimeUtils;
import org.jboss.ide.eclipse.as.ui.IPreferenceKeys;
import org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin;
@@ -100,6 +110,7 @@
protected int jreComboIndex;
protected Button homeDirButton, jreButton;
protected Composite nameComposite, homeDirComposite, jreComposite;
+ protected Button downloadAndInstallButton;
protected String name, homeDir;
// Configuration stuff
@@ -334,6 +345,12 @@
homeDirButton = new Button(homeDirComposite, SWT.NONE);
homeDirButton.setText(Messages.browse);
+ downloadAndInstallButton = new Button(homeDirComposite, SWT.NONE);
+ downloadAndInstallButton.setText(Messages.rwf_DownloadRuntime);
+ downloadAndInstallButton.addSelectionListener(new DownloadAndInstallListener());
+ final IInstallableRuntime ir = ServerPlugin.findInstallableRuntime(getRuntimeType().getId());
+ downloadAndInstallButton.setEnabled(ir != null);
+
// Add listeners
homeDirText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
@@ -354,23 +371,82 @@
});
// Set Layout Data
- FormData labelData = new FormData();
- FormData textData = new FormData();
- FormData buttonData = new FormData();
+ homeDirLabel.setLayoutData(UIUtil.createFormData2(null,0,homeDirText,-5,0,5,null,0));
+ homeDirText.setLayoutData(UIUtil.createFormData2(homeDirLabel,5,null,0,0,5,homeDirButton,-5));
+ homeDirButton.setLayoutData(UIUtil.createFormData2(homeDirLabel,5,null,0,null,0,100,0));
+ downloadAndInstallButton.setLayoutData(UIUtil.createFormData2(0,0,homeDirButton,-5,null,0,100,-5));
+ }
- labelData.left = new FormAttachment(0, 0);
- homeDirLabel.setLayoutData(labelData);
-
- textData.left = new FormAttachment(0, 5);
- textData.right = new FormAttachment(homeDirButton, -5);
- textData.top = new FormAttachment(homeDirLabel, 5);
- homeDirText.setLayoutData(textData);
-
- buttonData.top = new FormAttachment(homeDirLabel, 5);
- buttonData.right = new FormAttachment(100, 0);
- homeDirButton.setLayoutData(buttonData);
+ protected class DownloadAndInstallListener extends SelectionAdapter {
+ public void widgetSelected(SelectionEvent se) {
+ downloadAndInstallButton.setEnabled(false);
+ String license = null;
+ final IInstallableRuntime ir = ServerPlugin.findInstallableRuntime(getRuntimeType().getId());
+
+ try {
+ license = ir.getLicense(new NullProgressMonitor());
+ } catch (CoreException e) {
+ }
+ TaskModel taskModel = new TaskModel();
+ taskModel.putObject(LicenseWizardFragment.LICENSE, license);
+ TaskWizard wizard2 = new TaskWizard(Messages.rwf_DownloadAndInstallRuntimeWizard, new WizardFragment() {
+ protected void createChildFragments(List list) {
+ list.add(new LicenseWizardFragment());
+ }
+ }, taskModel);
+
+ WizardDialog dialog2 = new WizardDialog(downloadAndInstallButton.getShell(), wizard2);
+ if (dialog2.open() == Window.CANCEL) {
+ downloadAndInstallButton.setEnabled(true);
+ return;
+ }
+ DirectoryDialog dialog = new DirectoryDialog(downloadAndInstallButton.getShell());
+ dialog.setMessage(Messages.rwf_DownloadServerFileChooser);
+ dialog.setFilterPath(homeDirText.getText());
+ String selectedDirectory = dialog.open();
+ if (selectedDirectory != null) {
+// ir.install(new Path(selectedDirectory));
+ final IPath installPath = new Path(selectedDirectory);
+ final Job installRuntimeJob = new Job(
+ NLS.bind(Messages.rwf_InstallingRuntimeJob, getRuntimeType().getName())) {
+ public boolean belongsTo(Object family) {
+ return ServerPlugin.PLUGIN_ID.equals(family);
+ }
+
+ protected IStatus run(IProgressMonitor monitor) {
+ try {
+ ir.install(installPath, monitor);
+ } catch (CoreException ce) {
+ return ce.getStatus();
+ }
+
+ return Status.OK_STATUS;
+ }
+ };
+
+ homeDirText.setText(selectedDirectory);
+ JobChangeAdapter jobListener = new JobChangeAdapter() {
+ public void done(IJobChangeEvent event) {
+ installRuntimeJob.removeJobChangeListener(this);
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ if( !downloadAndInstallButton.isDisposed())
+ downloadAndInstallButton.setEnabled(true);
+ }
+ });
+ }
+ };
+ installRuntimeJob.addJobChangeListener(jobListener);
+ installRuntimeJob.schedule();
+ handle.setMessage(Messages.rwf_DownloadingMayTakeLongTime, IMessageProvider.WARNING);
+ MessageDialog.openWarning(downloadAndInstallButton.getShell(), Messages.rwf_InstallingASTitle,
+ NLS.bind(Messages.rwf_DownloadingMayTakeLongTime, selectedDirectory));
+ ((TitleAreaDialog)((IWizardPage)handle).getWizard().getContainer()).close();
+ }
+ }
}
-
+
+
protected void createJREComposite(Composite main) {
// Create our composite
jreComposite = new Composite(main, SWT.NONE);
Modified: trunk/as/plugins/org.jboss.tools.runtime.as.detector/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.tools.runtime.as.detector/plugin.xml 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/as/plugins/org.jboss.tools.runtime.as.detector/plugin.xml 2012-09-11 10:20:57 UTC (rev 43583)
@@ -16,17 +16,53 @@
<extension
point="org.jboss.tools.runtime.core.downloadruntimes">
<runtime
+ id="org.jboss.tools.runtime.core.as.328"
+ name="JBoss AS 3.2.8"
+ version="3.2.8"
+ size="100MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ url="http://repository.jboss.org/sourceforge/jboss-3.2.8.SP1.zip"
+ disclaimer="true"/>
+ <runtime
+ id="org.jboss.tools.runtime.core.as.405"
+ name="JBoss AS 4.0.5"
+ version="4.0.5"
+ size="100MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ url="http://repository.jboss.org/sourceforge/jboss-4.0.5.GA.zip"
+ disclaimer="true"/>
+ <runtime
id="org.jboss.tools.runtime.core.as.423"
name="JBoss AS 4.2.3"
version="4.2.3"
size="100MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
url="http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/jboss-4...."
disclaimer="true"/>
+
<runtime
+ id="org.jboss.tools.runtime.core.as.501"
+ name="JBoss AS 5.0.1"
+ version="5.0.1"
+ size="100MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ url="http://repository.jboss.org/sourceforge/jboss-5.0.1.GA.zip"
+ disclaimer="true"/>
+ <runtime
+ id="org.jboss.tools.runtime.core.as.510"
+ name="JBoss AS 5.1.0"
+ version="5.1.0"
+ size="100MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ url="http://repository.jboss.org/sourceforge/jboss-5.1.0.GA.zip"
+ disclaimer="true"/>
+
+ <runtime
id="org.jboss.tools.runtime.core.as.610"
name="JBoss AS 6.1.0"
version="6.1.0.Final"
size="183MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
url="http://download.jboss.org/jbossas/6.1/jboss-as-distribution-6.1.0.Final.z..."
disclaimer="true"/>
<runtime
@@ -34,6 +70,7 @@
name="JBoss AS 7.0.1 Everything (NOT Java EE6 Certified)"
version="7.0.1.Final"
size="74MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
url="http://download.jboss.org/jbossas/7.0/jboss-as-7.0.1.Final/jboss-as-7.0.1..."
disclaimer="true"/>
<runtime
@@ -41,6 +78,7 @@
name="JBoss AS 7.0.2 Everything (NOT Java EE6 Certified)"
version="7.0.2.Final"
size="75MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
url="http://download.jboss.org/jbossas/7.0/jboss-as-7.0.2.Final/jboss-as-7.0.2..."
disclaimer="true"/>
<runtime
@@ -48,6 +86,7 @@
name="JBoss AS 7.1.1 Certified Java EE 6 Full Profile"
version="7.1.1.Final"
size="127MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
url="http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1..."
disclaimer="true"/>
<runtime
@@ -55,7 +94,55 @@
name="JBoss AS 7.1.0 Certified Java EE 6 Full Profile"
version="7.1.0.Final"
size="100MB"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
url="http://download.jboss.org/jbossas/7.1/jboss-as-7.1.0.Final/jboss-as-7.1.0..."
disclaimer="true"/>
</extension>
+
+
+
+ <!-- Another set of hugely verbose and unnecessary xml for downloading remote jboss-as installations -->
+ <extension point="org.eclipse.wst.server.core.installableRuntimes">
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.32"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://repository.jboss.org/sourceforge/jboss-3.2.8.SP1.zip"
+ archivePath="jboss-3.2.8.SP1.zip"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.40"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://repository.jboss.org/sourceforge/jboss-4.0.5.GA.zip"
+ archivePath="jboss-4.0.5.GA"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.42"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://repository.jboss.org/sourceforge/jboss-4.2.3.GA.zip"
+ archivePath="jboss-4.2.3.GA"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.50"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://repository.jboss.org/sourceforge/jboss-5.0.1.GA.zip"
+ archivePath="jboss-5.0.1.GA"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.51"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://repository.jboss.org/sourceforge/jboss-5.1.0.GA.zip"
+ archivePath="jboss-5.1.0.GA"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.60"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://download.jboss.org/jbossas/6.1/jboss-as-distribution-6.1.0.Final.zip"
+ archivePath="jboss-6.1.0.Final"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.70"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://download.jboss.org/jbossas/7.0/jboss-as-7.0.2.Final/jboss-as-web-7..."
+ archivePath="jboss-as-7.0.2.Final"/>
+ <runtime
+ id="org.jboss.ide.eclipse.as.runtime.71"
+ licenseUrl="http://www.gnu.org/licenses/lgpl-2.1.txt"
+ archiveUrl="http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1..."
+ archivePath="jboss-as-7.1.1.Final"/>
+ </extension>
+
</plugin>
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/schema/downloadruntimes.exsd 2012-09-11 10:20:57 UTC (rev 43583)
@@ -1,134 +1,141 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.jboss.tools.runtime.core" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.jboss.tools.runtime.core" id="downloadruntimes" name="Download Runtimes"/>
- </appInfo>
- <documentation>
- Downloads a new Runtime
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appInfo>
- <meta.element />
- </appInfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="runtime" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="runtime">
- <complexType>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="version" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="url" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="size" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="disclaimer" type="boolean">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- 3.0.0
- </documentation>
- </annotation>
-
-
- <annotation>
- <appInfo>
- <meta.section type="apiinfo"/>
- </appInfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="implementation"/>
- </appInfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
- JBoss by Red Hat
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.runtime.core" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.jboss.tools.runtime.core" id="downloadruntimes" name="Download Runtimes"/>
+ </appinfo>
+ <documentation>
+ Downloads a new Runtime
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="runtime" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="runtime">
+ <complexType>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="version" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="url" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="size" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="disclaimer" type="boolean">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="licenseURL" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ 3.0.0
+ </documentation>
+ </annotation>
+
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="copyright"/>
+ </appinfo>
+ <documentation>
+ JBoss by Red Hat
+ </documentation>
+ </annotation>
+
+</schema>
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal/RuntimeExtensionManager.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal/RuntimeExtensionManager.java 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal/RuntimeExtensionManager.java 2012-09-11 10:20:57 UTC (rev 43583)
@@ -50,6 +50,7 @@
private static final String URL = "url"; //$NON-NLS-1$
private static final String DISCLAIMER = "disclaimer"; //$NON-NLS-1$
+ private static final String LICENSE_URL = "licenseUrl";//$NON-NLS-1$
private static final String VERSION = "version";
private static final String NAME = "name";
private static final String PREFERENCE_ID = "preferenceId";
@@ -257,7 +258,11 @@
String version = configurationElement.getAttribute(VERSION);
String url = configurationElement.getAttribute(URL);
String disclaimer = configurationElement.getAttribute(DISCLAIMER);
+ String licenseURL = configurationElement.getAttribute(LICENSE_URL);
DownloadRuntime downloadRuntime = new DownloadRuntime(id, name, version, url);
+ if( licenseURL != null ) {
+ downloadRuntime.setLicenseURL(licenseURL);
+ }
if (Boolean.FALSE.toString().equals(disclaimer)) {
downloadRuntime.setDisclaimer(false);
}
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/DownloadRuntime.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/DownloadRuntime.java 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/DownloadRuntime.java 2012-09-11 10:20:57 UTC (rev 43583)
@@ -10,16 +10,32 @@
************************************************************************************/
package org.jboss.tools.runtime.core.model;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.SubMonitor;
+import org.eclipse.osgi.util.NLS;
+import org.jboss.tools.runtime.core.RuntimeCoreActivator;
+
/**
*
* @author snjeza
*
*/
public class DownloadRuntime {
+ private byte[] BUFFER = null;
private String name;
private String id;
private String version;
private String url;
+ private String licenseURL;
private boolean disclaimer = true;
public DownloadRuntime(String id, String name, String version, String url) {
@@ -93,5 +109,49 @@
public void setDisclaimer(boolean disclaimer) {
this.disclaimer = disclaimer;
}
+
+ public void setLicenseURL(String url) {
+ this.licenseURL = url;
+ }
+ /*
+ * @see IInstallableRuntime#getLicense(IProgressMonitor)
+ */
+ public String getLicense(IProgressMonitor monitor) throws CoreException {
+ URL url = null;
+ ByteArrayOutputStream out = null;
+ try {
+ if (licenseURL == null)
+ return null;
+
+ url = new URL(licenseURL);
+ InputStream in = url.openStream();
+ out = new ByteArrayOutputStream();
+ copyWithSize(in, out, null, 0);
+ return new String(out.toByteArray());
+ } catch (Exception e) {
+ throw new CoreException(new Status(IStatus.ERROR,
+ RuntimeCoreActivator.PLUGIN_ID, 0,
+ NLS.bind("Unable to fetch license for {0}", e.getLocalizedMessage()), e));
+ } finally {
+ try {
+ if (out != null)
+ out.close();
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ }
+
+ private void copyWithSize(InputStream in, OutputStream out, IProgressMonitor monitor, int size) throws IOException {
+ if (BUFFER == null)
+ BUFFER = new byte[8192];
+ SubMonitor progress = SubMonitor.convert(monitor, size);
+ int r = in.read(BUFFER);
+ while (r >= 0) {
+ out.write(BUFFER, 0, r);
+ progress.worked(r);
+ r = in.read(BUFFER);
+ }
+ }
}
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.ui/META-INF/MANIFEST.MF 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/META-INF/MANIFEST.MF 2012-09-11 10:20:57 UTC (rev 43583)
@@ -14,7 +14,9 @@
org.eclipse.ecf;bundle-version="3.1.300",
org.eclipse.equinox.security;bundle-version="1.1.100",
org.eclipse.equinox.p2.core;bundle-version="2.2.0",
- org.jboss.tools.common.core;bundle-version="3.4.0"
+ org.jboss.tools.common.core;bundle-version="3.4.0",
+ org.eclipse.wst.server.ui;bundle-version="1.4.0",
+ org.eclipse.wst.server.core;bundle-version="1.4.0"
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/download/DownloadRuntimeViewerDialog.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/download/DownloadRuntimeViewerDialog.java 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/download/DownloadRuntimeViewerDialog.java 2012-09-11 10:20:57 UTC (rev 43583)
@@ -12,8 +12,11 @@
import java.util.Arrays;
import java.util.Comparator;
+import java.util.List;
import java.util.Map;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.viewers.ColumnLabelProvider;
@@ -28,6 +31,8 @@
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -35,6 +40,10 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
+import org.eclipse.wst.server.core.TaskModel;
+import org.eclipse.wst.server.ui.internal.wizard.TaskWizard;
+import org.eclipse.wst.server.ui.internal.wizard.fragment.LicenseWizardFragment;
+import org.eclipse.wst.server.ui.wizard.WizardFragment;
import org.jboss.tools.runtime.core.RuntimeCoreActivator;
import org.jboss.tools.runtime.core.model.DownloadRuntime;
import org.jboss.tools.runtime.ui.dialogs.AutoResizeTableLayout;
@@ -198,13 +207,41 @@
Object object = structuredSelection.getFirstElement();
if (object instanceof DownloadRuntime) {
DownloadRuntime downloadRuntime = (DownloadRuntime) object;
- DownloadRuntimeDialog dialog = new DownloadRuntimeDialog(getShell(), downloadRuntime);
- dialog.open();
+ if( licenseApproved(downloadRuntime)) {
+ DownloadRuntimeDialog dialog = new DownloadRuntimeDialog(getShell(), downloadRuntime);
+ dialog.open();
+ }
}
}
super.okPressed();
}
+
+ private boolean licenseApproved(DownloadRuntime downloadRuntime) {
+ String license = null;
+ try {
+ license = downloadRuntime.getLicense(new NullProgressMonitor());
+ System.out.println(license);
+ } catch(CoreException ce) {
+ ce.printStackTrace();
+ }
+ if( license != null ) {
+ TaskModel taskModel = new TaskModel();
+ taskModel.putObject(LicenseWizardFragment.LICENSE, license);
+ TaskWizard wizard2 = new TaskWizard("Download and Install Runtime", new WizardFragment() {
+ protected void createChildFragments(List list) {
+ list.add(new LicenseWizardFragment());
+ }
+ }, taskModel);
+
+ WizardDialog dialog2 = new WizardDialog(viewer.getTable().getShell(), wizard2);
+ if (dialog2.open() == Window.CANCEL) {
+ return false;
+ }
+ }
+ return true;
+ }
+
@Override
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-11 09:44:44 UTC (rev 43582)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-11 10:20:57 UTC (rev 43583)
@@ -345,17 +345,13 @@
final IDownloadRuntimes downloader = getDownloader();
downloadButton.setEnabled(downloader != null);
- downloadButton.addSelectionListener(new SelectionListener(){
+ downloadButton.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
HashMap<String, Object> data = new HashMap<String, Object>();
data.put(DownloadRuntimes.SHELL, getShell());
downloader.execute(data);
}
-
- public void widgetDefaultSelected(SelectionEvent e) {
-
- }
});
viewer.addSelectionChangedListener(new ISelectionChangedListener() {
13 years, 3 months
JBoss Tools SVN: r43582 - branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-11 05:44:44 -0400 (Tue, 11 Sep 2012)
New Revision: 43582
Added:
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java
Modified:
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java
Log:
[JBIDE-12142] extracted viewer refresh to UIJob
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java 2012-09-11 09:43:13 UTC (rev 43581)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java 2012-09-11 09:44:44 UTC (rev 43582)
@@ -95,7 +95,7 @@
}
}
} finally {
- refreshViewer();
+ RefreshViewerJob.refresh(viewer);
monitor.done();
}
@@ -123,17 +123,4 @@
private boolean isApplication(Object selection) {
return selection instanceof IApplication;
}
-
- private void refreshViewer() {
- if (viewer == null) {
- return;
- }
- Display.getDefault().asyncExec(new Runnable() {
- @Override
- public void run() {
- viewer.refresh();
- }
- });
- }
-
}
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java 2012-09-11 09:43:13 UTC (rev 43581)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java 2012-09-11 09:44:44 UTC (rev 43582)
@@ -98,6 +98,7 @@
}
} finally {
monitor.done();
+ RefreshViewerJob.refresh(viewer);
}
}
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java 2012-09-11 09:43:13 UTC (rev 43581)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java 2012-09-11 09:44:44 UTC (rev 43582)
@@ -44,7 +44,7 @@
EmbedCartridgeWizard wizard = new EmbedCartridgeWizard(application, user);
int result = WizardUtils.openWizardDialog(wizard, Display.getCurrent().getActiveShell());
if(result == Dialog.OK) {
- viewer.refresh(application);
+ RefreshViewerJob.refresh(viewer);
}
} catch (OpenShiftException e) {
Logger.error("Failed to edit cartridges", e);
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java 2012-09-11 09:43:13 UTC (rev 43581)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java 2012-09-11 09:44:44 UTC (rev 43582)
@@ -15,7 +15,6 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.viewers.ITreeSelection;
-import org.eclipse.swt.widgets.Display;
import org.jboss.tools.openshift.express.internal.core.console.UserDelegate;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftImages;
import org.jboss.tools.openshift.express.internal.ui.messages.OpenShiftExpressUIMessages;
@@ -61,11 +60,7 @@
}
//List<IApplication> applications = user.getApplications();
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- viewer.refresh(element);
- }
- });
+ RefreshViewerJob.refresh(viewer);
} catch (OpenShiftException e) {
Logger.error("Failed to refresh element", e);
} finally {
Added: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java (rev 0)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java 2012-09-11 09:44:44 UTC (rev 43582)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.openshift.express.internal.ui.action;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.ui.progress.UIJob;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class RefreshViewerJob extends UIJob {
+
+ private StructuredViewer viewer;
+
+ public RefreshViewerJob(StructuredViewer viewer) {
+ super("Refreshing viewer...");
+ this.viewer = viewer;
+ }
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ viewer.refresh();
+ return Status.OK_STATUS;
+ }
+
+ public static void refresh(StructuredViewer viewer) {
+ new RefreshViewerJob(viewer).schedule();
+ }
+}
Property changes on: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 3 months
JBoss Tools SVN: r43581 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-11 05:43:13 -0400 (Tue, 11 Sep 2012)
New Revision: 43581
Added:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java
Log:
[JBIDE-12142] extracted viewer refresh to UIJob
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java 2012-09-11 09:41:16 UTC (rev 43580)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteApplicationAction.java 2012-09-11 09:43:13 UTC (rev 43581)
@@ -95,7 +95,7 @@
}
}
} finally {
- refreshViewer();
+ RefreshViewerJob.refresh(viewer);
monitor.done();
}
@@ -123,17 +123,4 @@
private boolean isApplication(Object selection) {
return selection instanceof IApplication;
}
-
- private void refreshViewer() {
- if (viewer == null) {
- return;
- }
- Display.getDefault().asyncExec(new Runnable() {
- @Override
- public void run() {
- viewer.refresh();
- }
- });
- }
-
}
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java 2012-09-11 09:41:16 UTC (rev 43580)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/DeleteDomainAction.java 2012-09-11 09:43:13 UTC (rev 43581)
@@ -98,8 +98,8 @@
}
} finally {
monitor.done();
+ RefreshViewerJob.refresh(viewer);
}
-
}
};
job.setPriority(Job.SHORT);
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java 2012-09-11 09:41:16 UTC (rev 43580)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/EditCartridgesAction.java 2012-09-11 09:43:13 UTC (rev 43581)
@@ -44,7 +44,7 @@
EmbedCartridgeWizard wizard = new EmbedCartridgeWizard(application, user);
int result = WizardUtils.openWizardDialog(wizard, Display.getCurrent().getActiveShell());
if(result == Dialog.OK) {
- viewer.refresh(application);
+ RefreshViewerJob.refresh(viewer);
}
} catch (OpenShiftException e) {
Logger.error("Failed to edit cartridges", e);
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java 2012-09-11 09:41:16 UTC (rev 43580)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshElementAction.java 2012-09-11 09:43:13 UTC (rev 43581)
@@ -15,7 +15,6 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.viewers.ITreeSelection;
-import org.eclipse.swt.widgets.Display;
import org.jboss.tools.openshift.express.internal.core.console.UserDelegate;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftImages;
import org.jboss.tools.openshift.express.internal.ui.messages.OpenShiftExpressUIMessages;
@@ -61,11 +60,7 @@
}
//List<IApplication> applications = user.getApplications();
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- viewer.refresh(element);
- }
- });
+ RefreshViewerJob.refresh(viewer);
} catch (OpenShiftException e) {
Logger.error("Failed to refresh element", e);
} finally {
Added: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java (rev 0)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java 2012-09-11 09:43:13 UTC (rev 43581)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.openshift.express.internal.ui.action;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.ui.progress.UIJob;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class RefreshViewerJob extends UIJob {
+
+ private StructuredViewer viewer;
+
+ public RefreshViewerJob(StructuredViewer viewer) {
+ super("Refreshing viewer...");
+ this.viewer = viewer;
+ }
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ viewer.refresh();
+ return Status.OK_STATUS;
+ }
+
+ public static void refresh(StructuredViewer viewer) {
+ new RefreshViewerJob(viewer).schedule();
+ }
+}
Property changes on: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/RefreshViewerJob.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 3 months
JBoss Tools SVN: r43580 - in branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal: ui/wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-11 05:41:16 -0400 (Tue, 11 Sep 2012)
New Revision: 43580
Modified:
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
Log:
[JBIDE-12142] replaced erroneous UserModel#addUser where the intent was to have the view refreshing a user. Replaced call to UserModel#addUser by UserModel#fireUserChanged
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java 2012-09-11 09:40:32 UTC (rev 43579)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java 2012-09-11 09:41:16 UTC (rev 43580)
@@ -92,6 +92,10 @@
fireModelChange(user, ADDED);
}
+ public void fireUserChanged(UserDelegate user) {
+ fireModelChange(user, CHANGED);
+ }
+
public void removeUser(UserDelegate user) {
allUsers.remove(user.getUsername());
if (this.recentUser == user)
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java 2012-09-11 09:40:32 UTC (rev 43579)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java 2012-09-11 09:41:16 UTC (rev 43580)
@@ -189,8 +189,6 @@
public boolean setUseExistingApplication(boolean useExistingApplication);
- public void addUserToModel();
-
public Set<IEmbeddableCartridge> setSelectedEmbeddableCartridges(
Set<IEmbeddableCartridge> selectedEmbeddableCartridges);
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java 2012-09-11 09:40:32 UTC (rev 43579)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java 2012-09-11 09:41:16 UTC (rev 43580)
@@ -164,8 +164,8 @@
boolean success = importProject();
- wizardModel.addUserToModel();
-
+ wizardModel.refreshUser();
+
return success;
}
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-09-11 09:40:32 UTC (rev 43579)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-09-11 09:41:16 UTC (rev 43580)
@@ -478,11 +478,10 @@
setServerType(ServerCore.findServerType(ExpressServerUtils.OPENSHIFT_SERVER_TYPE));
}
- @Override
- public void addUserToModel() {
+ public void refreshUser() {
UserDelegate user = getUser();
Assert.isNotNull(user);
- UserModel.getDefault().addUser(user);
+ UserModel.getDefault().fireUserChanged(user);
}
}
\ No newline at end of file
13 years, 3 months
JBoss Tools SVN: r43579 - in trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal: ui/wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-11 05:40:32 -0400 (Tue, 11 Sep 2012)
New Revision: 43579
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
Log:
[JBIDE-12142] replaced erroneous UserModel#addUser where the intent was to have the view refreshing a user. Replaced call to UserModel#addUser by UserModel#fireUserChanged
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java 2012-09-11 09:39:29 UTC (rev 43578)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/console/UserModel.java 2012-09-11 09:40:32 UTC (rev 43579)
@@ -92,6 +92,10 @@
fireModelChange(user, ADDED);
}
+ public void fireUserChanged(UserDelegate user) {
+ fireModelChange(user, CHANGED);
+ }
+
public void removeUser(UserDelegate user) {
allUsers.remove(user.getUsername());
if (this.recentUser == user)
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java 2012-09-11 09:39:29 UTC (rev 43578)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftExpressWizardModel.java 2012-09-11 09:40:32 UTC (rev 43579)
@@ -193,8 +193,6 @@
public boolean setUseExistingApplication(boolean useExistingApplication);
- public void addUserToModel();
-
public Set<IEmbeddableCartridge> setSelectedEmbeddableCartridges(
Set<IEmbeddableCartridge> selectedEmbeddableCartridges);
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java 2012-09-11 09:39:29 UTC (rev 43578)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java 2012-09-11 09:40:32 UTC (rev 43579)
@@ -152,8 +152,8 @@
boolean success = importProject();
- wizardModel.addUserToModel();
-
+ wizardModel.fireUserChanged();
+
return success;
}
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-09-11 09:39:29 UTC (rev 43578)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-09-11 09:40:32 UTC (rev 43579)
@@ -10,7 +10,6 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jgit.api.errors.GitAPIException;
@@ -480,11 +479,8 @@
setServerType(ServerCore.findServerType(ExpressServerUtils.OPENSHIFT_SERVER_TYPE));
}
- @Override
- public void addUserToModel() {
- UserDelegate user = getUser();
- Assert.isNotNull(user);
- UserModel.getDefault().addUser(user);
+ public void fireUserChanged() {
+ UserModel.getDefault().fireUserChanged(getUser());
}
}
\ No newline at end of file
13 years, 3 months
JBoss Tools SVN: r43578 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2012-09-11 05:39:29 -0400 (Tue, 11 Sep 2012)
New Revision: 43578
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
Log:
https://issues.jboss.org/browse/JBIDE-7692 - fix for empty text nodes in selection bar.
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-09-11 08:22:31 UTC (rev 43577)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2012-09-11 09:39:29 UTC (rev 43578)
@@ -351,9 +351,10 @@
&& (node.getNodeType() == Node.ELEMENT_NODE
|| node.getNodeType() == Node.COMMENT_NODE
|| node.getNodeType() == Node.ATTRIBUTE_NODE
- || node.getNodeType() == Node.TEXT_NODE)) {
+ || (node.getNodeType() == Node.TEXT_NODE
+ && node.getNodeValue().trim().length() > 0))) {
+
addNodeListenerTo(node);
-
/*
* If there is no DDM -- item will be added to line
*/
@@ -364,7 +365,8 @@
for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i);
if ((child.getNodeType() == Node.ELEMENT_NODE)
- || (child.getNodeType() == Node.TEXT_NODE)) {
+ || (child.getNodeType() == Node.TEXT_NODE
+ && child.getNodeValue().trim().length() > 0)) {
list.add(child);
}
}
13 years, 3 months
JBoss Tools SVN: r43577 - in trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test: META-INF and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: psuchy
Date: 2012-09-11 04:22:31 -0400 (Tue, 11 Sep 2012)
New Revision: 43577
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/META-INF/MANIFEST.MF
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/pom.xml
Log:
mavenization - edit pom.xml
Modified: trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/META-INF/MANIFEST.MF 2012-09-11 07:21:40 UTC (rev 43576)
+++ trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/META-INF/MANIFEST.MF 2012-09-11 08:22:31 UTC (rev 43577)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Runtime Test
Bundle-SymbolicName: org.jboss.tools.runtime.as.ui.bot.test;singleton:=true
-Bundle-Version: 1.3.0.qualifier
+Bundle-Version: 2.0.0.qualifier
Bundle-ActivationPolicy: lazy
Bundle-Vendor:
JBoss by Red Hat
@@ -17,6 +17,7 @@
org.jboss.tools.ui.bot.ext;bundle-version="1.0.0",
org.hamcrest;bundle-version="1.1.0",
org.jboss.tools.runtime.core,
- org.jboss.tools.runtime.ui;bundle-version="1.3.0"
-Import-Package: org.jboss.tools.common.util
+ org.jboss.tools.runtime.ui;bundle-version="1.3.0",
+ org.jboss.tools.common
+
Modified: trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/pom.xml
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/pom.xml 2012-09-11 07:21:40 UTC (rev 43576)
+++ trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/pom.xml 2012-09-11 08:22:31 UTC (rev 43577)
@@ -5,7 +5,7 @@
<parent>
<groupId>org.jboss.tools.runtime</groupId>
<artifactId>tests</artifactId>
- <version>1.3.0-SNAPSHOT</version>
+ <version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>org.jboss.tools.runtime.as.ui.bot.test</groupId>
<artifactId>org.jboss.tools.runtime.as.ui.bot.test</artifactId>
@@ -17,7 +17,7 @@
<jboss-as-7>${requirementsDirectory}/jboss-as-7.1.1.Final/</jboss-as-7>
<jboss-seam-2.2>${requirementsDirectory}/jboss-seam-2.2.2.Final/</jboss-seam-2.2>
<jboss-seam-2.3>${requirementsDirectory}/jboss-seam-2.3.0.Beta1/</jboss-seam-2.3>
- <test.class>org.jboss.tools.runtime.as.ui.bot.test.ProjectTestsSuite/</test.class>
+ <test.class>org.jboss.tools.runtime.as.ui.bot.test.ProjectTestsSuite</test.class>
<additionalSystemProperties></additionalSystemProperties>
<systemProperties>${additionalSystemProperties}</systemProperties>
</properties>
13 years, 3 months