You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(41) |
Apr
(9) |
May
|
Jun
|
Jul
(39) |
Aug
(38) |
Sep
(135) |
Oct
(220) |
Nov
(75) |
Dec
(74) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(44) |
Feb
(160) |
Mar
(49) |
Apr
(69) |
May
(40) |
Jun
(52) |
Jul
(47) |
Aug
(51) |
Sep
(19) |
Oct
(22) |
Nov
(36) |
Dec
(76) |
| 2007 |
Jan
(154) |
Feb
(165) |
Mar
(186) |
Apr
(143) |
May
(175) |
Jun
(133) |
Jul
(203) |
Aug
(177) |
Sep
(136) |
Oct
|
Nov
|
Dec
|
|
From: <caw...@us...> - 2007-07-25 18:13:47
|
Revision: 2872
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2872&view=rev
Author: cawilliams
Date: 2007-07-25 11:13:44 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
hide org.rubypeople.rdt.internal.codeassist
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java 2007-07-25 18:11:23 UTC (rev 2871)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java 2007-07-25 18:13:44 UTC (rev 2872)
@@ -19,7 +19,6 @@
import org.jruby.lexer.yacc.SyntaxException;
import org.rubypeople.rdt.core.IRubyScript;
import org.rubypeople.rdt.core.RubyModelException;
-import org.rubypeople.rdt.internal.codeassist.SelectionEngine;
import org.rubypeople.rdt.internal.core.parser.RubyParser;
import org.rubypeople.rdt.internal.ui.RubyPlugin;
import org.rubypeople.rdt.ui.IWorkingCopyManager;
@@ -84,7 +83,6 @@
List extensions = initExtensions();
// first ask the extensions
if (extensions.size() > 0) {
- SelectionEngine engine = new SelectionEngine();
IWorkingCopyManager manager = RubyPlugin.getDefault().getWorkingCopyManager();
IRubyScript script = manager.getWorkingCopy(fEditorInput);
if (script == null) return null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:11:24
|
Revision: 2871
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2871&view=rev
Author: cawilliams
Date: 2007-07-25 11:11:23 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
remove unused dependency
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF
Modified: trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF 2007-07-25 18:09:51 UTC (rev 2870)
+++ trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF 2007-07-25 18:11:23 UTC (rev 2871)
@@ -50,7 +50,6 @@
org.eclipse.ui.console,
org.eclipse.debug.ui,
org.rubypeople.rdt.core,
- org.eclipse.ui.workbench,
org.eclipse.ui.forms,
org.eclipse.ui.navigator,
org.rubypeople.rdt.launching,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:09:52
|
Revision: 2870
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2870&view=rev
Author: cawilliams
Date: 2007-07-25 11:09:51 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
remove unused dependency
Modified Paths:
--------------
trunk/com.aptana.rdt/META-INF/MANIFEST.MF
Modified: trunk/com.aptana.rdt/META-INF/MANIFEST.MF
===================================================================
--- trunk/com.aptana.rdt/META-INF/MANIFEST.MF 2007-07-25 18:09:03 UTC (rev 2869)
+++ trunk/com.aptana.rdt/META-INF/MANIFEST.MF 2007-07-25 18:09:51 UTC (rev 2870)
@@ -14,7 +14,6 @@
com.aptana.rdt.launching
Require-Bundle: org.eclipse.core.resources,
org.eclipse.core.runtime,
- org.eclipse.jface.text,
org.eclipse.debug.core,
org.eclipse.debug.ui,
org.jruby,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:09:06
|
Revision: 2869
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2869&view=rev
Author: cawilliams
Date: 2007-07-25 11:09:03 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:08:40
|
Revision: 2868
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2868&view=rev
Author: cawilliams
Date: 2007-07-25 11:08:38 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
add GEM_LIB as a reserved variable name
Modified Paths:
--------------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-07-25 18:08:33 UTC (rev 2867)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-07-25 18:08:38 UTC (rev 2868)
@@ -98,7 +98,6 @@
* Classpath variable name used for the default RubyVM's library
* (value <code>"RUBY_LIB"</code>).
*/
-// FIXME We need to define more library variables! RUBY_CORE, RUBY_STD_LIB, RUBY_SITE_LIB
public static final String RUBYLIB_VARIABLE= "RUBY_LIB"; //$NON-NLS-1$
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:08:34
|
Revision: 2867
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2867&view=rev
Author: cawilliams
Date: 2007-07-25 11:08:33 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
add GEM_LIB as a reserved variable name
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/VariableBlock.java
Modified: trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF 2007-07-25 18:03:07 UTC (rev 2866)
+++ trunk/org.rubypeople.rdt.ui/META-INF/MANIFEST.MF 2007-07-25 18:08:33 UTC (rev 2867)
@@ -60,6 +60,7 @@
org.eclipse.core.filesystem,
org.eclipse.core.expressions,
org.eclipse.ltk.core.refactoring,
- com.ibm.icu
+ com.ibm.icu,
+ com.aptana.rdt
Eclipse-LazyStart: true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/VariableBlock.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/VariableBlock.java 2007-07-25 18:03:07 UTC (rev 2866)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/VariableBlock.java 2007-07-25 18:08:33 UTC (rev 2867)
@@ -54,7 +54,9 @@
import org.rubypeople.rdt.internal.ui.wizards.dialogfields.ListDialogField;
import org.rubypeople.rdt.launching.RubyRuntime;
+import com.aptana.rdt.launching.IGemRuntime;
+
public class VariableBlock {
private ListDialogField fVariablesList;
@@ -114,7 +116,7 @@
private String[] getReservedVariableNames() {
return new String[] {
- RubyRuntime.RUBYLIB_VARIABLE
+ RubyRuntime.RUBYLIB_VARIABLE, IGemRuntime.GEMLIB_VARIABLE
};
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:03:09
|
Revision: 2866
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2866&view=rev
Author: cawilliams
Date: 2007-07-25 11:03:07 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
hide com.aptana.rdt.internal.parser.warnings from everyone but test plugin
Modified Paths:
--------------
trunk/com.aptana.rdt/META-INF/MANIFEST.MF
Modified: trunk/com.aptana.rdt/META-INF/MANIFEST.MF
===================================================================
--- trunk/com.aptana.rdt/META-INF/MANIFEST.MF 2007-07-25 18:01:19 UTC (rev 2865)
+++ trunk/com.aptana.rdt/META-INF/MANIFEST.MF 2007-07-25 18:03:07 UTC (rev 2866)
@@ -10,7 +10,7 @@
Export-Package: com.aptana.rdt,
com.aptana.rdt.core.gems,
com.aptana.rdt.internal.core.gems;x-friends:="com.aptana.rdt.tests",
- com.aptana.rdt.internal.parser.warnings,
+ com.aptana.rdt.internal.parser.warnings;x-friends:="com.aptana.rdt.tests",
com.aptana.rdt.launching
Require-Bundle: org.eclipse.core.resources,
org.eclipse.core.runtime,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 18:01:20
|
Revision: 2865
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2865&view=rev
Author: cawilliams
Date: 2007-07-25 11:01:19 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:59:27
|
Revision: 2864
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2864&view=rev
Author: cawilliams
Date: 2007-07-25 10:59:22 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:59:07
|
Revision: 2863
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2863&view=rev
Author: cawilliams
Date: 2007-07-25 10:59:05 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:58:45
|
Revision: 2862
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2862&view=rev
Author: cawilliams
Date: 2007-07-25 10:58:44 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:58:43
|
Revision: 2861
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2861&view=rev
Author: cawilliams
Date: 2007-07-25 10:58:37 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
add com.aptana.rdt.ui plugin as part of feature
Modified Paths:
--------------
trunk/org.rubypeople.rdt-feature/feature.xml
Modified: trunk/org.rubypeople.rdt-feature/feature.xml
===================================================================
--- trunk/org.rubypeople.rdt-feature/feature.xml 2007-07-25 17:56:00 UTC (rev 2860)
+++ trunk/org.rubypeople.rdt-feature/feature.xml 2007-07-25 17:58:37 UTC (rev 2861)
@@ -134,4 +134,11 @@
version="0.0.0"
unpack="false"/>
+ <plugin
+ id="com.aptana.rdt.ui"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
</feature>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:56:02
|
Revision: 2860
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2860&view=rev
Author: cawilliams
Date: 2007-07-25 10:56:00 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/com.aptana.rdt/plugin.xml
Added Paths:
-----------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/AptanaRDTPreferenceInitializer.java
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/RubyRedPreferenceInitializer.java
Modified: trunk/com.aptana.rdt/plugin.xml
===================================================================
--- trunk/com.aptana.rdt/plugin.xml 2007-07-25 17:55:02 UTC (rev 2859)
+++ trunk/com.aptana.rdt/plugin.xml 2007-07-25 17:56:00 UTC (rev 2860)
@@ -83,7 +83,7 @@
<!-- =================================================================================== -->
<extension
point="org.eclipse.core.runtime.preferences">
- <initializer class="com.aptana.rdt.internal.core.RubyRedPreferenceInitializer"/>
+ <initializer class="com.aptana.rdt.internal.core.AptanaRDTPreferenceInitializer"/>
</extension>
<extension
Copied: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/AptanaRDTPreferenceInitializer.java (from rev 2858, trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/RubyRedPreferenceInitializer.java)
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/AptanaRDTPreferenceInitializer.java (rev 0)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/AptanaRDTPreferenceInitializer.java 2007-07-25 17:56:00 UTC (rev 2860)
@@ -0,0 +1,32 @@
+package com.aptana.rdt.internal.core;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.core.runtime.preferences.DefaultScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.internal.parser.warnings.LintOptions;
+
+public class AptanaRDTPreferenceInitializer extends AbstractPreferenceInitializer {
+
+ public void initializeDefaultPreferences() {
+ HashSet optionNames = AptanaRDTPlugin.getDefault().optionNames;
+ // Lint visitor settings
+ Map defaultOptionsMap = new LintOptions().getMap(); // compiler defaults
+
+ // Store default values to default preferences
+ IEclipsePreferences defaultPreferences = new DefaultScope().getNode(AptanaRDTPlugin.PLUGIN_ID);
+ for (Iterator iter = defaultOptionsMap.entrySet().iterator(); iter.hasNext();) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ String optionName = (String) entry.getKey();
+ defaultPreferences.put(optionName, (String) entry.getValue());
+ optionNames.add(optionName);
+ }
+ AptanaRDTPlugin.getDefault().optionsCache = null;
+ }
+
+}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/RubyRedPreferenceInitializer.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/RubyRedPreferenceInitializer.java 2007-07-25 17:55:02 UTC (rev 2859)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/RubyRedPreferenceInitializer.java 2007-07-25 17:56:00 UTC (rev 2860)
@@ -1,32 +0,0 @@
-package com.aptana.rdt.internal.core;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.core.runtime.preferences.DefaultScope;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-
-import com.aptana.rdt.AptanaRDTPlugin;
-import com.aptana.rdt.internal.parser.warnings.LintOptions;
-
-public class RubyRedPreferenceInitializer extends AbstractPreferenceInitializer {
-
- public void initializeDefaultPreferences() {
- HashSet optionNames = AptanaRDTPlugin.getDefault().optionNames;
- // Lint visitor settings
- Map defaultOptionsMap = new LintOptions().getMap(); // compiler defaults
-
- // Store default values to default preferences
- IEclipsePreferences defaultPreferences = new DefaultScope().getNode(AptanaRDTPlugin.PLUGIN_ID);
- for (Iterator iter = defaultOptionsMap.entrySet().iterator(); iter.hasNext();) {
- Map.Entry entry = (Map.Entry) iter.next();
- String optionName = (String) entry.getKey();
- defaultPreferences.put(optionName, (String) entry.getValue());
- optionNames.add(optionName);
- }
- AptanaRDTPlugin.getDefault().optionsCache = null;
- }
-
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:55:05
|
Revision: 2859
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2859&view=rev
Author: cawilliams
Date: 2007-07-25 10:55:02 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/ruby/
trunk/com.aptana.rdt/src/com/aptana/rdt/ui/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:52:08
|
Revision: 2858
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2858&view=rev
Author: cawilliams
Date: 2007-07-25 10:52:06 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java
Added Paths:
-----------
trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.java
trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.properties
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java
trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties
Copied: trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.java (from rev 2857, trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java)
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.java (rev 0)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.java 2007-07-25 17:52:06 UTC (rev 2858)
@@ -0,0 +1,15 @@
+package com.aptana.rdt;
+
+import org.eclipse.osgi.util.NLS;
+
+public class AptanaRDTMessages extends NLS {
+
+ private static final String BUNDLE_NAME = AptanaRDTMessages.class.getName();
+
+ public static String RubyRedPlugin_internal_error;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, AptanaRDTMessages.class);
+ }
+
+}
Copied: trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.properties (from rev 2857, trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties)
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.properties (rev 0)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTMessages.properties 2007-07-25 17:52:06 UTC (rev 2858)
@@ -0,0 +1 @@
+RubyRedPlugin_internal_error=Internal Error
\ No newline at end of file
Modified: trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java 2007-07-25 17:51:25 UTC (rev 2857)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java 2007-07-25 17:52:06 UTC (rev 2858)
@@ -338,7 +338,7 @@
}
public static void log(Throwable e) {
- log(new Status(IStatus.ERROR, getPluginId(), -1, RubyRedMessages.RubyRedPlugin_internal_error, e));
+ log(new Status(IStatus.ERROR, getPluginId(), -1, AptanaRDTMessages.RubyRedPlugin_internal_error, e));
}
public static void log(IStatus status) {
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java 2007-07-25 17:51:25 UTC (rev 2857)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java 2007-07-25 17:52:06 UTC (rev 2858)
@@ -1,15 +0,0 @@
-package com.aptana.rdt;
-
-import org.eclipse.osgi.util.NLS;
-
-public class RubyRedMessages extends NLS {
-
- private static final String BUNDLE_NAME = RubyRedMessages.class.getName();
-
- public static String RubyRedPlugin_internal_error;
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, RubyRedMessages.class);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties 2007-07-25 17:51:25 UTC (rev 2857)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties 2007-07-25 17:52:06 UTC (rev 2858)
@@ -1 +0,0 @@
-RubyRedPlugin_internal_error=Internal Error
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:51:27
|
Revision: 2857
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2857&view=rev
Author: cawilliams
Date: 2007-07-25 10:51:25 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java
Added Paths:
-----------
trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java
trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.properties
Modified: trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java 2007-07-25 17:50:32 UTC (rev 2856)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/AptanaRDTPlugin.java 2007-07-25 17:51:25 UTC (rev 2857)
@@ -27,7 +27,6 @@
import com.aptana.rdt.core.gems.GemListener;
import com.aptana.rdt.core.gems.IGemManager;
import com.aptana.rdt.internal.core.gems.GemManager;
-import com.aptana.rdt.internal.ui.RubyRedMessages;
/**
* The activator class controls the plug-in life cycle
Copied: trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java (from rev 2853, trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.java)
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java (rev 0)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.java 2007-07-25 17:51:25 UTC (rev 2857)
@@ -0,0 +1,15 @@
+package com.aptana.rdt;
+
+import org.eclipse.osgi.util.NLS;
+
+public class RubyRedMessages extends NLS {
+
+ private static final String BUNDLE_NAME = RubyRedMessages.class.getName();
+
+ public static String RubyRedPlugin_internal_error;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, RubyRedMessages.class);
+ }
+
+}
Copied: trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties (from rev 2853, trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.properties)
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties (rev 0)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/RubyRedMessages.properties 2007-07-25 17:51:25 UTC (rev 2857)
@@ -0,0 +1 @@
+RubyRedPlugin_internal_error=Internal Error
\ No newline at end of file
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.java 2007-07-25 17:50:32 UTC (rev 2856)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.java 2007-07-25 17:51:25 UTC (rev 2857)
@@ -1,15 +0,0 @@
-package com.aptana.rdt.internal.ui;
-
-import org.eclipse.osgi.util.NLS;
-
-public class RubyRedMessages extends NLS {
-
- private static final String BUNDLE_NAME = RubyRedMessages.class.getName();
-
- public static String RubyRedPlugin_internal_error;
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, RubyRedMessages.class);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.properties
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.properties 2007-07-25 17:50:32 UTC (rev 2856)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/RubyRedMessages.properties 2007-07-25 17:51:25 UTC (rev 2857)
@@ -1 +0,0 @@
-RubyRedPlugin_internal_error=Internal Error
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:50:35
|
Revision: 2856
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2856&view=rev
Author: cawilliams
Date: 2007-07-25 10:50:32 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/ruby/hover/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:50:07
|
Revision: 2855
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2855&view=rev
Author: cawilliams
Date: 2007-07-25 10:50:05 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/ui/gems/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:49:30
|
Revision: 2854
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2854&view=rev
Author: cawilliams
Date: 2007-07-25 10:49:22 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Removed Paths:
-------------
trunk/com.aptana.rdt/icons/full/elcl16/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:47:30
|
Revision: 2853
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2853&view=rev
Author: cawilliams
Date: 2007-07-25 10:47:28 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Modified Paths:
--------------
trunk/com.aptana.rdt/src/com/aptana/rdt/core/gems/IGemManager.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/gems/GemManager.java
Modified: trunk/com.aptana.rdt/src/com/aptana/rdt/core/gems/IGemManager.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/core/gems/IGemManager.java 2007-07-25 17:47:22 UTC (rev 2852)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/core/gems/IGemManager.java 2007-07-25 17:47:28 UTC (rev 2853)
@@ -34,4 +34,6 @@
public abstract boolean isInitialized();
+ public abstract void initialize();
+
}
\ No newline at end of file
Modified: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/gems/GemManager.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/gems/GemManager.java 2007-07-25 17:47:22 UTC (rev 2852)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/core/gems/GemManager.java 2007-07-25 17:47:28 UTC (rev 2853)
@@ -434,7 +434,6 @@
* @see com.aptana.rdt.internal.gems.IGemManager#removeGem(com.aptana.rdt.internal.gems.Gem)
*/
public boolean removeGem(final Gem gem) {
- if (gem.hasMultipleVersions()) return false;
try {
String command = UNINSTALL_COMMAND + " " + gem.getName();
if (gem.getVersion() != null
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:47:23
|
Revision: 2852
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2852&view=rev
Author: cawilliams
Date: 2007-07-25 10:47:22 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Modified Paths:
--------------
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java
Added Paths:
-----------
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/RubyGemsInitializer.java
Modified: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java 2007-07-25 17:40:43 UTC (rev 2851)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java 2007-07-25 17:47:22 UTC (rev 2852)
@@ -23,6 +23,7 @@
import com.aptana.rdt.internal.core.gems.GemManager;
import com.aptana.rdt.ui.gems.GemsMessages;
import com.aptana.rdt.ui.gems.GemsView;
+import com.aptana.rdt.ui.gems.RemoveGemDialog;
/**
* Install a gem
@@ -52,7 +53,14 @@
Display.getDefault().asyncExec(new Runnable() {
public void run() {
- AptanaRDTPlugin.getDefault().getGemManager().removeGem(selectedGem);
+ if (selectedGem.hasMultipleVersions()) {
+ RemoveGemDialog dialog = new RemoveGemDialog(Display.getDefault().getActiveShell(), selectedGem.versions());
+ if (dialog.open() == RemoveGemDialog.OK) {
+ AptanaRDTPlugin.getDefault().getGemManager().removeGem(new Gem(selectedGem.getName(), dialog.getVersion(), selectedGem.getDescription()));
+ }
+ } else {
+ AptanaRDTPlugin.getDefault().getGemManager().removeGem(selectedGem);
+ }
}
});
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/RubyGemsInitializer.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/RubyGemsInitializer.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/RubyGemsInitializer.java 2007-07-25 17:47:22 UTC (rev 2852)
@@ -0,0 +1,13 @@
+package com.aptana.rdt.ui;
+
+import org.eclipse.ui.IStartup;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+
+public class RubyGemsInitializer implements IStartup {
+
+ public void earlyStartup() {
+ AptanaRDTPlugin.getDefault().getGemManager().initialize();
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/RubyGemsInitializer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java 2007-07-25 17:40:43 UTC (rev 2851)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java 2007-07-25 17:47:22 UTC (rev 2852)
@@ -26,7 +26,6 @@
import com.aptana.rdt.AptanaRDTPlugin;
import com.aptana.rdt.core.gems.Gem;
import com.aptana.rdt.core.gems.GemListener;
-import com.aptana.rdt.internal.core.gems.GemManager;
public class GemsView extends ViewPart implements GemListener {
@@ -53,7 +52,14 @@
TableItem item = gemTable.getItem(gemTable.getSelectionIndex());
Gem gem = (Gem) item.getData();
if (MessageDialog.openConfirm(gemTable.getShell(), null, GemsMessages.bind(GemsMessages.RemoveGemDialog_msg, gem.getName()))) {
- AptanaRDTPlugin.getDefault().getGemManager().removeGem(gem);
+ if (gem.hasMultipleVersions()) {
+ RemoveGemDialog dialog = new RemoveGemDialog(Display.getDefault().getActiveShell(), gem.versions());
+ if (dialog.open() == RemoveGemDialog.OK) {
+ AptanaRDTPlugin.getDefault().getGemManager().removeGem(new Gem(gem.getName(), dialog.getVersion(), gem.getDescription()));
+ }
+ } else {
+ AptanaRDTPlugin.getDefault().getGemManager().removeGem(gem);
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:40:46
|
Revision: 2851
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2851&view=rev
Author: cawilliams
Date: 2007-07-25 10:40:43 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Added Paths:
-----------
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemContentProvider.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemLabelProvider.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.properties
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/InstallGemDialog.java
trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/RemoveGemDialog.java
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,70 @@
+/*******************************************************************************
+ * Copyright (c) 2005 RadRails.org and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package com.aptana.rdt.internal.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbenchPart;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.core.gems.Gem;
+import com.aptana.rdt.ui.gems.InstallGemDialog;
+
+/**
+ * Install a gem
+ *
+ * @author cwilliams
+ */
+public class InstallGemActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
+
+ /**
+ * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+ * org.eclipse.ui.IWorkbenchPart)
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ InstallGemDialog dialog = new InstallGemDialog(Display.getCurrent().getActiveShell());
+ if (dialog.open() == Dialog.OK) {
+ final Gem gem = dialog.getGem();
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ AptanaRDTPlugin.getDefault().getGemManager().installGem(gem);
+ }
+ });
+ }
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+ * org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ action.setEnabled(!AptanaRDTPlugin.getDefault().getGemManager().getRemoteGems().isEmpty());
+ }
+
+ /**
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ }
+
+
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,63 @@
+/*******************************************************************************
+ * Copyright (c) 2005 RadRails.org and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package com.aptana.rdt.internal.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbenchPart;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.internal.core.gems.GemManager;
+
+/**
+ * Install a gem
+ *
+ * @author cwilliams
+ */
+public class RefreshGemsActionDelegate implements IObjectActionDelegate,
+ IViewActionDelegate {
+
+ /**
+ * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+ * org.eclipse.ui.IWorkbenchPart)
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ if (!AptanaRDTPlugin.getDefault().getGemManager().refresh()) {
+ MessageDialog.openError(Display.getCurrent().getActiveShell(), "Unable to refresh local gems", "Sorry we were unable to refresh the list of local gems.");
+ }
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+ * org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,86 @@
+/*******************************************************************************
+ * Copyright (c) 2005 RadRails.org and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package com.aptana.rdt.internal.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbenchPart;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.core.gems.Gem;
+import com.aptana.rdt.internal.core.gems.GemManager;
+import com.aptana.rdt.ui.gems.GemsMessages;
+import com.aptana.rdt.ui.gems.GemsView;
+
+/**
+ * Install a gem
+ *
+ * @author cwilliams
+ */
+public class RemoveGemActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
+
+ private IViewPart view;
+ private Gem selectedGem;
+
+ /**
+ * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+ * org.eclipse.ui.IWorkbenchPart)
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ boolean okay = MessageDialog.openConfirm(view.getViewSite()
+ .getShell(), null, GemsMessages.bind(GemsMessages.RemoveGemDialog_msg, selectedGem.getName()));
+ if (!okay) return;
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ AptanaRDTPlugin.getDefault().getGemManager().removeGem(selectedGem);
+ }
+
+ });
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+ * org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ if (view instanceof GemsView) {
+ if (selection != null && !selection.isEmpty()) {
+ if (selection instanceof IStructuredSelection) {
+ IStructuredSelection sel = (IStructuredSelection) selection;
+ Object element = sel.getFirstElement();
+ if (element instanceof Gem) {
+ this.selectedGem = (Gem) element;
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.view = view;
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2005 RadRails.org and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package com.aptana.rdt.internal.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbenchPart;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.internal.core.gems.GemManager;
+
+/**
+ * Install a gem
+ *
+ * @author cwilliams
+ */
+public class UpdateAllActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
+
+
+ /**
+ * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+ * org.eclipse.ui.IWorkbenchPart)
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ AptanaRDTPlugin.getDefault().getGemManager().updateAll();
+ }
+
+ });
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+ * org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * Copyright (c) 2005 RadRails.org and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package com.aptana.rdt.internal.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbenchPart;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.core.gems.Gem;
+import com.aptana.rdt.internal.core.gems.GemManager;
+import com.aptana.rdt.ui.gems.GemsView;
+
+/**
+ * Install a gem
+ *
+ * @author cwilliams
+ */
+public class UpdateGemActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
+
+ private IViewPart view;
+ private Gem selectedGem;
+
+ /**
+ * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+ * org.eclipse.ui.IWorkbenchPart)
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ AptanaRDTPlugin.getDefault().getGemManager().update(selectedGem);
+ }
+
+ });
+ }
+
+ /**
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+ * org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ if (view instanceof GemsView) {
+ if (selection != null && !selection.isEmpty()) {
+ if (selection instanceof IStructuredSelection) {
+ IStructuredSelection sel = (IStructuredSelection) selection;
+ Object element = sel.getFirstElement();
+ if (element instanceof Gem) {
+ this.selectedGem = (Gem) element;
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.view = view;
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemContentProvider.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemContentProvider.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemContentProvider.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,25 @@
+package com.aptana.rdt.ui.gems;
+
+import java.util.Collection;
+
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+
+public class GemContentProvider implements IStructuredContentProvider {
+
+ public Object[] getElements(Object inputElement) {
+ Object[] res = null;
+ if (inputElement instanceof Collection) {
+ res = ((Collection) inputElement).toArray();
+ }
+
+ return res;
+ }
+
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ }
+
+ public void dispose() {
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemContentProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemLabelProvider.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemLabelProvider.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemLabelProvider.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,36 @@
+package com.aptana.rdt.ui.gems;
+
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.swt.graphics.Image;
+
+import com.aptana.rdt.core.gems.Gem;
+
+public class GemLabelProvider extends LabelProvider implements ITableLabelProvider {
+
+ private static final int NAME_COLUMN = 0;
+ private static final int VERSION_COLUMN = 1;
+ private static final int DESCRIPTION_COLUMN = 2;
+
+ public Image getColumnImage(Object element, int columnIndex) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getColumnText(Object element, int columnIndex) {
+ Gem server = (Gem) element;
+
+ switch (columnIndex) {
+ case NAME_COLUMN:
+ return server.getName();
+ case VERSION_COLUMN:
+ return server.getVersion();
+ case DESCRIPTION_COLUMN:
+ return server.getDescription();
+ default:
+ return "";
+ }
+ }
+
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemLabelProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,25 @@
+package com.aptana.rdt.ui.gems;
+
+import org.eclipse.osgi.util.NLS;
+
+public class GemsMessages extends NLS {
+
+ private static final String BUNDLE_NAME = GemsMessages.class.getName();
+
+ public static String GemsView_NameColumn_label;
+ public static String GemsView_VersionColumn_label;
+ public static String GemsView_DescriptionColumn_label;
+ public static String InstallGemDialog_dialog_title;
+ public static String InstallGemDialog_version_label;
+ public static String InstallGemDialog_name_label;
+ public static String GemManager_loading_local_gems;
+ public static String GemManager_loading_remote_gems;
+ public static String RemoveGemDialog_msg;
+ public static String RemoveGemDialog_dialog_title;
+ public static String RemoveGemDialog_version_label;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, GemsMessages.class);
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.properties
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.properties (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.properties 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,15 @@
+GemsView_NameColumn_label=Name
+GemsView_VersionColumn_label=Version
+GemsView_DescriptionColumn_label=Description
+
+InstallGemDialog_dialog_title=Install a gem
+InstallGemDialog_version_label=Version:
+InstallGemDialog_name_label=Gem Name:
+
+GemManager_loading_local_gems=Loading local gem information
+GemManager_loading_remote_gems=Loading remote gem information
+
+RemoveGemDialog_msg=Are you sure you want to remove the gem {0}?
+
+RemoveGemDialog_version_label=Version:
+RemoveGemDialog_dialog_title=Which Version?
\ No newline at end of file
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsMessages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,159 @@
+package com.aptana.rdt.ui.gems;
+
+import org.eclipse.jface.action.ActionContributionItem;
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.IMenuListener;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.KeyListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.part.ViewPart;
+import org.rubypeople.rdt.ui.TableViewerSorter;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.core.gems.Gem;
+import com.aptana.rdt.core.gems.GemListener;
+import com.aptana.rdt.internal.core.gems.GemManager;
+
+public class GemsView extends ViewPart implements GemListener {
+
+ private TableViewer gemViewer;
+
+ @Override
+ public void createPartControl(Composite parent) {
+ parent.setLayout(new GridLayout());
+
+ gemViewer = new TableViewer(parent, SWT.SINGLE | SWT.FULL_SELECTION);
+ final Table gemTable = gemViewer.getTable();
+ gemTable.setHeaderVisible(true);
+ gemTable.setLinesVisible(false);
+ gemTable.setLayoutData(new GridData(GridData.FILL_BOTH));
+
+ gemTable.addKeyListener(new KeyListener() {
+
+ public void keyReleased(KeyEvent e) {
+ // ignore
+ }
+
+ public void keyPressed(KeyEvent e) {
+ if (e.keyCode == SWT.DEL) {
+ TableItem item = gemTable.getItem(gemTable.getSelectionIndex());
+ Gem gem = (Gem) item.getData();
+ if (MessageDialog.openConfirm(gemTable.getShell(), null, GemsMessages.bind(GemsMessages.RemoveGemDialog_msg, gem.getName()))) {
+ AptanaRDTPlugin.getDefault().getGemManager().removeGem(gem);
+ }
+ }
+ }
+
+ });
+
+ TableColumn nameColumn = new TableColumn(gemTable, SWT.LEFT);
+ nameColumn.setText(GemsMessages.GemsView_NameColumn_label);
+ nameColumn.setWidth(150);
+
+ TableColumn versionColumn = new TableColumn(gemTable, SWT.LEFT);
+ versionColumn.setText(GemsMessages.GemsView_VersionColumn_label);
+ versionColumn.setWidth(75);
+
+ TableColumn descriptionColumn = new TableColumn(gemTable, SWT.LEFT);
+ descriptionColumn
+ .setText(GemsMessages.GemsView_DescriptionColumn_label);
+ descriptionColumn.setWidth(275);
+
+ gemViewer.setLabelProvider(new GemLabelProvider());
+ gemViewer.setContentProvider(new GemContentProvider());
+ TableViewerSorter.bind(gemViewer);
+ getSite().setSelectionProvider(gemViewer);
+
+
+ gemViewer.setInput(AptanaRDTPlugin.getDefault().getGemManager().getGems());
+ createPopupMenu();
+
+ AptanaRDTPlugin.getDefault().getGemManager().addGemListener(this);
+ }
+
+ @Override
+ public void setFocus() {
+ // do nothing
+ }
+
+ /**
+ * Creates and registers the context menu
+ */
+ private void createPopupMenu() {
+ MenuManager menuMgr = new MenuManager("#PopupMenu");
+ menuMgr.setRemoveAllWhenShown(true);
+
+ menuMgr.addMenuListener(new IMenuListener() {
+ public void menuAboutToShow(IMenuManager manager) {
+ IContributionItem[] items = getViewSite().getActionBars()
+ .getToolBarManager().getItems();
+ for (int i = 0; i < items.length; i++) {
+ if (items[i] instanceof ActionContributionItem) {
+ ActionContributionItem aci = (ActionContributionItem) items[i];
+ manager.add(aci.getAction());
+ }
+ }
+ }
+ });
+ menuMgr.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); // Allow
+ // other
+ // plugins
+ // to
+ // add
+ // here
+ Menu menu = menuMgr.createContextMenu(gemViewer.getControl());
+ gemViewer.getControl().setMenu(menu);
+ getSite().registerContextMenu(menuMgr, gemViewer);
+ }
+
+ public void gemsRefreshed() {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ gemViewer.setInput(AptanaRDTPlugin.getDefault().getGemManager().getGems());
+ gemViewer.refresh();
+ }
+
+ });
+
+ }
+
+ public void gemAdded(final Gem gem) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ gemViewer.setInput(AptanaRDTPlugin.getDefault().getGemManager().getGems());
+ }
+
+ });
+ }
+
+ public void gemRemoved(final Gem gem) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ gemViewer.setInput(AptanaRDTPlugin.getDefault().getGemManager().getGems());
+ }
+
+ });
+ }
+
+ public void managerInitialized() {
+ // ignore
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/GemsView.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/InstallGemDialog.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/InstallGemDialog.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/InstallGemDialog.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,177 @@
+package com.aptana.rdt.ui.gems;
+
+import java.util.SortedSet;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerFilter;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.Text;
+import org.rubypeople.rdt.ui.TableViewerSorter;
+
+import com.aptana.rdt.AptanaRDTPlugin;
+import com.aptana.rdt.core.gems.Gem;
+import com.aptana.rdt.internal.core.gems.GemManager;
+import com.aptana.rdt.internal.core.gems.LogicalGem;
+
+public class InstallGemDialog extends Dialog {
+
+ private Text nameText;
+ private Combo versionCombo;
+
+ private String name;
+ private String version;
+
+ private boolean filterByText = true;
+
+ private TableViewer gemViewer;
+ private GemContentProvider contentProvider;
+
+ public InstallGemDialog(Shell parentShell) {
+ super(parentShell);
+ contentProvider = new GemContentProvider();
+ }
+
+ @Override
+ protected Control createDialogArea(Composite parent) {
+ getShell().setText(GemsMessages.InstallGemDialog_dialog_title);
+ Composite control = new Composite(parent, SWT.NULL);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 2;
+ control.setLayout(layout);
+
+ Label nameLabel = new Label(control, SWT.LEFT);
+ nameLabel.setText(GemsMessages.InstallGemDialog_name_label);
+
+ nameText = new Text(control, SWT.BORDER);
+ GridData nameTextData = new GridData();
+ nameTextData.widthHint = 150;
+ nameText.setLayoutData(nameTextData);
+ nameText.addModifyListener(new ModifyListener() {
+
+ public void modifyText(ModifyEvent e) {
+ if (filterByText) {
+ getShell().getDisplay().syncExec(new Runnable() {
+
+ public void run() {
+ gemViewer.refresh();
+ }
+ });
+ }
+ filterByText = true;
+ }
+
+ });
+
+ Label versionLabel = new Label(control, SWT.LEFT);
+ versionLabel.setText(GemsMessages.InstallGemDialog_version_label);
+
+ versionCombo = new Combo(control, SWT.DROP_DOWN);
+ GridData versionComboData = new GridData();
+ versionComboData.widthHint = 100;
+ versionCombo.setLayoutData(versionComboData);
+
+ gemViewer = new TableViewer(parent, SWT.SINGLE | SWT.FULL_SELECTION);
+ Table serverTable = gemViewer.getTable();
+ serverTable.setHeaderVisible(true);
+ serverTable.setLinesVisible(false);
+ GridData data = new GridData(GridData.FILL_HORIZONTAL);
+ data.heightHint = 400;
+ serverTable.setLayoutData(data);
+
+ TableColumn nameColumn = new TableColumn(serverTable, SWT.LEFT);
+ nameColumn.setText(GemsMessages.GemsView_NameColumn_label);
+ nameColumn.setWidth(150);
+
+ TableColumn versionColumn = new TableColumn(serverTable, SWT.LEFT);
+ versionColumn.setText(GemsMessages.GemsView_VersionColumn_label);
+ versionColumn.setWidth(75);
+
+ TableColumn descriptionColumn = new TableColumn(serverTable, SWT.LEFT);
+ descriptionColumn
+ .setText(GemsMessages.GemsView_DescriptionColumn_label);
+ descriptionColumn.setWidth(275);
+
+ gemViewer.setLabelProvider(new GemLabelProvider());
+ gemViewer.setContentProvider(contentProvider);
+ TableViewerSorter.bind(gemViewer);
+ gemViewer.setInput(AptanaRDTPlugin.getDefault().getGemManager().getRemoteGems());
+ gemViewer.addFilter(new MyViewerFilter(nameText));
+
+ gemViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+
+ public void selectionChanged(SelectionChangedEvent event) {
+ ISelection selection = event.getSelection();
+ if (selection instanceof IStructuredSelection) {
+ IStructuredSelection structured = (IStructuredSelection) selection;
+ LogicalGem gem = (LogicalGem) structured.getFirstElement();
+ SortedSet<String> versions = gem.getVersions();
+ filterByText = false; // don't filter list when I programmatically set text
+ nameText.setText(gem.getName());
+ versionCombo.removeAll();
+ String lastVersion = null;
+ for (String version : versions) {
+ versionCombo.add(version);
+ lastVersion = version;
+ }
+ versionCombo.setText(lastVersion);
+ }
+ }
+
+ });
+
+ return control;
+ }
+
+ /**
+ * @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
+ */
+ public void buttonPressed(int buttonId) {
+ if (buttonId == IDialogConstants.OK_ID) {
+ name = nameText.getText();
+ version = versionCombo.getText();
+ okPressed();
+ } else if (buttonId == IDialogConstants.CANCEL_ID) {
+ cancelPressed();
+ }
+ }
+
+ public Gem getGem() {
+ return new Gem(name, version, "");
+ }
+
+ private static class MyViewerFilter extends ViewerFilter {
+
+ private Text text;
+
+ public MyViewerFilter(Text text) {
+ this.text = text;
+ }
+
+ @Override
+ public boolean select(Viewer viewer, Object parentElement, Object element) {
+ Gem gem = (Gem) element;
+ // TODO If there's no text show nothing?
+ return gem.getName().toLowerCase().startsWith(text.getText().toLowerCase());
+ }
+
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/InstallGemDialog.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/RemoveGemDialog.java
===================================================================
--- trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/RemoveGemDialog.java (rev 0)
+++ trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/RemoveGemDialog.java 2007-07-25 17:40:43 UTC (rev 2851)
@@ -0,0 +1,70 @@
+package com.aptana.rdt.ui.gems;
+
+import java.util.List;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+
+public class RemoveGemDialog extends Dialog {
+
+ private Combo versionCombo;
+ private String version;
+ private List<String> versions;
+
+ public RemoveGemDialog(Shell parentShell, List<String> versions) {
+ super(parentShell);
+ this.versions = versions;
+ }
+
+ @Override
+ protected Control createDialogArea(Composite parent) {
+ getShell().setText(GemsMessages.RemoveGemDialog_dialog_title);
+
+ Composite control = new Composite(parent, SWT.NULL);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 2;
+ control.setLayout(layout);
+
+ Label versionLabel = new Label(control, SWT.LEFT);
+ versionLabel.setText(GemsMessages.RemoveGemDialog_version_label);
+
+ versionCombo = new Combo(control, SWT.DROP_DOWN);
+ GridData versionComboData = new GridData();
+ versionComboData.widthHint = 100;
+ versionCombo.setLayoutData(versionComboData);
+
+ for (String version : versions) {
+ versionCombo.add(version);
+ }
+ // Set the oldest version as default option
+ if (versions != null && !versions.isEmpty()) {
+ versionCombo.select(versions.size() - 1);
+ }
+ return control;
+ }
+
+ /**
+ * @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
+ */
+ public void buttonPressed(int buttonId) {
+ if (buttonId == IDialogConstants.OK_ID) {
+ version = versionCombo.getText();
+ okPressed();
+ } else if (buttonId == IDialogConstants.CANCEL_ID) {
+ cancelPressed();
+ }
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+}
Property changes on: trunk/com.aptana.rdt.ui/src/com/aptana/rdt/ui/gems/RemoveGemDialog.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:37:43
|
Revision: 2850
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2850&view=rev
Author: cawilliams
Date: 2007-07-25 10:37:38 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Removed Paths:
-------------
trunk/com.aptana.rdt/icons/add.gif
trunk/com.aptana.rdt/icons/full/elcl16/rails.gif
trunk/com.aptana.rdt/icons/full/elcl16/rubydoc.gif
trunk/com.aptana.rdt/icons/nav_refresh.gif
trunk/com.aptana.rdt/icons/remove.gif
trunk/com.aptana.rdt/icons/ruby_get.png
trunk/com.aptana.rdt/icons/rubygems.png
trunk/com.aptana.rdt/icons/upgrade.gif
Deleted: trunk/com.aptana.rdt/icons/add.gif
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/full/elcl16/rails.gif
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/full/elcl16/rubydoc.gif
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/nav_refresh.gif
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/remove.gif
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/ruby_get.png
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/rubygems.png
===================================================================
(Binary files differ)
Deleted: trunk/com.aptana.rdt/icons/upgrade.gif
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:35:49
|
Revision: 2849
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2849&view=rev
Author: cawilliams
Date: 2007-07-25 10:35:46 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/BrowserView.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RailsAPIView.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyCoreAPIView.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyStdLibAPIView.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.properties
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/InstallGemActionDelegate.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 RadRails.org and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-
-package com.aptana.rdt.internal.ui.actions;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IWorkbenchPart;
-
-import com.aptana.rdt.AptanaRDTPlugin;
-import com.aptana.rdt.core.gems.Gem;
-import com.aptana.rdt.internal.core.gems.GemManager;
-import com.aptana.rdt.ui.gems.InstallGemDialog;
-
-/**
- * Install a gem
- *
- * @author cwilliams
- */
-public class InstallGemActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
-
- /**
- * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
- * org.eclipse.ui.IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
-
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- InstallGemDialog dialog = new InstallGemDialog(Display.getCurrent().getActiveShell());
- if (dialog.open() == Dialog.OK) {
- final Gem gem = dialog.getGem();
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- AptanaRDTPlugin.getDefault().getGemManager().installGem(gem);
- }
- });
- }
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
- * org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- action.setEnabled(!AptanaRDTPlugin.getDefault().getGemManager().getRemoteGems().isEmpty());
- }
-
- /**
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- }
-
-
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RefreshGemsActionDelegate.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 RadRails.org and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-
-package com.aptana.rdt.internal.ui.actions;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IWorkbenchPart;
-
-import com.aptana.rdt.AptanaRDTPlugin;
-import com.aptana.rdt.internal.core.gems.GemManager;
-
-/**
- * Install a gem
- *
- * @author cwilliams
- */
-public class RefreshGemsActionDelegate implements IObjectActionDelegate,
- IViewActionDelegate {
-
- /**
- * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
- * org.eclipse.ui.IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
-
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- if (!AptanaRDTPlugin.getDefault().getGemManager().refresh()) {
- MessageDialog.openError(Display.getCurrent().getActiveShell(), "Unable to refresh local gems", "Sorry we were unable to refresh the list of local gems.");
- }
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
- * org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
-
- }
-
- /**
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
-
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/RemoveGemActionDelegate.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,86 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 RadRails.org and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-
-package com.aptana.rdt.internal.ui.actions;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IWorkbenchPart;
-
-import com.aptana.rdt.AptanaRDTPlugin;
-import com.aptana.rdt.core.gems.Gem;
-import com.aptana.rdt.internal.core.gems.GemManager;
-import com.aptana.rdt.ui.gems.GemsMessages;
-import com.aptana.rdt.ui.gems.GemsView;
-
-/**
- * Install a gem
- *
- * @author cwilliams
- */
-public class RemoveGemActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
-
- private IViewPart view;
- private Gem selectedGem;
-
- /**
- * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
- * org.eclipse.ui.IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
-
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- boolean okay = MessageDialog.openConfirm(view.getViewSite()
- .getShell(), null, GemsMessages.bind(GemsMessages.RemoveGemDialog_msg, selectedGem.getName()));
- if (!okay) return;
- Display.getDefault().asyncExec(new Runnable() {
-
- public void run() {
- AptanaRDTPlugin.getDefault().getGemManager().removeGem(selectedGem);
- }
-
- });
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
- * org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- if (view instanceof GemsView) {
- if (selection != null && !selection.isEmpty()) {
- if (selection instanceof IStructuredSelection) {
- IStructuredSelection sel = (IStructuredSelection) selection;
- Object element = sel.getFirstElement();
- if (element instanceof Gem) {
- this.selectedGem = (Gem) element;
- }
- }
- }
- }
- }
-
- /**
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.view = view;
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateAllActionDelegate.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 RadRails.org and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-
-package com.aptana.rdt.internal.ui.actions;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IWorkbenchPart;
-
-import com.aptana.rdt.AptanaRDTPlugin;
-import com.aptana.rdt.internal.core.gems.GemManager;
-
-/**
- * Install a gem
- *
- * @author cwilliams
- */
-public class UpdateAllActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
-
-
- /**
- * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
- * org.eclipse.ui.IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
-
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- Display.getDefault().asyncExec(new Runnable() {
-
- public void run() {
- AptanaRDTPlugin.getDefault().getGemManager().updateAll();
- }
-
- });
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
- * org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
-
- }
-
- /**
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/actions/UpdateGemActionDelegate.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 RadRails.org and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-
-package com.aptana.rdt.internal.ui.actions;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IWorkbenchPart;
-
-import com.aptana.rdt.AptanaRDTPlugin;
-import com.aptana.rdt.core.gems.Gem;
-import com.aptana.rdt.internal.core.gems.GemManager;
-import com.aptana.rdt.ui.gems.GemsView;
-
-/**
- * Install a gem
- *
- * @author cwilliams
- */
-public class UpdateGemActionDelegate implements IObjectActionDelegate, IViewActionDelegate {
-
- private IViewPart view;
- private Gem selectedGem;
-
- /**
- * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
- * org.eclipse.ui.IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
-
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- Display.getDefault().asyncExec(new Runnable() {
-
- public void run() {
- AptanaRDTPlugin.getDefault().getGemManager().update(selectedGem);
- }
-
- });
- }
-
- /**
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
- * org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- if (view instanceof GemsView) {
- if (selection != null && !selection.isEmpty()) {
- if (selection instanceof IStructuredSelection) {
- IStructuredSelection sel = (IStructuredSelection) selection;
- Object element = sel.getFirstElement();
- if (element instanceof Gem) {
- this.selectedGem = (Gem) element;
- }
- }
- }
- }
- }
-
- /**
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.view = view;
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/BrowserView.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/BrowserView.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/BrowserView.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,38 +0,0 @@
-package com.aptana.rdt.internal.ui.infoviews;
-
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.browser.Browser;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.part.ViewPart;
-
-public class BrowserView extends ViewPart {
-
- private Browser fBrowser;
- private String fUrl;
-
- public BrowserView(String url) {
- this.fUrl = url;
- }
-
- @Override
- public void createPartControl(Composite parent) {
- try {
- fBrowser = new Browser(parent, SWT.BORDER);
- fBrowser.setUrl(fUrl);
- } catch (Exception e) {
- MessageDialog
- .openError(
- Display.getDefault().getActiveShell(),
- "Unable to create embedded browser",
- "It appears that you do not have an embeddable browser. Please see http://www.eclipse.org/swt/faq.php#browserlinux for more information if you are on Linux.");
- }
- }
-
- @Override
- public void setFocus() {
- fBrowser.setFocus();
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RailsAPIView.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RailsAPIView.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RailsAPIView.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,11 +0,0 @@
-package com.aptana.rdt.internal.ui.infoviews;
-
-public class RailsAPIView extends BrowserView {
-
- private static final String URL = "http://api.rubyonrails.org/";
-
- public RailsAPIView() {
- super(URL);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyCoreAPIView.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyCoreAPIView.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyCoreAPIView.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,11 +0,0 @@
-package com.aptana.rdt.internal.ui.infoviews;
-
-public class RubyCoreAPIView extends BrowserView {
-
- private static final String URL = "http://www.ruby-doc.org/core/";
-
- public RubyCoreAPIView() {
- super(URL);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyStdLibAPIView.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyStdLibAPIView.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/infoviews/RubyStdLibAPIView.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,11 +0,0 @@
-package com.aptana.rdt.internal.ui.infoviews;
-
-public class RubyStdLibAPIView extends BrowserView {
-
- private static final String URL = "http://www.ruby-doc.org/stdlib/";
-
- public RubyStdLibAPIView() {
- super(URL);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.java 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.java 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,19 +0,0 @@
-package com.aptana.rdt.internal.ui.preferences;
-
-import org.eclipse.osgi.util.NLS;
-
-public class PreferencesMessages extends NLS {
-
- private static final String BUNDLE_NAME = PreferencesMessages.class.getName();
-
- public static String LicenseConfigurationBlock_company_name_label;
- public static String LicenseConfigurationBlock_email_label;
- public static String LicenseConfigurationBlock_description;
- public static String LicenseConfigurationBlock_license_key_label;
- public static String LicenseConfigurationBlock_valid_license_label;
- public static String LicenseConfigurationBlock_invalid_license_label;
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, PreferencesMessages.class);
- }
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.properties
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.properties 2007-07-25 17:35:18 UTC (rev 2848)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/preferences/PreferencesMessages.properties 2007-07-25 17:35:46 UTC (rev 2849)
@@ -1,6 +0,0 @@
-LicenseConfigurationBlock_description=Please enter the company name and email address exactly as you entered them when ordering. You should have received an email containing this information in case you've forgotten.
-LicenseConfigurationBlock_company_name_label=Company name:
-LicenseConfigurationBlock_email_label=Email Address:
-LicenseConfigurationBlock_license_key_label=License key:
-LicenseConfigurationBlock_invalid_license_label=You have an invalid or incomplete license key. Please be sure you have entered all of the fields above correctly.
-LicenseConfigurationBlock_valid_license_label=You have a valid license key. It expires on {0}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-07-25 17:35:19
|
Revision: 2848
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2848&view=rev
Author: cawilliams
Date: 2007-07-25 10:35:18 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
break out UI related items into new com.aptana.rdt.ui plugin
Removed Paths:
-------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/CorrectionProposal.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/CorrectionProposal.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/CorrectionProposal.java 2007-07-25 17:35:02 UTC (rev 2847)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/CorrectionProposal.java 2007-07-25 17:35:18 UTC (rev 2848)
@@ -1,25 +0,0 @@
-package com.aptana.rdt.internal.ui.text.correction;
-
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.swt.graphics.Image;
-import org.rubypeople.rdt.internal.ui.text.ruby.RubyCompletionProposal;
-
-public class CorrectionProposal extends RubyCompletionProposal {
-
- public CorrectionProposal(String replacementString, int replacementOffset, int replacementLength, Image image, String displayString, int relevance) {
- super(replacementString, replacementOffset, replacementLength, image, displayString, relevance);
- }
-
- @Override
- protected boolean isValidPrefix(String prefix) {
- return true;
- }
-
- @Override
- public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
- IDocument document= viewer.getDocument();
- apply(document, trigger, offset);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java 2007-07-25 17:35:02 UTC (rev 2847)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java 2007-07-25 17:35:18 UTC (rev 2848)
@@ -1,20 +0,0 @@
-package com.aptana.rdt.internal.ui.text.correction;
-
-import java.util.Collection;
-
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.ISharedImages;
-import org.rubypeople.rdt.internal.ui.RubyPlugin;
-import org.rubypeople.rdt.ui.text.ruby.IInvocationContext;
-import org.rubypeople.rdt.ui.text.ruby.IProblemLocation;
-import org.rubypeople.rdt.ui.text.ruby.IRubyCompletionProposal;
-
-public class LocalCorrectionsSubProcessor {
-
- public static void addUnusedMemberProposal(IInvocationContext context, IProblemLocation problem, Collection<IRubyCompletionProposal> proposals) {
- Image image= RubyPlugin.getDefault().getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_DELETE);
- CorrectionProposal proposal = new CorrectionProposal("", problem.getOffset(), problem.getLength(), image, "clean up unused code", 100);
- proposals.add(proposal);
- }
-
-}
Deleted: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java 2007-07-25 17:35:02 UTC (rev 2847)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java 2007-07-25 17:35:18 UTC (rev 2848)
@@ -1,61 +0,0 @@
-package com.aptana.rdt.internal.ui.text.correction;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-
-import org.eclipse.core.runtime.CoreException;
-import org.rubypeople.rdt.core.IRubyScript;
-import org.rubypeople.rdt.core.compiler.IProblem;
-import org.rubypeople.rdt.ui.text.ruby.IInvocationContext;
-import org.rubypeople.rdt.ui.text.ruby.IProblemLocation;
-import org.rubypeople.rdt.ui.text.ruby.IQuickFixProcessor;
-import org.rubypeople.rdt.ui.text.ruby.IRubyCompletionProposal;
-
-public class QuickFixProcessor implements IQuickFixProcessor {
-
- public IRubyCompletionProposal[] getCorrections(IInvocationContext context, IProblemLocation[] locations) throws CoreException {
- if (locations == null || locations.length == 0) {
- return null;
- }
-
- HashSet handledProblems = new HashSet(locations.length);
- ArrayList<IRubyCompletionProposal> resultingCollections = new ArrayList<IRubyCompletionProposal>();
- for (int i = 0; i < locations.length; i++) {
- IProblemLocation curr = locations[i];
- Integer id = new Integer(curr.getProblemId());
- if (handledProblems.add(id)) {
- process(context, curr, resultingCollections);
- }
- }
- return (IRubyCompletionProposal[]) resultingCollections.toArray(new IRubyCompletionProposal[resultingCollections.size()]);
- }
-
- private void process(IInvocationContext context, IProblemLocation problem, Collection<IRubyCompletionProposal> proposals) throws CoreException {
- int id = problem.getProblemId();
- if (id == 0) { // no proposals for none-problem locations
- return;
- }
- switch (id) {
- case IProblem.UnusedPrivateMethod:
- case IProblem.UnusedPrivateField:
- case IProblem.LocalVariableIsNeverUsed:
- case IProblem.ArgumentIsNeverUsed:
- LocalCorrectionsSubProcessor.addUnusedMemberProposal(context, problem, proposals);
- break;
- default:
- }
- }
-
- public boolean hasCorrections(IRubyScript unit, int problemId) {
- switch (problemId) {
- case IProblem.UnusedPrivateMethod:
- case IProblem.UnusedPrivateField:
- case IProblem.LocalVariableIsNeverUsed:
- case IProblem.ArgumentIsNeverUsed:
- return true;
- default:
- return false;
- }
- }
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|