JBoss Tools SVN: r15769 - in trunk/archives/plugins: org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-06-08 06:42:26 -0400 (Mon, 08 Jun 2009)
New Revision: 15769
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/PrefsInitializer.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
Log:
JBIDE-2095 - fixing the default excludes
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java 2009-06-08 10:16:08 UTC (rev 15768)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java 2009-06-08 10:42:26 UTC (rev 15769)
@@ -40,7 +40,7 @@
public static final String PROJECT_SPECIFIC_PREFS = "org.jboss.ide.eclipse.archives.core.projectSpecificPreferencesEnabled"; //$NON-NLS-1$
private static IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
- private static IResource getResource(IPath path) {
+ public static IResource getResource(IPath path) {
if( path != null ) {
IProject[] projects = workspaceRoot.getProjects();
if( projects != null ) {
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/PrefsInitializer.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/PrefsInitializer.java 2009-06-08 10:16:08 UTC (rev 15768)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/PrefsInitializer.java 2009-06-08 10:42:26 UTC (rev 15769)
@@ -94,7 +94,7 @@
if( adaptable != null ) {
IResource project = (IResource)adaptable.getAdapter(IResource.class);
try {
- if( project != null && project.getPersistentProperty(name) != null) {
+ if( project != null ) {// && project.getPersistentProperty(name) != null) {
project.setPersistentProperty(name, val);
return;
}
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java 2009-06-08 10:16:08 UTC (rev 15768)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java 2009-06-08 10:42:26 UTC (rev 15769)
@@ -134,6 +134,8 @@
showAllProjects.setEnabled(val);
automaticBuilder.setEnabled(val);
showErrorDialog.setEnabled(val);
+ enableDefaultExcludes.setEnabled(val);
+ defaultExcludes.setEnabled(val);
}
protected void createCorePrefs(Composite main) {
@@ -166,7 +168,7 @@
enableDefaultExcludes = new Button(filesetGroup, SWT.CHECK);
enableDefaultExcludes.setText(ArchivesUIMessages.EnableDefaultExcludes);
- defaultExcludes = new Text(filesetGroup, SWT.DEFAULT);
+ defaultExcludes = new Text(filesetGroup, SWT.SINGLE | SWT.BORDER);
FormData fd = new FormData();
fd.top = new FormAttachment(0,5);
fd.left = new FormAttachment(0,5);
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2009-06-08 10:16:08 UTC (rev 15768)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2009-06-08 10:42:26 UTC (rev 15769)
@@ -38,10 +38,11 @@
import org.eclipse.swt.widgets.Text;
import org.jboss.ide.eclipse.archives.core.ArchivesCore;
import org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory;
+import org.jboss.ide.eclipse.archives.core.model.IArchiveNode;
import org.jboss.ide.eclipse.archives.core.model.IArchiveStandardFileSet;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveNode;
import org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.DirectoryScannerExtension;
import org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.DirectoryScannerExtension.FileWrapper;
+import org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspacePreferenceManager;
import org.jboss.ide.eclipse.archives.ui.ArchivesSharedImages;
import org.jboss.ide.eclipse.archives.ui.ArchivesUIMessages;
import org.jboss.ide.eclipse.archives.ui.PrefsInitializer;
@@ -333,8 +334,13 @@
includes = "**"; //$NON-NLS-1$
includesText.setText(includes);
boolean useDefaultExcludes = PrefsInitializer.getBoolean(PrefsInitializer.PREF_USE_DEFAULT_EXCLUDES);
- if( useDefaultExcludes)
- excludesText.setText(PrefsInitializer.getString(PrefsInitializer.PREF_DEFAULT_EXCLUDE_LIST));
+ if( useDefaultExcludes && parentNode != null)
+ excludesText.setText(
+ PrefsInitializer.getString(
+ PrefsInitializer.PREF_DEFAULT_EXCLUDE_LIST,
+ WorkspacePreferenceManager.getResource(
+ parentNode.getProjectPath()),
+ true));
}
}
16 years, 10 months
JBoss Tools SVN: r15768 - in trunk/documentation/whatsnew: core and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2009-06-08 06:16:08 -0400 (Mon, 08 Jun 2009)
New Revision: 15768
Added:
trunk/documentation/whatsnew/images/1secdefaultpublish.png
trunk/documentation/whatsnew/images/renameseamcomponent.png
trunk/documentation/whatsnew/images/setuptemplatecontextmenu.png
Modified:
trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html
trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html
trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html
trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html
trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html
trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html
trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html
Log:
update whatsnew for M1
Modified: trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -7,16 +7,16 @@
<body>
-<h1>JBoss AS Tools 2.0.0.M1 - New and Noteworthy</h1>
+<h1>JBoss AS Tools 3.1.0.M1 - New and Noteworthy</h1>
- <p align="right"><a href="../index.html">< Main Index</a> <a href="../seam/seam-news-3.0.0.GA.html">JBoss Seam Tools ></a></p>
+ <p align="right"><a href="../index.html">< Main Index</a> <a href="../vpe/vpe-news-3.1.0.M1.html">Visual Page Editor ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
<td colspan="2">
<hr/>
- <h3>Project Archives</h3>
+ <h3>Server</h3>
<hr/>
</td>
</tr>
@@ -24,13 +24,17 @@
<tr>
<td valign="top" align="left">
<p align="right">
- <b>User Libraries fileset</b></td>
+ <b>Deploy compressed archives</b></td>
<td valign="top">
- <p>If you use use User Libraries in your projects you can now also refer to these from project archives and have all the .jar/.zip files they refer included into the archive.</p>
+ <p>Our JBoss WTP Server adapters until now published all
+ projects in exploded form for ease of development and much
+ faster deployment. Sometimes though you are working where you
+ would like the projects to be deployed compressed. This is now
+ possible to enable in the server editor. If you enable this all projects that are deployed to that server will be compressed instead of in an exploded folder.</p>
- <p><img src="../images/projectarchivelibs.png"/></p>
+ <p><img src="../images/deploy_projects_compressed.png"/></p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-122">Related jira</a></small></p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4193">Related jira</a></small></p>
</td>
</tr>
@@ -40,29 +44,35 @@
</td>
</tr>
+ <tr>
+ <td valign="top" align="left">
+ <p align="right">
+ <b>Flexible Server Configurations</b></td>
+ <td valign="top">
+ <p>When you create a Server runtime in JBoss Tools you can now
+ adjust which directory will be used as the server configuration
+ root allowing you to use a configuration from outside the JBoss
+ installation. Furthermore you can now easily copy a
+ configuration to allow for futher customization.</p>
- <tr>
- <td colspan="2">
- <hr/>
- <h3>Server</h3>
- <hr/>
+ <p><img src="../images/quickconfigurationclone.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3896">Related jira</a></small></p>
</td>
</tr>
<tr>
<td valign="top" align="left">
<p align="right">
- <b>Deploy compressed archives</b></td>
+ <b>1 second publishing interval</b></td>
<td valign="top">
- <p>Our JBoss WTP Server adapters until now published all
- projects in exploded form for ease of development and much
- faster deployment. Sometimes though you are working where you
- would like the projects to be deployed compressed. This is now
- possible to enable in the server editor. If you enable this all projects that are deployed to that server will be compressed instead of in an exploded folder.</p>
+ <p>JBoss AS servers now have a default 1 second publishing interval between file changed and publish to circumvent that Eclipse WebTools in recent releases started having a 15 second interval.</p>
- <p><img src="../images/deploy_projects_compressed.png"/></p>
+<p>This makes the development turnaround much better out-of-the-box. Of course if you prefer longer wait time you can open the server editor and set the value to what you wish.</p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4193">Related jira</a></small></p>
+<p><img src="../images/1secdefaultpublish.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4085">Related jira</a></small></p>
</td>
</tr>
@@ -73,19 +83,23 @@
</tr>
<tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Project Archives</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
<td valign="top" align="left">
<p align="right">
- <b>Flexible Server Configurations</b></td>
+ <b>User Libraries fileset</b></td>
<td valign="top">
- <p>When you create a Server runtime in JBoss Tools you can now
- adjust which directory will be used as the server configuration
- root allowing you to use a configuration from outside the JBoss
- installation. Furthermore you can now easily copy a
- configuration to allow for futher customization.</p>
+ <p>If you use use User Libraries in your projects you can now also refer to these from project archives and have all the .jar/.zip files they refer included into the archive.</p>
- <p><img src="../images/quickconfigurationclone.png"/></p>
+ <p><img src="../images/projectarchivelibs.png"/></p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3896">Related jira</a></small></p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-122">Related jira</a></small></p>
</td>
</tr>
@@ -95,7 +109,6 @@
</td>
</tr>
-
</table>
Modified: trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -6,13 +6,13 @@
<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 Visual Page Editor</title>
+<title>What's New</title>
</head>
<body>
-<h1>What's New Visual Page Editor</h1>
+<h1>What's New Core/General</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../seam/seam-news-2.0.0.CR2.html">Seam Tools ></a></p>
+ href="../as/as-news-3.1.0.M1.html">AS Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
<td colspan="2">
@@ -24,9 +24,12 @@
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Eclipse 3.5</b></td>
<td valign="top">
- <p>JBoss Tools 3.1 is targeting running on Eclipse 3.5 to benefit from all the bugfixes and new API's that are made available. Running on version of Eclipse before 3.4 might work for some plugins, but is not supported.</p>
+ <p>JBoss Tools 3.1 is targeting running on Eclipse 3.5
+ to benefit from all the bugfixes and new API's that
+ are made available. Running on version of Eclipse
+ before 3.4 might work for some plugins, but is not
+ supported.</p>
-
<p><small><a
href="https://jira.jboss.org/jira/browse/JBIDE-4123">Related Jira</a></small></p>
Modified: trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -11,7 +11,7 @@
<body>
<h1>Examples 1.1.0.M1 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a></p>
+<p align="right"><a href="../index.html">< Main Index</a> <a href="../esb/esb-news-1.1.0.M1.html">ESB Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
@@ -45,8 +45,6 @@
<p>We have added a few of the Seam exmples to the project example site and we also added Cheatsheets to some of these
based on the Seam Example tutorials allowing you to see the explanation of the code and navigate to it directly in the IDE.</p>
- <p><img src="../images/customprojectexamples.png"/></p>
-
<p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4180">Related jira</a></small></p>
</td>
</tr>
Modified: trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -11,7 +11,7 @@
<body>
<h1>Hibernate tools 3.3.0.M1 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a> <a href="../as/as-news-2.0.0.CR1.html">JBoss AS Tools ></a></p>
+<p align="right"><a href="../index.html">< Main Index</a> <a href="../examples/examples-news-1.1.0.M1.html">Project Examples ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Added: trunk/documentation/whatsnew/images/1secdefaultpublish.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/1secdefaultpublish.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/renameseamcomponent.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/renameseamcomponent.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/setuptemplatecontextmenu.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/setuptemplatecontextmenu.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -11,7 +11,7 @@
<body>
<h1>JST/JSF 3.1.0.M1 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a></p>
+<p align="right"><a href="../index.html">< Main Index</a> <a href="../hibernate/hibernate-news-3.3.0.M1.html">Hibernate Tools News ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
Modified: trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -23,9 +23,15 @@
</tr>
<tr>
<td valign="top" align="left">
- <p><b>View-id refactoring in pages.xml</b></p></td>
- <td valign="top"><p>view-id's are updated in pages.xml now if correspondent xhtml was renamed.</p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3808">Related Jira</a></small></p>
+ <p><b>Seam component refactoring</b></p></td>
+ <td valign="top"><p>You can now rename Seam components and Seam tools will refactor the name changes in pages.xml, xhtml and java.</p>
+<p>The refactoring is available in the context menu of classes that has a @Name annotation, in components.xml and from Seam components view.</p>
+
+<p><img src="../images/renameseamcomponent.png"/></p>
+
+<p>Note: This feature is still experimental and we don't cover all possible combinations yet. If you bump into a problem please report it in jira or speak up in the forums.</p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-1077">Related Jira</a></small></p>
</td>
</tr>
<tr>
@@ -35,11 +41,22 @@
<hr/>
</td>
</tr>
+
<tr>
- <td colspan="2"><hr />
+ <td valign="top" align="left">
+ <p><b>View-id refactoring in pages.xml</b></p></td>
+ <td valign="top"><p>view-id's are updated in pages.xml now if correspondent xhtml was renamed.</p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3808">Related Jira</a></small></p>
</td>
</tr>
<tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Open On's</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
<td valign="top" align="left"><a name="itemnam2e" id="itemname2"></a><b>Drools and jBPM OpenOn</b></td>
<td width="70%" valign="top">
@@ -54,8 +71,6 @@
<tr>
<td colspan="2">
<hr/>
- <h3>Java Editor</h3>
- <hr/>
</td>
</tr>
<tr>
@@ -69,13 +84,11 @@
<tr>
<td colspan="2">
<hr/>
- <h3>Visual Editor</h3>
- <hr/>
</td>
</tr>
<tr>
<td valign="top" align="left">
- <p><b>OpenOn</b></p></td>
+ <p><b>Image and templates</b></p></td>
<td valign="top"><p>Image file can now be navigated to directly via OpenOn's from <s:graphicImage@value>.</p>
<p>Also OpenOn works for template attribute of <s:decorate> tags.</p>
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html 2009-06-08 10:00:34 UTC (rev 15767)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html 2009-06-08 10:16:08 UTC (rev 15768)
@@ -12,7 +12,7 @@
<h1>What's New Visual Page Editor</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../seam/seam-news-2.0.0.CR2.html">Seam Tools ></a></p>
+ href="../seam/seam-news-3.1.0.M1.html">Seam Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
<td colspan="2">
@@ -25,9 +25,14 @@
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Richfaces
Layout Tags</b></td>
<td valign="top">
- <p>Richfaces 3.3 have added a good set of improvements done in the area of layout. The Visual page Editor now supports the new tags in 3.3 especially the layout support (i.e. <code>rich:layoutPanel</code>).</p>
+ <p>Richfaces 3.3 have added a good set of improvements
+ done in the area of layout. The Visual page Editor now
+ supports the new tags in 3.3 especially the layout
+ support (i.e. <code>rich:layoutPanel</code>).</p>
-<p>The visual page editor will obey the layout options that Richfaces provide and give a good approximation of how the Richfaces tags will render.</p>
+<p>The visual page editor will obey the layout options that Richfaces
+provide and give a good approximation of how the Richfaces tags will
+render.</p>
<p><img src="../images/richlayoutpanel.png"/></p>
@@ -108,6 +113,20 @@
<tr>
<td colspan="2">
<hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Page Design options Import/Export</b></td>
+ <td valign="top">
+ <p>Page Design Options is now saved in Eclipse Preferences allowing to import/export these settings to avoid manually setup items such as EL expression overrides.</p>
+
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-3211">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
<h3>Source editor</h3>
<hr />
</td>
@@ -122,6 +141,22 @@
</td>
</tr>
+ <tr>
+ <td>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenOn for Richfaces</b></td>
+ <td valign="top">
+ <p>Both source and visual editor now have the context menu action to setup template for unknown tags. The menu also now state which template the setup is done for to make it easier to understand what the action will do.</p>
+
+ <p><img src="../images/setuptemplatecontextmenu.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3978">Related Jira</a></small></p>
+ </td>
+ </tr>
+
</table>
</body>
16 years, 10 months
JBoss Tools SVN: r15767 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2009-06-08 06:00:34 -0400 (Mon, 08 Jun 2009)
New Revision: 15767
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java
Log:
Updated: "Seam Refactor->Rename Seam Component" appear on java file which contains seam component and it does not depend on selection https://jira.jboss.org/jira/browse/JBIDE-1077
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java 2009-06-08 07:38:51 UTC (rev 15766)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java 2009-06-08 10:00:34 UTC (rev 15767)
@@ -110,27 +110,40 @@
public void createContributionItems(IServiceLocator serviceLocator,
IContributionRoot additions) {
- System.out.println("createContributionItems");
+ //System.out.println("createContributionItems");
if(serviceLocator.hasService(IWorkbenchLocationService.class)){
IWorkbenchLocationService service = (IWorkbenchLocationService)serviceLocator.getService(IWorkbenchLocationService.class);
editor = service.getWorkbenchWindow().getActivePage().getActiveEditor();
shell = service.getWorkbench().getActiveWorkbenchWindow().getShell();
+ if(!(editor.getEditorInput() instanceof FileEditorInput))
+ return;
+
+ MenuManager mm = new MenuManager(SeamUIMessages.SEAM_REFACTOR);
+ mm.setVisible(true);
+
+ FileEditorInput input = (FileEditorInput)editor.getEditorInput();
+
+ editorFile = input.getFile();
+
+ ISeamComponent component = getComponent(editorFile);
+ if(component != null){
+ mm.add(new RenameSeamComponentAction());
+
+ additions.addContributionItem(mm, null);
+ }
+
ISelection sel = editor.getEditorSite().getSelectionProvider().getSelection();
if(sel == null || sel.isEmpty())
return;
- if(sel instanceof TextSelection && editor.getEditorInput() instanceof FileEditorInput){
+ if(sel instanceof TextSelection){
TextSelection selection = (TextSelection)sel;
selectedText = selection.getText();
- FileEditorInput input = (FileEditorInput)editor.getEditorInput();
-
- editorFile = input.getFile();
-
fileContent = null;
try {
fileContent = FileUtil.readStream(editorFile.getContents());
@@ -139,18 +152,15 @@
return;
}
- MenuManager mm = new MenuManager(SeamUIMessages.SEAM_REFACTOR);
- mm.setVisible(true);
-
boolean status = false;
String ext = editorFile.getFileExtension();
if(JAVA_EXT.equalsIgnoreCase(ext)){
- if(checkNameAnnotation(selection)){
- mm.add(new RenameSeamComponentAction());
-
- additions.addContributionItem(mm, null);
- }
+// if(checkNameAnnotation(selection)){
+// mm.add(new RenameSeamComponentAction());
+//
+// additions.addContributionItem(mm, null);
+// }
status = checkContextVariableInJava(editorFile, fileContent, selection);
} else if(XML_EXT.equalsIgnoreCase(ext) || XHTML_EXT.equalsIgnoreCase(ext) || JSP_EXT.equalsIgnoreCase(ext))
status = checkContextVariableInDOM(editorFile, fileContent, selection);
@@ -295,6 +305,26 @@
return scanString(file, content, 0, selection);
}
+ private ISeamComponent getComponent(IFile file){
+ IProject project = file.getProject();
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
+ if (seamProject != null) {
+ Set<ISeamComponent> components = seamProject.getComponentsByPath(editorFile.getFullPath());
+ for(ISeamComponent component : components){
+ ISeamJavaComponentDeclaration declaration = component.getJavaDeclaration();
+ if(declaration != null){
+ IResource resource = declaration.getResource();
+ if(resource != null && resource.getFullPath().equals(editorFile.getFullPath())){
+ if(declaration.getName().equals(component.getName())){
+ return component;
+ }
+ }
+ }
+ }
+ }
+ return null;
+ }
+
private IAnnotation getNameAnnotation(IFile file){
try{
ICompilationUnit unit = getCompilationUnit(file);
@@ -374,27 +404,8 @@
public void run(){
saveAndBuild();
- IEditorInput input = editor.getEditorInput();
- if (input instanceof IFileEditorInput) {
- IProject project = editorFile.getProject();
- ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
- if (seamProject != null) {
- Set<ISeamComponent> components = seamProject.getComponentsByPath(editorFile.getFullPath());
- for(ISeamComponent component : components){
- ISeamJavaComponentDeclaration declaration = component.getJavaDeclaration();
- if(declaration != null){
- IResource resource = declaration.getResource();
- if(resource != null && resource.getFullPath().equals(editorFile.getFullPath())){
- if(declaration.getName().equals(component.getName())){
- invokeRenameComponentWizard(component, shell);
- return;
- }
- }
- }
- }
- }
- }
- invokeRenameComponentWizard(null, shell);
+ ISeamComponent component = getComponent(editorFile);
+ invokeRenameComponentWizard(component, shell);
}
}
16 years, 10 months
JBoss Tools SVN: r15766 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-06-08 03:38:51 -0400 (Mon, 08 Jun 2009)
New Revision: 15766
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
NPE fixed. https://jira.jboss.org/jira/browse/JBIDE-4142
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2009-06-08 05:56:25 UTC (rev 15765)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2009-06-08 07:38:51 UTC (rev 15766)
@@ -1697,10 +1697,20 @@
new VpeSourceInnerDragInfo(dragNode, 0, 0),
new VpeSourceInnerDropInfo(container, offset, true));
} else {
- ((VpeElementMapping) oldMapping).getTemplate().innerDrop(
- pageContext,
- new VpeSourceInnerDragInfo(dragNode, 0, 0),
- new VpeSourceInnerDropInfo(container, offset, true));
+ if (oldMapping instanceof VpeElementMapping) {
+ ((VpeElementMapping) oldMapping).getTemplate().innerDrop(
+ pageContext,
+ new VpeSourceInnerDragInfo(dragNode, 0, 0),
+ new VpeSourceInnerDropInfo(container, offset, true));
+ } else {
+ /* TODO: implement this case or completely
+ * remove this method?
+ * At the time of writing this comment
+ * the implementation of template.innerDrop() method above
+ * was empty, so there are no differences between
+ * calling this method and doing nothing.
+ */
+ }
}
// }
16 years, 10 months
JBoss Tools SVN: r15765 - in trunk/as/plugins: org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-06-08 01:56:25 -0400 (Mon, 08 Jun 2009)
New Revision: 15765
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
Log:
JBIDE-4428
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java 2009-06-08 05:46:44 UTC (rev 15764)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java 2009-06-08 05:56:25 UTC (rev 15765)
@@ -41,7 +41,12 @@
private String getNextRuntimeName() {
String version = getRuntime().getRuntimeType().getVersion();
- String base = Messages.jboss + " " + version + " " + Messages.runtime; //$NON-NLS-1$//$NON-NLS-2$
+ String base = null;
+ if( getRuntime().getRuntimeType().getId().startsWith("org.jboss.ide.eclipse.as.runtime.eap.")) { //$NON-NLS-1$
+ base = Messages.jboss + " EAP " + version + " " + Messages.runtime; //$NON-NLS-1$ //$NON-NLS-2$
+ } else {
+ base = Messages.jboss + " " + version + " " + Messages.runtime; //$NON-NLS-1$//$NON-NLS-2$
+ }
return getNextRuntimeName(base);
}
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 2009-06-08 05:46:44 UTC (rev 15764)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-06-08 05:56:25 UTC (rev 15765)
@@ -225,16 +225,6 @@
homeDirText.setEditable(canEdit);
homeDirButton.setEnabled(canEdit);
configurations.getTable().setVisible(canEdit);
- } else {
- // STUPID ECLIPSE BUG https://bugs.eclipse.org/bugs/show_bug.cgi?id=263928
- IRuntime r = (IRuntime) getTaskModel()
- .getObject(TaskModel.TASK_RUNTIME);
- String oldName = r.getName();
- if( r.isWorkingCopy() ) {
- String newName = oldName.replace("Enterprise Application Platform", "EAP"); //$NON-NLS-1$ //$NON-NLS-2$
- newName = LocalJBossServerRuntime.getNextRuntimeName(newName);
- ((IRuntimeWorkingCopy)r).setName(newName);
- }
}
}
16 years, 10 months
JBoss Tools SVN: r15764 - workspace/Denny/bpel/bpel-plugins.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2009-06-08 01:46:44 -0400 (Mon, 08 Jun 2009)
New Revision: 15764
Added:
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.ui_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.runtime_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.ui_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.runtimes_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.ui_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.validator_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.wsil.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.xpath10_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.jboss.bpel.as.integration_1.0.0.jar
workspace/Denny/bpel/bpel-plugins/org.jboss.ide.eclipse.as.core_1.0.0.jar
Log:
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.model_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.model_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.ui_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.ui_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.runtime_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.runtime_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.model_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.model_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.ui_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.ui_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.model_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.model_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.runtimes_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.runtimes_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.ui_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.ui_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.validator_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.validator_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.wsil.model_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.wsil.model_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.xpath10_0.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.xpath10_0.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.jboss.bpel.as.integration_1.0.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.jboss.bpel.as.integration_1.0.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/Denny/bpel/bpel-plugins/org.jboss.ide.eclipse.as.core_1.0.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/Denny/bpel/bpel-plugins/org.jboss.ide.eclipse.as.core_1.0.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 10 months
JBoss Tools SVN: r15763 - workspace/Denny/bpel/bpel-plugins.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2009-06-08 01:42:34 -0400 (Mon, 08 Jun 2009)
New Revision: 15763
Removed:
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.ui_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.runtime_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.ui_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.runtimes_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.ui_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.validator_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.wsil.model_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.xpath10_0.4.0.jar
workspace/Denny/bpel/bpel-plugins/org.jboss.bpel.as.integration_1.0.0.jar
workspace/Denny/bpel/bpel-plugins/org.jboss.ide.eclipse.as.core_1.0.0.jar
Log:
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.model_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.deploy.ui_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.apache.ode.runtime_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.model_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.common.ui_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.model_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.runtimes_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.ui_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.validator_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.wsil.model_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.eclipse.bpel.xpath10_0.4.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.jboss.bpel.as.integration_1.0.0.jar
===================================================================
(Binary files differ)
Deleted: workspace/Denny/bpel/bpel-plugins/org.jboss.ide.eclipse.as.core_1.0.0.jar
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Tools SVN: r15762 - in trunk/jmx/plugins: org.jboss.tools.jmx.core/.settings and 11 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-06-07 23:33:39 -0400 (Sun, 07 Jun 2009)
New Revision: 15762
Added:
trunk/jmx/plugins/org.jboss.tools.jmx.core/.settings/
trunk/jmx/plugins/org.jboss.tools.jmx.core/.settings/org.eclipse.jdt.core.prefs
Modified:
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.java
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.properties
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/NodeUtils.java
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/FileUtil.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/.settings/org.eclipse.jdt.core.prefs
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.properties
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/StringUtils.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/CollectionControlFactory.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/MapControlFactory.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TabularDataControlFactory.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TextControlFactory.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/dialogs/OpenMBeanSelectionDialog.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/MBeanEditorInput.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/NotificationsPage.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/EmbedableLabelProvider.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/JMXNavigator.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerContentProvider.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerLabelProvider.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/QueryContribution.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/UpdateSelectionJob.java
Log:
NLS completion, all for Sean
Added: trunk/jmx/plugins/org.jboss.tools.jmx.core/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/.settings/org.eclipse.jdt.core.prefs 2009-06-08 03:33:39 UTC (rev 15762)
@@ -0,0 +1,64 @@
+#Mon Jun 08 11:20:36 PDT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -20,6 +20,10 @@
public static String DefaultConnection_ErrorRemoving;
public static String DefaultConnection_ErrorLoading;
public static String DefaultConnection_ErrorRunningJMXCode;
+ public static String ProblemWritingToFile;
+ public static String LoadMBeans;
+ public static String InspectMBeans;
+
static {
NLS.initializeMessages("org.jboss.tools.jmx.core.JMXCoreMessages", //$NON-NLS-1$
JMXCoreMessages.class);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.properties
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.properties 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/JMXCoreMessages.properties 2009-06-08 03:33:39 UTC (rev 15762)
@@ -8,3 +8,6 @@
DefaultConnection_ErrorAdding=Error adding connection.
DefaultConnection_ErrorRemoving=Error removing connection.
DefaultConnection_ErrorRunningJMXCode=Error executing JMX request.
+ProblemWritingToFile=Problem writing to file {0}
+LoadMBeans=Load MBeans
+InspectMBeans=Inspect MBeans
\ No newline at end of file
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/NodeUtils.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/NodeUtils.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/NodeUtils.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -18,6 +18,7 @@
import org.eclipse.core.runtime.SubProgressMonitor;
import org.jboss.tools.jmx.core.IConnectionWrapper;
import org.jboss.tools.jmx.core.IJMXRunnable;
+import org.jboss.tools.jmx.core.JMXCoreMessages;
import org.jboss.tools.jmx.core.JMXException;
public class NodeUtils {
@@ -49,11 +50,11 @@
final Root[] _root = new Root[1];
connectionWrapper.run(new IJMXRunnable() {
public void run(MBeanServerConnection connection) throws Exception {
- monitor.beginTask("Load MBeans", 1000);
+ monitor.beginTask(JMXCoreMessages.LoadMBeans, 1000);
Set beanInfo = connection.queryNames(new ObjectName("*:*"), null); //$NON-NLS-1$
monitor.worked(100);
SubProgressMonitor subMon = new SubProgressMonitor(monitor, 900);
- subMon.beginTask("Inspect MBeans", beanInfo.size() * 100);
+ subMon.beginTask(JMXCoreMessages.InspectMBeans, beanInfo.size() * 100);
_root[0] = NodeBuilder.createRoot(connectionWrapper);
Iterator iter = beanInfo.iterator();
while (iter.hasNext()) {
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/FileUtil.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/FileUtil.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/FileUtil.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -41,7 +41,9 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
+import org.eclipse.osgi.util.NLS;
import org.jboss.tools.jmx.core.JMXActivator;
+import org.jboss.tools.jmx.core.JMXCoreMessages;
public final class FileUtil {
@@ -49,9 +51,9 @@
public FileUtil() {}
public static String readFile(File f) {
- if(!f.isFile()) return "";
+ if(!f.isFile()) return ""; //$NON-NLS-1$
ReadBytes bs = readBytes(f);
- if(bs == null) return "";
+ if(bs == null) return ""; //$NON-NLS-1$
String encoding = getEncoding(bs.bs);
if(encoding == null) return new String(bs.bs, 0, bs.length);
try {
@@ -143,7 +145,7 @@
}
public static String readStream(InputStream is) {
- StringBuffer sb = new StringBuffer("");
+ StringBuffer sb = new StringBuffer(""); //$NON-NLS-1$
try {
byte[] b = new byte[4096];
while(true) {
@@ -161,8 +163,8 @@
public static boolean writeFile(File f, String value) {
if(value == null) return false;
String encoding = getEncoding(value);
- if(value.startsWith("<?xml")) {
- String s = validateEncoding(encoding, "UTF-8");
+ if(value.startsWith("<?xml")) { //$NON-NLS-1$
+ String s = validateEncoding(encoding, "UTF-8"); //$NON-NLS-1$
if(encoding == null) {
encoding = s;
} else if(s == null || !s.equals(encoding)) {
@@ -179,9 +181,9 @@
if(f.isFile() && !isSameFile(f)) f.delete();
if(!f.exists()) f.createNewFile();
} catch (IOException e) {
- JMXActivator.log("Problem writing to file " + f, e);
+ JMXActivator.log(NLS.bind(JMXCoreMessages.ProblemWritingToFile, f), e);
} catch (SecurityException e) {
- JMXActivator.log("Problem writing to file " + f, e);
+ JMXActivator.log(NLS.bind(JMXCoreMessages.ProblemWritingToFile, f), e);
}
PrintWriter pw = new PrintWriter(new FileWriter(f));
pw.print(value);
@@ -413,10 +415,10 @@
public static void add(File f, String name, JarOutputStream jos) throws IOException {
String en = name;
- if(f.isDirectory()) en += "/";
- JarEntry entry = (en.endsWith("/")) ? null : new JarEntry(en);
+ if(f.isDirectory()) en += "/"; //$NON-NLS-1$
+ JarEntry entry = (en.endsWith("/")) ? null : new JarEntry(en); //$NON-NLS-1$
if(f.isDirectory()) {
- if("/".equals(en)) en = "";
+ if("/".equals(en)) en = ""; //$NON-NLS-1$ //$NON-NLS-2$
File[] fs = f.listFiles();
if(fs != null) for (int i = 0; i < fs.length; i++)
add(fs[i], en + fs[i].getName(), jos);
@@ -487,7 +489,7 @@
if(url == null) return null;
String resultUrl = url.replace('\\', '/');
/// if(!url.startsWith("file:/")) return url;
- if(!resultUrl.startsWith("file:")) return resultUrl;
+ if(!resultUrl.startsWith("file:")) return resultUrl; //$NON-NLS-1$
int iLast = resultUrl.lastIndexOf(':'), iFirst = resultUrl.indexOf(':');
return (iLast == iFirst) ? resultUrl.substring(5) : resultUrl.substring(iLast - 1);
}
@@ -501,19 +503,19 @@
int i = 0;
while(i < r.length && i < p.length && r[i].equalsIgnoreCase(p[i])) ++i;
StringBuffer sb = new StringBuffer();
- for (int k = i; k < r.length; k++) sb.append("/..");
- for (int k = i; k < p.length; k++) sb.append("/").append(p[k]);
+ for (int k = i; k < r.length; k++) sb.append("/.."); //$NON-NLS-1$
+ for (int k = i; k < p.length; k++) sb.append("/").append(p[k]); //$NON-NLS-1$
return sb.toString();
}
private static String[] tokenizePath(String path) {
String tokenizedPath = path.replace('\\', '/');
- StringTokenizer st = new StringTokenizer(tokenizedPath, "/");
+ StringTokenizer st = new StringTokenizer(tokenizedPath, "/"); //$NON-NLS-1$
ArrayList l = new ArrayList();
while(st.hasMoreTokens()) {
String t = st.nextToken();
- if(t.length() == 0 || t.equals(".")) continue;
- if(t.equals("..")) {
+ if(t.length() == 0 || t.equals(".")) continue; //$NON-NLS-1$
+ if(t.equals("..")) { //$NON-NLS-1$
if(l.size() > 0) l.remove(l.size() - 1);
continue;
}
@@ -525,20 +527,20 @@
public static String encode(String text, String encoding) {
if(true) return text;
try {
- byte[] bs = text.getBytes(System.getProperty("file.encoding"));
+ byte[] bs = text.getBytes(System.getProperty("file.encoding")); //$NON-NLS-1$
ByteArrayInputStream is = new ByteArrayInputStream(bs);
InputStreamReader r = new InputStreamReader(is, encoding);
char[] cs = new char[bs.length];
int l = r.read(cs, 0, cs.length);
return new String(cs, 0, l);
} catch (IOException e) {
- if("UTF-8".equals(encoding)) return text;
- return encode(text, "UTF-8");
+ if("UTF-8".equals(encoding)) return text; //$NON-NLS-1$
+ return encode(text, "UTF-8"); //$NON-NLS-1$
}
}
public static String encodeDefault(String text) {
- return encode(text, System.getProperties().getProperty("file.encoding"));
+ return encode(text, System.getProperties().getProperty("file.encoding")); //$NON-NLS-1$
}
/*
@@ -592,10 +594,10 @@
public static String getEncoding(String s) {
if(s == null) return null;
- if(s.startsWith("<?xml")) {
- int i = s.indexOf("encoding=");
+ if(s.startsWith("<?xml")) { //$NON-NLS-1$
+ int i = s.indexOf("encoding="); //$NON-NLS-1$
if(i < 0) return null;
- i += "encoding=".length() + 1;
+ i += "encoding=".length() + 1; //$NON-NLS-1$
int j = s.indexOf('\"', i);
if(j < 0) return null;
return s.substring(i, j);
@@ -611,7 +613,7 @@
if(validEncodings.contains(encoding)) return encoding;
if(invalidEncodings.contains(encoding)) return defaultEncoding;
try {
- if(defaultEncoding.equals("UTF-16")) {
+ if(defaultEncoding.equals("UTF-16")) { //$NON-NLS-1$
new String(XML_16, 0, XML_16.length, encoding);
} else {
new String(XML_8, 0, XML_8.length, encoding);
@@ -631,15 +633,15 @@
if(bs.length < 20) return null;
if(startsWith(bs, XML_8)) {
int i = getIndex(bs, (byte)'?', 5);
- if(i < 0) return "UTF-8";
+ if(i < 0) return "UTF-8";//$NON-NLS-1$
String encoding = getEncoding(new String(bs, 0, i));
- return validateEncoding(encoding, "UTF-8");
+ return validateEncoding(encoding, "UTF-8");//$NON-NLS-1$
} else if(startsWith(bs, XML_16)) {
int i = getIndex(bs, (byte)'?', XML_16.length);
- if(i < 0) return "UTF-16";
+ if(i < 0) return "UTF-16";//$NON-NLS-1$
try {
- String encoding = getEncoding(new String(bs, 0, i, "UTF-16"));
- return validateEncoding(encoding, "UTF-16");
+ String encoding = getEncoding(new String(bs, 0, i, "UTF-16"));//$NON-NLS-1$
+ return validateEncoding(encoding, "UTF-16");//$NON-NLS-1$
} catch (UnsupportedEncodingException e) {
return null;
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/.settings/org.eclipse.jdt.core.prefs 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/.settings/org.eclipse.jdt.core.prefs 2009-06-08 03:33:39 UTC (rev 15762)
@@ -1,4 +1,4 @@
-#Wed Feb 14 16:03:30 CET 2007
+#Mon Jun 08 11:25:11 PDT 2009
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
@@ -7,6 +7,68 @@
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -29,8 +29,6 @@
public static String DefaultConnectionWizardPage_Name_In_Use;
public static String DeleteConnection;
-
-
public static String AttributeControlFactory_updateButtonTitle;
public static String AttributeDetails_title;
public static String AttributeDetailsSection_errorTitle;
@@ -85,8 +83,11 @@
public static String vertical;
public static String writable;
public static String writeOnly;
+ public static String TypeInAFilter;
+ public static String LoadingJMXNodes;
+ public static String Loading;
+ public static String UpdatingSelectionJob;
-
static {
NLS.initializeMessages("org.jboss.tools.jmx.ui.Messages", //$NON-NLS-1$
Messages.class);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.properties
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.properties 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/Messages.properties 2009-06-08 03:33:39 UTC (rev 15762)
@@ -72,4 +72,8 @@
vertical=vertical
writable=Writable
writeOnly=Write-Only
-DeleteConnection=Delete Connection
\ No newline at end of file
+DeleteConnection=Delete Connection
+TypeInAFilter=Type in a filter
+LoadingJMXNodes=Loading JMX Nodes
+Loading=Loading...
+UpdatingSelectionJob=Updating selection job
\ No newline at end of file
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/StringUtils.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/StringUtils.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/StringUtils.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -69,7 +69,7 @@
* this function is be called recursively to display multi-dimensional
* arrays, e.g. int[][]
*/
- @SuppressWarnings("unchecked") //$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public static String toString(String type, boolean detailed) {
Assert.isNotNull(type);
Assert.isLegal(type.length() > 0);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -20,7 +20,7 @@
/**
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
- @SuppressWarnings("unchecked") //$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public Class[] getAdapterList() {
return new Class[] { IPropertySource.class };
}
@@ -29,7 +29,7 @@
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object,
* java.lang.Class)
*/
- @SuppressWarnings("unchecked") //$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adapterType == IPropertySource.class) {
return adaptToPropertySource(adaptableObject);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/CollectionControlFactory.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/CollectionControlFactory.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/CollectionControlFactory.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -24,7 +24,7 @@
public class CollectionControlFactory extends AbstractTabularControlFactory {
@Override
- @SuppressWarnings("unchecked") //$NON-NLS-1$
+ @SuppressWarnings("unchecked")
protected void fillTable(final Table table, final Object value) {
TableColumn columnName = new TableColumn(table, SWT.NONE);
columnName.setText(Messages.name);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/MapControlFactory.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/MapControlFactory.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/MapControlFactory.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -24,7 +24,7 @@
public class MapControlFactory extends AbstractTabularControlFactory {
@Override
- @SuppressWarnings("unchecked") //$NON-NLS-1$
+ @SuppressWarnings("unchecked")
protected void fillTable(final Table table, final Object value) {
TableColumn keyColumn = new TableColumn(table, SWT.NONE);
keyColumn.setText(Messages.key);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TabularDataControlFactory.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TabularDataControlFactory.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TabularDataControlFactory.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -26,7 +26,7 @@
public class TabularDataControlFactory extends AbstractTabularControlFactory {
@Override
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
protected void fillTable(final Table table, final Object value) {
TabularData data = (TabularData) value;
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TextControlFactory.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TextControlFactory.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/controls/TextControlFactory.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -116,7 +116,7 @@
if (toolkit != null) {
text = toolkit.createText(parent, "", style); //$NON-NLS-1$
} else {
- text = new Text(parent, style); //$NON-NLS-1$
+ text = new Text(parent, style);
}
return text;
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/dialogs/OpenMBeanSelectionDialog.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/dialogs/OpenMBeanSelectionDialog.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/dialogs/OpenMBeanSelectionDialog.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -60,7 +60,7 @@
return result;
}
- @SuppressWarnings("unchecked") //$NON-NLS-1$
+ @SuppressWarnings("unchecked")
@Override
protected Control createDialogArea(Composite parent) {
Composite area = (Composite) super.createDialogArea(parent);
@@ -94,7 +94,7 @@
}
@Override
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
protected void computeResult() {
IStructuredSelection selection = (IStructuredSelection) viewer
.getSelection();
@@ -114,13 +114,13 @@
class ContentProvider implements IStructuredContentProvider,
ITreeContentProvider {
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
private List mbeans;
ContentProvider() {
}
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public void inputChanged(Viewer v, Object oldInput, Object newInput) {
this.mbeans = (List) newInput;
}
@@ -128,7 +128,7 @@
public void dispose() {
}
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public Object[] getElements(Object parent) {
if (mbeans != null) {
return mbeans
@@ -141,7 +141,7 @@
return null;
}
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public Object[] getChildren(Object parent) {
return new Object[0];
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/MBeanEditorInput.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/MBeanEditorInput.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/MBeanEditorInput.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -42,7 +42,7 @@
return wrapper.getObjectName().getCanonicalName();
}
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public Object getAdapter(Class adapter) {
return null;
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/NotificationsPage.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/NotificationsPage.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/NotificationsPage.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -82,7 +82,7 @@
private NotificationListener listener;
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
private List notifications = new ArrayList();
private TableViewer viewer;
@@ -157,7 +157,7 @@
viewer.setLabelProvider(new NotificationLabelProvider());
viewer.setContentProvider(new IStructuredContentProvider() {
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public Object[] getElements(Object inputElement) {
return (Notification[]) notifications
.toArray(new Notification[notifications.size()]);
@@ -173,7 +173,7 @@
});
viewer.setInput(notifications);
listener = new NotificationListener() {
- @SuppressWarnings("unchecked")//$NON-NLS-1$
+ @SuppressWarnings("unchecked")
public void handleNotification(final Notification notification,
Object handback) {
// add notification at the head so that the more recent
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -248,7 +248,7 @@
}});
}
} catch (Exception e) {
- String message = e.getClass().getName() + ": " + e.getLocalizedMessage();
+ String message = e.getClass().getName() + ": " + e.getLocalizedMessage(); //$NON-NLS-1$
JMXUIActivator.log(IStatus.ERROR, e.getClass().getName(), e);
// if the exception has a cause, it is likely more interesting
// since it may be the exception thrown by the mbean
@@ -256,7 +256,7 @@
// rather than the exception thrown by the mbean server
// connection
if (e.getCause() != null) {
- message = e.getCause().getClass().getName() + ": " + e.getCause().getLocalizedMessage();
+ message = e.getCause().getClass().getName() + ": " + e.getCause().getLocalizedMessage(); //$NON-NLS-1$
}
final String message2 = message;
Display.getDefault().asyncExec(new Runnable() { public void run() {
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/EmbedableLabelProvider.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/EmbedableLabelProvider.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/EmbedableLabelProvider.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -16,7 +16,7 @@
public String getText(Object element) {
if( element instanceof IConnectionWrapper ) {
- return "JMX";
+ return "JMX"; //$NON-NLS-1$
}
return delegate.getText(element);
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/JMXNavigator.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/JMXNavigator.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/JMXNavigator.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -23,6 +23,7 @@
import org.eclipse.ui.internal.navigator.NavigatorContentService;
import org.eclipse.ui.navigator.CommonNavigator;
import org.eclipse.ui.navigator.LinkHelperService;
+import org.jboss.tools.jmx.ui.Messages;
import org.jboss.tools.jmx.ui.internal.actions.NewConnectionAction;
/**
@@ -60,8 +61,8 @@
fd.bottom = new FormAttachment(100,0);
getCommonViewer().getTree().setLayoutData(fd);
- filterText.setToolTipText("Type in a filter");
- filterText.setText("Type in a filter");
+ filterText.setToolTipText(Messages.TypeInAFilter);
+ filterText.setText(Messages.TypeInAFilter);
Display.getDefault().asyncExec(new Runnable() {
public void run() {
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerContentProvider.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerContentProvider.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerContentProvider.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -30,6 +30,7 @@
import org.jboss.tools.jmx.core.tree.Node;
import org.jboss.tools.jmx.core.tree.ObjectNameNode;
import org.jboss.tools.jmx.core.tree.Root;
+import org.jboss.tools.jmx.ui.Messages;
/**
* Content provider for the view
@@ -99,7 +100,7 @@
return getChildren(w.getRoot());
// Must load the model
- Job job = new Job("Loading JMX Nodes") {
+ Job job = new Job(Messages.LoadingJMXNodes) {
protected IStatus run(IProgressMonitor monitor) {
try {
w.loadRoot(monitor);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerLabelProvider.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerLabelProvider.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/MBeanExplorerLabelProvider.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -28,6 +28,7 @@
import org.jboss.tools.jmx.core.tree.DomainNode;
import org.jboss.tools.jmx.core.tree.ObjectNameNode;
import org.jboss.tools.jmx.core.tree.PropertyNode;
+import org.jboss.tools.jmx.ui.Messages;
import org.jboss.tools.jmx.ui.UIExtensionManager;
import org.jboss.tools.jmx.ui.UIExtensionManager.ConnectionProviderUI;
import org.jboss.tools.jmx.ui.internal.JMXImages;
@@ -68,7 +69,7 @@
}
if( obj instanceof DelayProxy ) {
- return "Loading...";
+ return Messages.Loading;
}
if (obj instanceof DomainNode) {
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/QueryContribution.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/QueryContribution.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/QueryContribution.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -68,12 +68,12 @@
protected void addListener() {
navigator.getFilterText().addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- boolean searchNew = matches == null || filterText == null || filterText.equals("")
+ boolean searchNew = matches == null || filterText == null || filterText.equals("") //$NON-NLS-1$
|| !navigator.getFilterText().getText().startsWith(filterText);
RefineThread thread = new RefineThread(searchNew,
navigator.getFilterText().getText(),
matches, shouldShow);
- if( !navigator.getFilterText().getText().equals("")) {
+ if( !navigator.getFilterText().getText().equals("")) { //$NON-NLS-1$
if( refineThread != null )
refineThread.cancel();
refineThread = thread;
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/UpdateSelectionJob.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/UpdateSelectionJob.java 2009-06-07 13:56:54 UTC (rev 15761)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/views/navigator/UpdateSelectionJob.java 2009-06-08 03:33:39 UTC (rev 15762)
@@ -27,11 +27,11 @@
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.internal.navigator.NavigatorContentService;
import org.eclipse.ui.internal.navigator.NavigatorPlugin;
import org.eclipse.ui.navigator.CommonNavigator;
import org.eclipse.ui.navigator.LinkHelperService;
import org.eclipse.ui.progress.UIJob;
+import org.jboss.tools.jmx.ui.Messages;
public class UpdateSelectionJob extends UIJob {
@@ -53,7 +53,7 @@
private CommonNavigator commonNavigator;
private LinkHelperService linkService;
public UpdateSelectionJob(CommonNavigator commonNavigator) {
- super("Updating Selection Job"); // TODO
+ super(Messages.UpdatingSelectionJob); // TODO
this.commonNavigator = commonNavigator;
if( commonNavigator instanceof JMXNavigator ) {
linkService = ((JMXNavigator)commonNavigator).getLinkHelperService();
16 years, 10 months
JBoss Tools SVN: r15761 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-06-07 09:56:54 -0400 (Sun, 07 Jun 2009)
New Revision: 15761
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4394
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-06-07 12:54:48 UTC (rev 15760)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-06-07 13:56:54 UTC (rev 15761)
@@ -164,7 +164,9 @@
browser.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(MouseEvent e) {
if (e.widget == browser) {
+ browser.setEnabled(false);
previewComposite.setMaximizedControl(previewText);
+ previewText.setFocus();
}
}
});
@@ -182,6 +184,7 @@
setPreviewContent(text);
}
+ browser.setEnabled(true);
browser.setText(generateBrowserPage());
previewComposite.setMaximizedControl(browser);
}
16 years, 10 months
JBoss Tools SVN: r15760 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-06-07 08:54:48 -0400 (Sun, 07 Jun 2009)
New Revision: 15760
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4394
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-06-06 20:57:04 UTC (rev 15759)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-06-07 12:54:48 UTC (rev 15760)
@@ -164,19 +164,14 @@
browser.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(MouseEvent e) {
if (e.widget == browser) {
- browser.setVisible(false);
- previewText.setVisible(true);
- previewText.setFocus();
+ previewComposite.setMaximizedControl(previewText);
}
- previewComposite.layout();
}
});
previewText = new Text(previewComposite, SWT.NONE | SWT.H_SCROLL);
previewText.setLayoutData(gridData);
previewText.setText(getPreviewContent());
- previewText.setEditable(true);
- previewText.setVisible(false);
previewText.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
if (e.widget == previewText) {
@@ -188,14 +183,12 @@
}
browser.setText(generateBrowserPage());
- previewText.setVisible(false);
- browser.setVisible(true);
- previewComposite.layout();
+ previewComposite.setMaximizedControl(browser);
}
}
});
- previewComposite.layout();
+ previewComposite.setMaximizedControl(browser);
return previewComposite;
}
16 years, 10 months