JBoss Tools SVN: r44037 - in trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh: databinding and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-26 09:46:18 -0400 (Wed, 26 Sep 2012)
New Revision: 44037
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/AddSSHKeyWizardPage.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/databinding/SSHPublicKeyValidator.java
Log:
[JBIDE-12715] forcing revalidation when getting back from ssh2 preferences
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/AddSSHKeyWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/AddSSHKeyWizardPage.java 2012-09-26 13:35:29 UTC (rev 44036)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/AddSSHKeyWizardPage.java 2012-09-26 13:46:18 UTC (rev 44037)
@@ -12,7 +12,6 @@
import org.eclipse.core.databinding.Binding;
import org.eclipse.core.databinding.DataBindingContext;
-import org.eclipse.core.databinding.ValidationStatusProvider;
import org.eclipse.core.databinding.beans.BeanProperties;
import org.eclipse.core.databinding.observable.value.IObservableValue;
import org.eclipse.core.runtime.IStatus;
@@ -110,7 +109,7 @@
GridDataFactory.fillDefaults()
.align(SWT.FILL, SWT.CENTER).applyTo(browseButton);
- ValidationStatusProvider sshPublicKeyValidator = new SSHPublicKeyValidator(publicKeyObservable, pageModel);
+ SSHPublicKeyValidator sshPublicKeyValidator = new SSHPublicKeyValidator(publicKeyObservable, pageModel);
dbc.addValidationStatusProvider(sshPublicKeyValidator);
ControlDecorationSupport.create(
sshPublicKeyValidator, SWT.LEFT | SWT.TOP, null, new RequiredControlDecorationUpdater());
@@ -120,7 +119,7 @@
.setText("Please make sure that your private key for this public key is listed in the\n<a>SSH2 Preferences</a>");
GridDataFactory.fillDefaults()
.align(SWT.FILL, SWT.CENTER).applyTo(sshPrefsLink);
- sshPrefsLink.addSelectionListener(onSshPrefs(dbc));
+ sshPrefsLink.addSelectionListener(onSshPrefs(sshPublicKeyValidator));
}
@@ -131,8 +130,8 @@
public void widgetSelected(SelectionEvent e) {
FileDialog dialog = new FileDialog(getShell(), SWT.OPEN);
dialog.setFilterPath(SSHUtils.getSSH2Home());
- dialog.setFilterExtensions(new String[] {FILTEREXPRESSION_PUBLIC_SSH_KEY });
- dialog.setFilterNames(new String[]{FILTERNAME_PUBLIC_SSH_KEY});
+ dialog.setFilterExtensions(new String[] { FILTEREXPRESSION_PUBLIC_SSH_KEY });
+ dialog.setFilterNames(new String[] { FILTERNAME_PUBLIC_SSH_KEY });
String filePath = null;
if ((filePath = dialog.open()) != null) {
pageModel.setPublicKeyPath(filePath);
@@ -141,14 +140,17 @@
};
}
- private SelectionAdapter onSshPrefs(final DataBindingContext dbc) {
+ private SelectionAdapter onSshPrefs(final SSHPublicKeyValidator sshPublicKeyValidator) {
return new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
SSHUtils.openPreferencesPage(getShell());
// trigger revalidation after prefs were changed
- dbc.updateTargets();
+ // we should be able to listen to prefs changes in jsch, but
+ // obviously they dont fire change event when changing private
+ // keys
+ sshPublicKeyValidator.forceRevalidate();
}
};
}
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/databinding/SSHPublicKeyValidator.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/databinding/SSHPublicKeyValidator.java 2012-09-26 13:35:29 UTC (rev 44036)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ssh/databinding/SSHPublicKeyValidator.java 2012-09-26 13:46:18 UTC (rev 44037)
@@ -49,7 +49,8 @@
try {
SSHPublicKey sshPublicKey = new SSHPublicKey(filePath);
if (model.hasPublicKey(sshPublicKey.getPublicKey())) {
- return ValidationStatus.error("The public key in " + filePath + " is already in use on OpenShift. Choose another key.");
+ return ValidationStatus.error("The public key in " + filePath
+ + " is already in use on OpenShift. Choose another key.");
}
} catch (FileNotFoundException e) {
return ValidationStatus.error("Could not load file: " + e.getMessage());
@@ -62,14 +63,14 @@
if (hasSSHConfigurationIdentityKey()) {
return ValidationStatus.warning(
NLS.bind("Your SSH config ({0}) contains fixed keys for OpenShift servers. " +
- "This can override any Eclipse specific SSH key preferences.", new SSHUserConfig(SSHUtils.getSSH2Home()).getFile()));
+ "This can override any Eclipse specific SSH key preferences.",
+ new SSHUserConfig(SSHUtils.getSSH2Home()).getFile()));
} else if (!SSHUtils.publicKeyMatchesPrivateKeyInPreferences(new File(filePath))) {
return ValidationStatus.warning(
NLS.bind("Could not find the private key for your public key in the preferences. "
+ "Make sure it is listed in the ssh2 preferences.", filePath));
}
-
-
+
return ValidationStatus.ok();
}
@@ -82,4 +83,12 @@
}
}
+ /**
+ * Workaround since JSchUIPlugin seems not to fire property change events if
+ * you change the private keys. Need to force revalidation manually.
+ */
+ public void forceRevalidate() {
+ revalidate();
+ }
+
}
12 years, 3 months
JBoss Tools SVN: r44036 - 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-26 09:35:29 -0400 (Wed, 26 Sep 2012)
New Revision: 44036
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java
Log:
JBIDE-12723 Bump seam version to 2.3.0.Final
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-26 13:30:23 UTC (rev 44035)
+++ trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet/MavenFacetInstallPage.java 2012-09-26 13:35:29 UTC (rev 44036)
@@ -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.CR1"); //$NON-NLS-1$
+ seamVersion.setText("2.3.0.Final"); //$NON-NLS-1$
}
Button removeWTPContainers = new Button(composite,SWT.CHECK);
removeWTPContainers.setText(Messages.MavenFacetInstallPage_Remove_WTP_Classpath_containers);
12 years, 3 months
JBoss Tools SVN: r44035 - branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2012-09-26 09:30:23 -0400 (Wed, 26 Sep 2012)
New Revision: 44035
Modified:
branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsMetamodelValidator.java
Log:
Fixed - JBIDE-12729 : JAX-RS validation doesn't work at all
https://issues.jboss.org/browse/JBIDE-12729
Modified: branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsMetamodelValidator.java
===================================================================
--- branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsMetamodelValidator.java 2012-09-26 13:26:10 UTC (rev 44034)
+++ branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsMetamodelValidator.java 2012-09-26 13:30:23 UTC (rev 44035)
@@ -103,7 +103,7 @@
try {
if (!changedFiles.isEmpty()) {
final JaxrsMetamodel jaxrsMetamodel = JaxrsMetamodelLocator.get(project);
- final Set<IResource> allResources = completeValidationSet(jaxrsMetamodel, (IResource[]) changedFiles.toArray());
+ final Set<IResource> allResources = completeValidationSet(jaxrsMetamodel, changedFiles.toArray(new IFile[changedFiles.size()]));
for (IResource changedResource : allResources) {
validate(reporter, changedResource, jaxrsMetamodel);
}
@@ -125,7 +125,7 @@
* @param objects
* @return
*/
- private Set<IResource> completeValidationSet(JaxrsMetamodel jaxrsMetamodel, final IResource... changedResources) {
+ private Set<IResource> completeValidationSet(final JaxrsMetamodel jaxrsMetamodel, final IFile... changedResources) {
final Set<IResource> resources = new HashSet<IResource>();
for(IResource changedResource : changedResources) {
resources.add(changedResource);
12 years, 3 months
JBoss Tools SVN: r44034 - in trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui: preferences and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-09-26 09:26:10 -0400 (Wed, 26 Sep 2012)
New Revision: 44034
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12726 - Search button not enabled
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java 2012-09-26 12:56:23 UTC (rev 44033)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java 2012-09-26 13:26:10 UTC (rev 44034)
@@ -340,18 +340,29 @@
}
private List<RuntimeDefinition> getEnabledRuntimeDefinitions() {
- ArrayList<RuntimeDefinition> all = getRuntimeDefinitions(true);
+ List<RuntimeDefinition> all = getRuntimeDefinitions(true);
Iterator<RuntimeDefinition> i = all.iterator();
while(i.hasNext()) {
- if( !i.next().isEnabled())
- i.remove();
+ RuntimeDefinition rd = i.next();
+ if( !rd.isEnabled()) {
+ boolean add = false;
+ for (RuntimeDefinition ird:rd.getIncludedRuntimeDefinitions() ) {
+ if (ird.isEnabled()) {
+ add = true;
+ break;
+ }
+ }
+ if (!add) {
+ i.remove();
+ }
+ }
}
return all;
}
- private ArrayList<RuntimeDefinition> getRuntimeDefinitions(
+ private List<RuntimeDefinition> getRuntimeDefinitions(
boolean hideCreatedRuntimes) {
- ArrayList<RuntimeDefinition> runtimeDefinitions = new ArrayList<RuntimeDefinition>();
+ List<RuntimeDefinition> runtimeDefinitions = new ArrayList<RuntimeDefinition>();
List<RuntimeDefinition> allDefinitions = getAllDefinitions();
for (RuntimePath runtimePath : runtimePaths) {
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-26 12:56:23 UTC (rev 44033)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-26 13:26:10 UTC (rev 44034)
@@ -402,7 +402,8 @@
runtimePathViewer.setInput(runtimePaths);
configureSearch();
runtimePathViewer.refresh();
-
+ RuntimeUIActivator.getDefault().getModel().addRuntimePath(runtimePath);
+ RuntimeUIActivator.getDefault().saveRuntimePreferences();
}
private void removedPressed() {
12 years, 3 months
JBoss Tools SVN: r44033 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/facet.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-09-26 08:56:23 -0400 (Wed, 26 Sep 2012)
New Revision: 44033
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/facet/Facets.java
Log:
Using JSF 2.0 for JSF portlets
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/facet/Facets.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/facet/Facets.java 2012-09-26 12:13:25 UTC (rev 44032)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/facet/Facets.java 2012-09-26 12:56:23 UTC (rev 44033)
@@ -6,7 +6,7 @@
public static final FacetDefinition JAVA_FACET = new FacetDefinition("Java", null, "1.6");
- public static final FacetDefinition JSF_FACET = new FacetDefinition("JavaServer Faces");
+ public static final FacetDefinition JSF_FACET = new FacetDefinition("JavaServer Faces", null, "2.0");
private static final String JBOSS_FACET_CATEGORY = "JBoss Portlets";
12 years, 3 months
JBoss Tools SVN: r44032 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-09-26 08:13:25 -0400 (Wed, 26 Sep 2012)
New Revision: 44032
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java
Log:
cleaned code
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java 2012-09-26 10:34:34 UTC (rev 44031)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java 2012-09-26 12:13:25 UTC (rev 44032)
@@ -117,16 +117,12 @@
ValueBindingBuilder.bind(WidgetProperties.enabled().observe(existingProjectNameText))
.notUpdating(newProjectObservable).converting(new InvertingBooleanConverter()).in(dbc);
// move focus to the project name text control when choosing the 'Use an existing project' option.
- newProjectRadioBtn.addSelectionListener(new SelectionListener() {
+ newProjectRadioBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
existingProjectNameText.setFocus();
existingProjectNameText.selectAll();
}
-
- @Override
- public void widgetDefaultSelected(SelectionEvent e) {
- }
});
// let's provide content assist on the existing project name
ControlDecoration dec = new ControlDecoration(existingProjectNameText, SWT.TOP | SWT.LEFT);
12 years, 3 months
JBoss Tools SVN: r44031 - trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-09-26 06:34:34 -0400 (Wed, 26 Sep 2012)
New Revision: 44031
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal/RuntimeExtensionManager.java
Log:
simple code cleanup, very safe, for runtime extension manager to be more clear
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-26 10:20:29 UTC (rev 44030)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/internal/RuntimeExtensionManager.java 2012-09-26 10:34:34 UTC (rev 44031)
@@ -121,16 +121,6 @@
// This method will load one detector from a configuration element
private IRuntimeDetector loadOneDeclaredRuntimeDetector(IConfigurationElement configurationElement) {
- IRuntimeDetectorDelegate delegate = null;
- try {
- delegate = (IRuntimeDetectorDelegate) configurationElement.createExecutableExtension("class");
- } catch (CoreException e) {
- RuntimeCoreActivator.getDefault().logError(e);
- // TODO
-// detector = new InvalidRuntimeDetector();
-// detector.setValid(false);
- }
-
String name = configurationElement.getAttribute(NAME);
String preferenceId = configurationElement.getAttribute(PREFERENCE_ID);
String id = configurationElement.getAttribute(ID);
@@ -145,15 +135,17 @@
priority = Integer.MAX_VALUE;
}
- if( delegate != null ) {
+ IRuntimeDetectorDelegate delegate = null;
+ try {
+ delegate = (IRuntimeDetectorDelegate) configurationElement.createExecutableExtension("class");
RuntimeDetector detector = new RuntimeDetector(
name, id, preferenceId, priority, delegate);
detector.setEnabled(Boolean.parseBoolean(enabled));
return detector;
+ } catch (CoreException e) {
+ RuntimeCoreActivator.getDefault().logError(e);
+ return new InvalidRuntimeDetector(name, id, preferenceId, priority);
}
-
- // return a new invalid
- return new InvalidRuntimeDetector(name, id, preferenceId, priority);
}
public Map<String, DownloadRuntime> loadDownloadRuntimes() {
12 years, 3 months
JBoss Tools SVN: r44030 - in trunk/archives/plugins: org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-09-26 06:20:29 -0400 (Wed, 26 Sep 2012)
New Revision: 44030
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
Log:
JBIDE-12721 to trunk
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2012-09-26 10:16:31 UTC (rev 44029)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2012-09-26 10:20:29 UTC (rev 44030)
@@ -28,7 +28,6 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
import org.jboss.ide.eclipse.archives.core.model.ArchivesModel;
import org.jboss.ide.eclipse.archives.core.model.ArchivesModelException;
import org.jboss.ide.eclipse.archives.core.model.IArchiveModel;
@@ -97,11 +96,11 @@
try {
if( p.getSessionProperty(new QualifiedName(ArchivesCorePlugin.PLUGIN_ID, "localname")) == null ) { //$NON-NLS-1$
try {
- ArchivesModel.instance().registerProject(p.getLocation(), new NullProgressMonitor());
- new Job(ArchivesCore.bind(ArchivesCoreMessages.RefreshProject, p.getName())) {
- protected IStatus run(IProgressMonitor monitor) {
- try {
- p.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ new WorkspaceJob(ArchivesCore.bind(ArchivesCoreMessages.RefreshProject, p.getName())) {
+ public IStatus runInWorkspace(IProgressMonitor monitor) {
+ try {
+ ArchivesModel.instance().registerProject(p.getLocation(), new NullProgressMonitor());
+ p.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
} catch( CoreException e ) {
IStatus status = new Status(IStatus.WARNING, ArchivesCorePlugin.PLUGIN_ID,
ArchivesCore.bind(ArchivesCoreMessages.RefreshProjectFailed, p.getName()),e);
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2012-09-26 10:16:31 UTC (rev 44029)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2012-09-26 10:20:29 UTC (rev 44030)
@@ -163,7 +163,8 @@
public IArchiveModelRootNode registerProject(IPath projectPath, String file, IProgressMonitor monitor) throws ArchivesModelException {
XbPackages packages;
ArchiveModelNode modelNode;
-
+ if( projectPath == null )
+ return null;
IPath packagesFile = projectPath.append(file);
if (packagesFile.toFile().exists()) {
try {
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2012-09-26 10:16:31 UTC (rev 44029)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2012-09-26 10:20:29 UTC (rev 44030)
@@ -82,6 +82,10 @@
if( part == instance )
return;
if (selection == null || selection.isEmpty()) {
+ if( currentProject != null && !currentProject.isAccessible()) {
+ currentProject = null;
+ jiggleViewerInput();
+ }
return;
}
if (!(selection instanceof IStructuredSelection))
12 years, 3 months
JBoss Tools SVN: r44029 - trunk/documentation/whatsnew/ws.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2012-09-26 06:16:31 -0400 (Wed, 26 Sep 2012)
New Revision: 44029
Added:
trunk/documentation/whatsnew/ws/ws-news-1.4.0.Alpha2.html
Log:
Adding N&N for the JAX-RS tooling
Added: trunk/documentation/whatsnew/ws/ws-news-1.4.0.Alpha2.html
===================================================================
--- trunk/documentation/whatsnew/ws/ws-news-1.4.0.Alpha2.html (rev 0)
+++ trunk/documentation/whatsnew/ws/ws-news-1.4.0.Alpha2.html 2012-09-26 10:16:31 UTC (rev 44029)
@@ -0,0 +1,53 @@
+<?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>WS Tools 3.3.0 M2 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>WS tools 1.4.0.Alpha2 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3"
+ id="itemname3"></a><b>JAX-RS Application Refactored</b></td>
+ <td valign="top">
+ <p>Support for JAX-RS Application has been improved in order to support the use-cases described in the specification and summarized on the <a href="https://docs.jboss.org/author/display/AS71/JAX-RS+Reference+Guide">JBoss AS 7.1 JAX-RS Reference Guide</a>
+ </p>
+ <p>With this work done, the following use-cases are now supported:
+ <ul>
+ <li>Defining a subclass of javax.ws.rs.core.Application annotated with @javax.ws.rs.ApplicationPath</li>
+ <li>Defining a subclass of javax.ws.rs.core.Application with or without @javax.ws.rs.ApplicationPath annotation, and configuring/overriding the Application Path in the web deployment descriptor using the subclass as the servlet name</li>
+ <li>Defining the Application in the web deployment descriptor only, using javax.ws.rs.core.Application as the servlet-name.</li></p>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-10287">Related Jira</a></small>
+ <small><a href="https://jira.jboss.org/browse/JBIDE-12633">Related Jira</a></small></p>
+
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
+
+
12 years, 3 months
JBoss Tools SVN: r44028 - 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-26 05:59:01 -0400 (Wed, 26 Sep 2012)
New Revision: 44028
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12726 - Search button not enabled
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-26 09:57:22 UTC (rev 44027)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-09-26 09:59:01 UTC (rev 44028)
@@ -395,12 +395,12 @@
}
RuntimeUIActivator.launchSearchRuntimePathDialog(getShell(),
new RuntimePath[]{runtimePath}, true, 15);
- configureSearch();
RuntimePath[] newRuntimePaths = new RuntimePath[runtimePaths.length+1];
System.arraycopy(runtimePaths, 0, newRuntimePaths, 0, runtimePaths.length);
newRuntimePaths[runtimePaths.length] = runtimePath;
runtimePaths = newRuntimePaths;
runtimePathViewer.setInput(runtimePaths);
+ configureSearch();
runtimePathViewer.refresh();
}
12 years, 3 months