Author: elvisisking
Date: 2010-09-01 17:48:21 -0400 (Wed, 01 Sep 2010)
New Revision: 24632
Modified:
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/dialogs/PublishedLocationsDialog.java
Log:
JBIDE-6970 IllegalArgumentException When Clicking Copy Url In PublishedLocationsDialog:
Disable the "Copy URL" button when it is constructed. Once the user selects a
row then it enables.
Modified:
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/dialogs/PublishedLocationsDialog.java
===================================================================
---
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/dialogs/PublishedLocationsDialog.java 2010-09-01
20:54:12 UTC (rev 24631)
+++
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/dialogs/PublishedLocationsDialog.java 2010-09-01
21:48:21 UTC (rev 24632)
@@ -148,7 +148,8 @@
ServerManager serverManager,
IFile file,
Collection<Workspace> workspaces ) {
- super(parentShell, RestClientI18n.publishedLocationsDialogTitle.text(),
Activator.getDefault().getImage(ModeShape_IMAGE_16x),
+ super(parentShell, RestClientI18n.publishedLocationsDialogTitle.text(),
+ Activator.getDefault().getImage(ModeShape_IMAGE_16x),
RestClientI18n.publishedLocationsDialogMsg.text(file.getFullPath()),
MessageDialog.INFORMATION,
new String[] {IDialogConstants.OK_LABEL}, 0);
@@ -244,6 +245,7 @@
this.btnCopy = new Button(panel, SWT.PUSH);
this.btnCopy.setText(RestClientI18n.publishedLocationsDialogCopyUrlButton.text());
this.btnCopy.setToolTipText(RestClientI18n.publishedLocationsDialogCopyUrlButtonToolTip.text());
+ this.btnCopy.setEnabled(false);
this.btnCopy.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
Show replies by date