JBoss Tools SVN: r44017 - trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-09-25 14:36:56 -0400 (Tue, 25 Sep 2012)
New Revision: 44017
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12716 - Remove button does not work properly
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-25 18:25:31 UTC (rev 44016)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-25 18:36:56 UTC (rev 44017)
@@ -400,7 +400,7 @@
System.arraycopy(runtimePaths, 0, newRuntimePaths, 0, runtimePaths.length);
newRuntimePaths[runtimePaths.length] = runtimePath;
runtimePaths = newRuntimePaths;
- runtimePathViewer.setInput(runtimePath);
+ runtimePathViewer.setInput(runtimePaths);
runtimePathViewer.refresh();
}
12 years, 3 months
JBoss Tools SVN: r44016 - trunk/documentation/whatsnew/usage.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-25 14:25:31 -0400 (Tue, 25 Sep 2012)
New Revision: 44016
Modified:
trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html
Log:
[JBIDE-12670] create N&N for usage
Modified: trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html
===================================================================
--- trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html 2012-09-25 18:22:43 UTC (rev 44015)
+++ trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html 2012-09-25 18:25:31 UTC (rev 44016)
@@ -20,7 +20,7 @@
</script></head>
<body>
-<h1>What's New Usage Reporting 4.0.0.Alpha2</h1>
+<h1><span>Usage Reporting 4.0.0.Alpha2 What's New</span></h1>
<p align="right">
<a href="../index.html">< Main Index</a>
12 years, 3 months
JBoss Tools SVN: r44015 - trunk/documentation/whatsnew.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-25 14:22:43 -0400 (Tue, 25 Sep 2012)
New Revision: 44015
Modified:
trunk/documentation/whatsnew/index.html
Log:
[JBIDE-12669] corrected link to openshift
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2012-09-25 18:21:13 UTC (rev 44014)
+++ trunk/documentation/whatsnew/index.html 2012-09-25 18:22:43 UTC (rev 44015)
@@ -52,7 +52,7 @@
<td valign="top" align="left">
<p align="right"><b>4.0.0.Alpha2</b>
<td valign="top">
- <p><a href="openshift/openshift-news-4.0.0.Alpha2.html">OpenShift Tools</a></p>
+ <p><a href="openshift/openshift-news-2.4.0.Alpha2.html">OpenShift Tools</a></p>
<p><a href="usage/usage-news-4.0.0.Alpha2.html">Usage</a></p>
</td>
</tr>
12 years, 3 months
JBoss Tools SVN: r44014 - trunk/documentation/whatsnew.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-25 14:21:13 -0400 (Tue, 25 Sep 2012)
New Revision: 44014
Modified:
trunk/documentation/whatsnew/index.html
Log:
[JBIDE-12669] created entry for JBoss Tools 4.0.0.Alpha2 in index.
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2012-09-25 18:17:51 UTC (rev 44013)
+++ trunk/documentation/whatsnew/index.html 2012-09-25 18:21:13 UTC (rev 44014)
@@ -50,6 +50,14 @@
<tr>
<td valign="top" align="left">
+ <p align="right"><b>4.0.0.Alpha2</b>
+ <td valign="top">
+ <p><a href="openshift/openshift-news-4.0.0.Alpha2.html">OpenShift Tools</a></p>
+ <p><a href="usage/usage-news-4.0.0.Alpha2.html">Usage</a></p>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
<p align="right"><b>4.0.0.Alpha1</b>
<td valign="top">
12 years, 3 months
JBoss Tools SVN: r44013 - trunk/documentation/whatsnew/usage.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-25 14:17:51 -0400 (Tue, 25 Sep 2012)
New Revision: 44013
Added:
trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html
Log:
[JBIDE-12670] create N&N for usage
Added: trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html
===================================================================
--- trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html (rev 0)
+++ trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html 2012-09-25 18:17:51 UTC (rev 44013)
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>What's New Usage Reporting 4.0.0.Alpha2</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>What's New Usage Reporting 4.0.0.Alpha2</h1>
+
+<p align="right">
+ <a href="../index.html">< Main Index</a>
+</p>
+<table border="0" cellpadding="10" cellspacing="0" width="100%">
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Reporting</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <a name="itemname3" id="itemname3"></a><b>JBoss Tools components</b>
+ </td>
+ <td valign="top" align="left">
+ Usage is looking at the JBoss Tools components installed to your Eclipse instance. With Alpha2 it will now
+ track and report OpenShift, Forge and JBoss Central.
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-12639">Related Jira</a>,
+ <a href="https://issues.jboss.org/browse/JBIDE-12640">Related Jira</a>,
+ <a href="https://issues.jboss.org/browse/JBIDE-12642">Related Jira</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr><td colspan="2"><hr></hr></td></tr>
+</table>
+</body>
+</html>
Property changes on: trunk/documentation/whatsnew/usage/usage-news-4.0.0.Alpha2.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 3 months
JBoss Tools SVN: r44012 - trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-09-25 13:34:51 -0400 (Tue, 25 Sep 2012)
New Revision: 44012
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12716 - Remove button does not work properly
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-25 17:00:53 UTC (rev 44011)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-25 17:34:51 UTC (rev 44012)
@@ -396,13 +396,11 @@
RuntimeUIActivator.launchSearchRuntimePathDialog(getShell(),
new RuntimePath[]{runtimePath}, true, 15);
configureSearch();
- //RuntimeUIActivator.getDefault().getModel().addRuntimePath(runtimePath);
- //runtimePaths = RuntimeUIActivator.getRuntimePaths();
- //runtimePathViewer.setInput(runtimePath.getRuntimeDefinitions());
RuntimePath[] newRuntimePaths = new RuntimePath[runtimePaths.length+1];
System.arraycopy(runtimePaths, 0, newRuntimePaths, 0, runtimePaths.length);
newRuntimePaths[runtimePaths.length] = runtimePath;
runtimePaths = newRuntimePaths;
+ runtimePathViewer.setInput(runtimePath);
runtimePathViewer.refresh();
}
12 years, 3 months
JBoss Tools SVN: r44011 - in trunk/documentation/whatsnew/openshift: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-25 13:00:53 -0400 (Tue, 25 Sep 2012)
New Revision: 44011
Added:
trunk/documentation/whatsnew/openshift/images/add-existing-key.png
trunk/documentation/whatsnew/openshift/images/add-new-key.png
trunk/documentation/whatsnew/openshift/images/create-domain.png
trunk/documentation/whatsnew/openshift/images/keys-management-wizard.png
trunk/documentation/whatsnew/openshift/images/manage-ssh-keys.png
trunk/documentation/whatsnew/openshift/images/no-keys.png
trunk/documentation/whatsnew/openshift/openshift-news-2.4.0.Alpha2.html
Log:
[JBIDE-12688] wrote N&N for OpenShift
Added: trunk/documentation/whatsnew/openshift/images/add-existing-key.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/add-existing-key.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/images/add-new-key.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/add-new-key.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/images/create-domain.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/create-domain.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/images/keys-management-wizard.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/keys-management-wizard.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/images/manage-ssh-keys.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/manage-ssh-keys.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/images/no-keys.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/no-keys.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/openshift-news-2.4.0.Alpha2.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.4.0.Alpha2.html (rev 0)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.4.0.Alpha2.html 2012-09-25 17:00:53 UTC (rev 44011)
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>OpenShift Tools 2.4.0.Alpha2 What's New</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>OpenShift 2.4.0.Alpha2 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../as/as-news-4.0.0.Alpha2.html">Server Tools
+ ></a></p>
+ <table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>General</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b>"Commit and Push" contributed to EGit</b>
+ </td>
+ <td valign="top" align="left">
+ Prior versions of JBoss Tools for OpenShift added a "Commit and Push" action to the git context menu.
+ We now removed this and contributed this functionality to the commit dialog in Eclipse EGit.
+ You can read about it in the <a href="http://wiki.eclipse.org/EGit/New_and_Noteworthy/2.1#One-click_Commit_and_...">EGit 2.1 New and Noteworthy</a>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-12543">Related Jira</a>,
+ <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=330048">EGit commit dialog</a>,
+ <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=388913">EGit staging view</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b>EGit repo corruption fixed</b>
+ </td>
+ <td valign="top" align="left">
+ We discovered a problem where EGit was corrupting a git repository. The corruption occurred if you deleted a git-shared project
+ and created a new project and git repository with the very same name.
+ We contributed the fix to EGit and it'll be available in EGit 2.1.
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-12150">Related Jira</a>,
+ <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=387617">Related Eclipse bugzilla</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>OpenShift Domain wizard</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b>Separated keys from domain creation</b>
+ </td>
+ <td valign="top" align="left">
+ So far you had to provide your SSH when you created your domain. This was far from ideal since there was no way to add keys
+ once you had your domain. We now provide a whole new wizard that is dedicated to managing your OpenShift keys.
+ If you now create a domain you will only have to choose a name for it. There's no choosing a key any more.<br>
+ A link in the bottom of the domain wizard allows you to get to the keys management wizard.
+ <p>
+ <img src="images/create-domain.png" alt="create a new domain" />
+ </p>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-11912">Related Jira</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>OpenShift application wizard</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b>Can't create if no public keys</b>
+ </td>
+ <td valign="top" align="left">
+ We'll check if you have any public SSH keys on OpenShift once you're up to create a new OpenShift application.
+ We'll display an error if you haven't. A link allows you to get to the SSH management wizard where you can
+ create and add the required key(s).
+ <p>
+ <img src="images/no-keys.png" alt="no ssh public key" />
+ </p>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-11912">Related Jira</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>SSH Keys Management wizard</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b>New SSH Keys management wizard</b>
+ </td>
+ <td valign="top" align="left">
+ In Alpha2 we now added a whole new wizard that allows you to manage your ssh keys on OpenShift.
+ You'll get there from the context-menu in the OpenShift Explorer.
+ We also provide links to it when you create a domain or application.
+ <p>
+ <img src="images/manage-ssh-keys.png" alt="manage your ssh keys" />
+ </p>
+ Once you are in the wizard you'll spot the public keys you already added to OpenShift.
+ <p>
+ <img src="images/keys-management-wizard.png" alt="add new public key" />
+ </p>
+ Buttons allow you to get to dialogs to create a whole new keypair or add your existing key:
+ <p>
+ <img src="images/add-new-key.png" alt="add new public key" />
+ </p>
+ <p>
+ <img src="images/add-existing-key.png" alt="add existing public key" />
+ </p>
+ The wizard of course also allows you to remove keys from OpenShift.
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-11912">Related Jira</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ </table>
+ </body>
+
+</html>
+
+
Property changes on: trunk/documentation/whatsnew/openshift/openshift-news-2.4.0.Alpha2.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 3 months
JBoss Tools SVN: r44010 - trunk/tests/scripts/installation-updates/src/main/groovy.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-09-25 12:49:11 -0400 (Tue, 25 Sep 2012)
New Revision: 44010
Modified:
trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy
Log:
JBIDE-12717: Added warning
Modified: trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy
===================================================================
--- trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy 2012-09-25 16:03:42 UTC (rev 44009)
+++ trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy 2012-09-25 16:49:11 UTC (rev 44010)
@@ -6,6 +6,11 @@
String releaseTrainId = System.properties['releaseTrainId'] != null ? System.properties['releaseTrainId'] : "juno";
String versionLabel = System.properties['versionLabel'] != null ? System.properties['versionLabel'] : "R";
+if (!eclipseCacheDirectory.canWrite()) {
+ println ("WARNING: You can't write to " + eclipseCacheDirectory);
+ println ("WARNING: Script may fail in case of cache miss");
+}
+
if (new File("eclipse").isDirectory()) {
new AntBuilder().delete( dir: new File("eclipse").getAbsolutePath() );
}
12 years, 3 months
JBoss Tools SVN: r44009 - trunk/tests/scripts/installation-updates/src/main/groovy.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-09-25 12:03:42 -0400 (Tue, 25 Sep 2012)
New Revision: 44009
Modified:
trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy
Log:
JBIDE-12717
Modified: trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy
===================================================================
--- trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy 2012-09-25 15:57:07 UTC (rev 44008)
+++ trunk/tests/scripts/installation-updates/src/main/groovy/getAndInstallEclipse.groovy 2012-09-25 16:03:42 UTC (rev 44009)
@@ -33,9 +33,6 @@
new AntBuilder().get(
src: downloadURL,
dest: cachedFile);
- if (fileExtension.equals("tar.gz")) {
- new AntBuilder().gunzip(src: cachedFile.getAbsolutePath());
- }
}
// Unzip
if (fileExtension.equals("zip")) {
@@ -43,7 +40,11 @@
src: cachedFile.getAbsolutePath(),
dest: new File().getAbsolutePath());
} else if (fileExtension.equals("tar.gz")) {
+ File tarFile = new File(eclipseCacheDirectory, cachedFile.getAbsolutePath()[0..- (".gz".length() + 1)]);
+ if (!tarFile.isFile()) {
+ new AntBuilder().gunzip(src: cachedFile.getAbsolutePath(), dest: eclipseCacheDirectory.getAbsolutePath());
+ }
new AntBuilder().untar(
- src: cachedFile.getAbsolutePath()[0..- (".gz".length() + 1)],
+ src: tarFile.getAbsolutePath(),
dest: new File(".").getAbsolutePath());
}
\ No newline at end of file
12 years, 3 months
JBoss Tools SVN: r44008 - trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-09-25 11:57:07 -0400 (Tue, 25 Sep 2012)
New Revision: 44008
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12716 - Remove button does not work properly
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-25 15:51:56 UTC (rev 44007)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-25 15:57:07 UTC (rev 44008)
@@ -396,9 +396,13 @@
RuntimeUIActivator.launchSearchRuntimePathDialog(getShell(),
new RuntimePath[]{runtimePath}, true, 15);
configureSearch();
- RuntimeUIActivator.getDefault().getModel().addRuntimePath(runtimePath);
- runtimePaths = RuntimeUIActivator.getRuntimePaths();
- runtimePathViewer.setInput(runtimePath.getRuntimeDefinitions());
+ //RuntimeUIActivator.getDefault().getModel().addRuntimePath(runtimePath);
+ //runtimePaths = RuntimeUIActivator.getRuntimePaths();
+ //runtimePathViewer.setInput(runtimePath.getRuntimeDefinitions());
+ RuntimePath[] newRuntimePaths = new RuntimePath[runtimePaths.length+1];
+ System.arraycopy(runtimePaths, 0, newRuntimePaths, 0, runtimePaths.length);
+ newRuntimePaths[runtimePaths.length] = runtimePath;
+ runtimePaths = newRuntimePaths;
runtimePathViewer.refresh();
}
@@ -409,9 +413,14 @@
IStructuredSelection selection = (IStructuredSelection) sel;
Object object = selection.getFirstElement();
if (object instanceof RuntimePath) {
+ RuntimePath[] newRuntimePaths = new RuntimePath[runtimePaths.length-1];
ArrayList<RuntimePath> l = new ArrayList<RuntimePath>(Arrays.asList(runtimePaths));
l.remove(object);
- runtimePaths = (RuntimePath[]) l.toArray(new RuntimePath[l.size()]);
+ int i = 0;
+ for (RuntimePath path:l) {
+ newRuntimePaths[i++] = path;
+ }
+ runtimePaths = newRuntimePaths;
configureSearch();
runtimePathViewer.refresh();
}
12 years, 3 months