JBoss Tools SVN: r6202 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-02-08 06:33:46 -0500 (Fri, 08 Feb 2008)
New Revision: 6202
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
Log:
compile error fixed
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2008-02-08 11:25:52 UTC (rev 6201)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2008-02-08 11:33:46 UTC (rev 6202)
@@ -87,7 +87,7 @@
wc.setAttribute(TEMPORARY_CONFIG_FLAG, true);
ILaunchConfiguration saved = wc.doSave();
int res = DebugUITools.openLaunchConfigurationPropertiesDialog( part.getSite().getShell(), saved, "org.eclipse.debug.ui.launchGroup.run" );
- List<ILaunchConfiguration> listTempConfigs = new ArrayList<ILaunchConfiguration>();
+ List listTempConfigs = new ArrayList();
ILaunchConfiguration[] configs = launchManager.getLaunchConfigurations(launchConfigurationType);
for (int i = 0; i < configs.length; i++) {
boolean temporary = configs[i].getAttribute(AddConfigurationAction.TEMPORARY_CONFIG_FLAG, false);
@@ -97,11 +97,11 @@
}
if (res != Window.OK) {
for (int i = 0; i < listTempConfigs.size(); i++) {
- listTempConfigs.get(i).delete();
+ ((ILaunchConfiguration)listTempConfigs.get(i)).delete();
}
} else {
for (int i = 0; i < listTempConfigs.size(); i++) {
- wc = listTempConfigs.get(i).getWorkingCopy();
+ wc = ((ILaunchConfiguration)listTempConfigs.get(i)).getWorkingCopy();
wc.setAttribute(TEMPORARY_CONFIG_FLAG, (String)null); // Must be set to null since it should never be in the actual saved configuration!
wc.doSave();
}
18 years, 2 months
JBoss Tools SVN: r6201 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-02-08 06:25:52 -0500 (Fri, 08 Feb 2008)
New Revision: 6201
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF
Log:
http://jira.jboss.com/jira/browse/JBIDE-1558
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF 2008-02-08 10:58:34 UTC (rev 6200)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF 2008-02-08 11:25:52 UTC (rev 6201)
@@ -37,6 +37,7 @@
org.hibernate.eclipse.hqleditor,
org.hibernate.eclipse.hqleditor.preferences,
org.hibernate.eclipse.launch,
+ org.hibernate.eclipse.launch.core.refactoring,
org.hibernate.eclipse.nature,
org.hibernate.eclipse.util.xpl
Require-Bundle: org.hibernate.eclipse,
@@ -64,5 +65,6 @@
org.eclipse.jdt.launching,
org.eclipse.jdt.debug.ui,
org.eclipse.core.filesystem,
- org.eclipse.core.variables
+ org.eclipse.core.variables,
+ org.eclipse.ltk.core.refactoring
Eclipse-LazyStart: true
18 years, 2 months
JBoss Tools SVN: r6200 - in trunk: hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-02-08 05:58:34 -0500 (Fri, 08 Feb 2008)
New Revision: 6200
Modified:
trunk/
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
Log:
Merged revisions 6199 via svnmerge from
https://svn.jboss.org/repos/jbosstools/branches/jbosstools-2.0.x
........
r6199 | max.andersen(a)jboss.com | 2008-02-08 11:41:59 +0100 (Fri, 08 Feb 2008) | 1 line
JBIDE-1723 fixed broken add/delete launchconfiguration.
........
Property changes on: trunk
___________________________________________________________________
Name: svnmerge-integrated
- /branches/jbosstools-2.0.x:1-6135,6162,6165
+ /branches/jbosstools-2.0.x:1-6135,6162,6165,6199
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2008-02-08 10:41:59 UTC (rev 6199)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2008-02-08 10:58:34 UTC (rev 6200)
@@ -21,6 +21,8 @@
*/
package org.hibernate.eclipse.console.actions;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Map;
import org.eclipse.core.runtime.CoreException;
@@ -84,14 +86,26 @@
ILaunchConfigurationWorkingCopy wc = launchConfigurationType.newInstance(null, launchName);
wc.setAttribute(TEMPORARY_CONFIG_FLAG, true);
ILaunchConfiguration saved = wc.doSave();
- int i = DebugUITools.openLaunchConfigurationPropertiesDialog( part.getSite().getShell(), saved, "org.eclipse.debug.ui.launchGroup.run" );
- if(i!=Window.OK) {
- saved.delete();
- } else {
- wc = saved.getWorkingCopy();
- wc.setAttribute(TEMPORARY_CONFIG_FLAG, (String)null); // Must be set to null since it should never be in the actual saved configuration!
- wc.doSave();
+ int res = DebugUITools.openLaunchConfigurationPropertiesDialog( part.getSite().getShell(), saved, "org.eclipse.debug.ui.launchGroup.run" );
+ List<ILaunchConfiguration> listTempConfigs = new ArrayList<ILaunchConfiguration>();
+ ILaunchConfiguration[] configs = launchManager.getLaunchConfigurations(launchConfigurationType);
+ for (int i = 0; i < configs.length; i++) {
+ boolean temporary = configs[i].getAttribute(AddConfigurationAction.TEMPORARY_CONFIG_FLAG, false);
+ if (temporary) {
+ listTempConfigs.add(configs[i]);
+ }
}
+ if (res != Window.OK) {
+ for (int i = 0; i < listTempConfigs.size(); i++) {
+ listTempConfigs.get(i).delete();
+ }
+ } else {
+ for (int i = 0; i < listTempConfigs.size(); i++) {
+ wc = listTempConfigs.get(i).getWorkingCopy();
+ wc.setAttribute(TEMPORARY_CONFIG_FLAG, (String)null); // Must be set to null since it should never be in the actual saved configuration!
+ wc.doSave();
+ }
+ }
} catch (CoreException ce) {
HibernateConsolePlugin.getDefault().showError( part.getSite().getShell(), "Problem adding a console configuration", ce);
18 years, 2 months
JBoss Tools SVN: r6199 - branches/jbosstools-2.0.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-02-08 05:41:59 -0500 (Fri, 08 Feb 2008)
New Revision: 6199
Modified:
branches/jbosstools-2.0.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
Log:
JBIDE-1723 fixed broken add/delete launchconfiguration.
Modified: branches/jbosstools-2.0.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
===================================================================
--- branches/jbosstools-2.0.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2008-02-07 23:16:59 UTC (rev 6198)
+++ branches/jbosstools-2.0.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2008-02-08 10:41:59 UTC (rev 6199)
@@ -21,6 +21,8 @@
*/
package org.hibernate.eclipse.console.actions;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Map;
import org.eclipse.core.runtime.CoreException;
@@ -84,14 +86,26 @@
ILaunchConfigurationWorkingCopy wc = launchConfigurationType.newInstance(null, launchName);
wc.setAttribute(TEMPORARY_CONFIG_FLAG, true);
ILaunchConfiguration saved = wc.doSave();
- int i = DebugUITools.openLaunchConfigurationPropertiesDialog( part.getSite().getShell(), saved, "org.eclipse.debug.ui.launchGroup.run" );
- if(i!=Window.OK) {
- saved.delete();
- } else {
- wc = saved.getWorkingCopy();
- wc.setAttribute(TEMPORARY_CONFIG_FLAG, (String)null); // Must be set to null since it should never be in the actual saved configuration!
- wc.doSave();
+ int res = DebugUITools.openLaunchConfigurationPropertiesDialog( part.getSite().getShell(), saved, "org.eclipse.debug.ui.launchGroup.run" );
+ List<ILaunchConfiguration> listTempConfigs = new ArrayList<ILaunchConfiguration>();
+ ILaunchConfiguration[] configs = launchManager.getLaunchConfigurations(launchConfigurationType);
+ for (int i = 0; i < configs.length; i++) {
+ boolean temporary = configs[i].getAttribute(AddConfigurationAction.TEMPORARY_CONFIG_FLAG, false);
+ if (temporary) {
+ listTempConfigs.add(configs[i]);
+ }
}
+ if (res != Window.OK) {
+ for (int i = 0; i < listTempConfigs.size(); i++) {
+ listTempConfigs.get(i).delete();
+ }
+ } else {
+ for (int i = 0; i < listTempConfigs.size(); i++) {
+ wc = listTempConfigs.get(i).getWorkingCopy();
+ wc.setAttribute(TEMPORARY_CONFIG_FLAG, (String)null); // Must be set to null since it should never be in the actual saved configuration!
+ wc.doSave();
+ }
+ }
} catch (CoreException ce) {
HibernateConsolePlugin.getDefault().showError( part.getSite().getShell(), "Problem adding a console configuration", ce);
18 years, 2 months
JBoss Tools SVN: r6195 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-02-07 18:12:52 -0500 (Thu, 07 Feb 2008)
New Revision: 6195
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IRuntimeVariables.java
Log:
Preparing to break / destroy archives! awesome for API refactors
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IRuntimeVariables.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IRuntimeVariables.java 2008-02-07 23:11:02 UTC (rev 6194)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IRuntimeVariables.java 2008-02-07 23:12:52 UTC (rev 6195)
@@ -5,13 +5,13 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+/**
+ *
+ * @author rob.stryker <rob.stryker(a)redhat.com>
+ *
+ */
public interface IRuntimeVariables {
- /**
- * Is the debugging option provided enabled?
- * If the option is null, is debugging enabled at all?
- * @param option
- * @return
- */
+
public boolean isDebugging(String option);
public IPath getProjectPath(String projectName);
public String getProjectName(IPath path);
18 years, 2 months
JBoss Tools SVN: r6194 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core: util and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-02-07 18:11:02 -0500 (Thu, 07 Feb 2008)
New Revision: 6194
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/AntVariables.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/EclipseResourceGroupTask.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/IsolatedTruezipExecution.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/JBossArchivesTask.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java
Log:
Preparing to break / destroy archives! awesome for API refactors
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/AntVariables.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/AntVariables.java 2008-02-07 23:04:05 UTC (rev 6193)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/AntVariables.java 2008-02-07 23:11:02 UTC (rev 6194)
@@ -26,7 +26,7 @@
}
public IPath getProjectPath(String projectName) {
- HashMap map = ResourceModel.getDefault().getTaskEnvironment(currentTask);
+ HashMap<Object, Object> map = ResourceModel.getDefault().getTaskEnvironment(currentTask);
if( map.containsKey(projectName)) return new Path((String)map.get(projectName));
if( map.containsKey(IPath.SEPARATOR + projectName)) return new Path((String)map.get(IPath.SEPARATOR + projectName));
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/EclipseResourceGroupTask.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/EclipseResourceGroupTask.java 2008-02-07 23:04:05 UTC (rev 6193)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/EclipseResourceGroupTask.java 2008-02-07 23:11:02 UTC (rev 6194)
@@ -30,7 +30,7 @@
}
}
- ArrayList resources = new ArrayList();
+ ArrayList<EclipseResource> resources = new ArrayList<EclipseResource>();
public EclipseResource createEclipseResource() {
EclipseResource res = new EclipseResource();
resources.add(res);
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/IsolatedTruezipExecution.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/IsolatedTruezipExecution.java 2008-02-07 23:04:05 UTC (rev 6193)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/IsolatedTruezipExecution.java 2008-02-07 23:11:02 UTC (rev 6194)
@@ -61,7 +61,7 @@
}
IArchiveModelNode node = ArchivesModel.instance().getRoot(path);
- final ArrayList requiredProjects = new ArrayList();
+ final ArrayList<String> requiredProjects = new ArrayList<String>();
node.accept(new IArchiveNodeVisitor() {
public boolean visit(IArchiveNode node) {
if( node.getNodeType() == IArchiveNode.TYPE_ARCHIVE) {
@@ -92,7 +92,7 @@
boolean retVal = true;
AntVariables vars = ((AntVariables)ArchivesCore.getInstance().getVariables());
for( int i = 0; i < requiredProjects.size(); i++ ) {
- IPath p = vars.getProjectPath((String)requiredProjects.get(i));
+ IPath p = vars.getProjectPath(requiredProjects.get(i));
if( p == null ) {
retVal = false;
task.log("Required project \"" + requiredProjects.get(i) +
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/JBossArchivesTask.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/JBossArchivesTask.java 2008-02-07 23:04:05 UTC (rev 6193)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ant/JBossArchivesTask.java 2008-02-07 23:11:02 UTC (rev 6194)
@@ -1,8 +1,6 @@
package org.jboss.ide.eclipse.archives.core.ant;
import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
@@ -40,7 +38,7 @@
}
- ArrayList resources = new ArrayList();
+ ArrayList<EclipseResource> resources = new ArrayList<EclipseResource>();
public EclipseResource createEclipseResource() {
EclipseResource res = new EclipseResource();
resources.add(res);
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2008-02-07 23:04:05 UTC (rev 6193)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2008-02-07 23:11:02 UTC (rev 6194)
@@ -59,7 +59,7 @@
* @return
*/
public static IArchiveFileSet[] getMatchingFilesets(IArchiveNode node, final IPath path) {
- final ArrayList rets = new ArrayList();
+ final ArrayList<IArchiveFileSet> rets = new ArrayList<IArchiveFileSet>();
IArchiveNodeVisitor visitor = new IArchiveNodeVisitor() {
public boolean visit(IArchiveNode node) {
if( node.getNodeType() == IArchiveNode.TYPE_ARCHIVE_FILESET &&
@@ -75,7 +75,7 @@
else
node.accept(visitor);
- return (IArchiveFileSet[]) rets.toArray(new IArchiveFileSet[rets.size()]);
+ return rets.toArray(new IArchiveFileSet[rets.size()]);
}
/**
@@ -84,8 +84,8 @@
* @return
*/
public static IArchiveFileSet[] findAllDescendentFilesets(IArchiveNode node) {
- ArrayList matches = findAllDescendents(node, IArchiveNode.TYPE_ARCHIVE_FILESET, true);
- return (IArchiveFileSet[]) matches.toArray(new IArchiveFileSet[matches.size()]);
+ ArrayList<IArchiveNode> matches = findAllDescendents(node, IArchiveNode.TYPE_ARCHIVE_FILESET, true);
+ return matches.toArray(new IArchiveFileSet[matches.size()]);
}
/**
@@ -94,8 +94,8 @@
* @return
*/
public static IArchiveFolder[] findAllDescendentFolders(IArchiveNode node) {
- ArrayList matches = findAllDescendents(node, IArchiveNode.TYPE_ARCHIVE_FOLDER, false);
- return (IArchiveFolder[]) matches.toArray(new IArchiveFolder[matches.size()]);
+ ArrayList<IArchiveNode> matches = findAllDescendents(node, IArchiveNode.TYPE_ARCHIVE_FOLDER, false);
+ return matches.toArray(new IArchiveFolder[matches.size()]);
}
/**
@@ -103,8 +103,8 @@
* @param node
* @return
*/
- public static ArrayList findAllDescendents(IArchiveNode node, final int type, final boolean includeSelf) {
- final ArrayList matches = new ArrayList();
+ public static ArrayList<IArchiveNode> findAllDescendents(IArchiveNode node, final int type, final boolean includeSelf) {
+ final ArrayList<IArchiveNode> matches = new ArrayList<IArchiveNode>();
final IArchiveNode original = node;
node.accept(new IArchiveNodeVisitor() {
public boolean visit(IArchiveNode node) {
@@ -168,13 +168,13 @@
*/
public static IPath getBaseDestinationFile(IArchiveNode node, IPath absolutePath) {
IArchiveNode parameterNode = node;
- ArrayList list = new ArrayList();
+ ArrayList<IArchiveNode> list = new ArrayList<IArchiveNode>();
while( node != null && !(node instanceof ArchiveModelNode)) {
list.add(node);
node = node.getParent();
}
Collections.reverse(list);
- IArchiveNode[] nodes = (IArchiveNode[]) list.toArray(new IArchiveNode[list.size()]);
+ IArchiveNode[] nodes = list.toArray(new IArchiveNode[list.size()]);
IPath lastConcrete = null;
for( int i = 0; i < nodes.length; i++ ) {
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java 2008-02-07 23:04:05 UTC (rev 6193)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java 2008-02-07 23:11:02 UTC (rev 6194)
@@ -87,7 +87,7 @@
// Let them know which files were removed, for events
public static IPath[] fullFilesetRemove(final IArchiveFileSet fileset, boolean sync) {
IPath[] paths = fileset.findMatchingPaths();
- final ArrayList list = new ArrayList();
+ final ArrayList<IPath> list = new ArrayList<IPath>();
list.addAll(Arrays.asList(paths));
for( int i = 0; i < paths.length; i++ ) {
if( !ModelUtil.otherFilesetMatchesPathAndOutputLocation(fileset, paths[i])) {
@@ -116,7 +116,7 @@
if( sync )
TrueZipUtil.sync();
- return (IPath[]) list.toArray(new IPath[list.size()]);
+ return list.toArray(new IPath[list.size()]);
}
18 years, 2 months
JBoss Tools SVN: r6193 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-02-07 18:04:05 -0500 (Thu, 07 Feb 2008)
New Revision: 6193
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
Log:
Preparing to break / destroy archives! awesome for API refactors
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java 2008-02-07 23:02:21 UTC (rev 6192)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java 2008-02-07 23:04:05 UTC (rev 6193)
@@ -54,7 +54,7 @@
super.start(context);
// Load the workspace version of ArchivesCore
- ArchivesCore core = new WorkspaceArchivesCore();
+ new WorkspaceArchivesCore();
ResourcesPlugin.getWorkspace().addResourceChangeListener(new WorkspaceChangeListener());
}
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2008-02-07 23:02:21 UTC (rev 6192)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2008-02-07 23:04:05 UTC (rev 6193)
@@ -48,7 +48,7 @@
public class WorkspaceChangeListener implements IResourceChangeListener {
public void resourceChanged(IResourceChangeEvent event) {
- final Set projects = new TreeSet();
+ final Set<IProject> projects = new TreeSet<IProject>();
IResourceDelta delta = event.getDelta();
try {
@@ -65,9 +65,9 @@
}
} catch( CoreException ce ) {
}
- Iterator i = projects.iterator();
+ Iterator<IProject> i = projects.iterator();
while(i.hasNext()) {
- final IProject p = (IProject)i.next();
+ final IProject p = i.next();
try {
if( p.getSessionProperty(new QualifiedName(ArchivesCorePlugin.PLUGIN_ID, "localname")) == null ) {
ArchivesModel.instance().registerProject(p.getLocation(), new NullProgressMonitor());
18 years, 2 months