Revision: 3154 http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3154&view=rev Author: cawilliams Date: 2007-09-12 10:53:36 -0700 (Wed, 12 Sep 2007) Log Message: ----------- try to combine constants that refer to same thing, deprecate old version. Modified Paths: -------------- trunk/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/internal/debug/ui/launcher/TC_RubyApplicationShortcut.java Modified: trunk/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/internal/debug/ui/launcher/TC_RubyApplicationShortcut.java =================================================================== --- trunk/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/internal/debug/ui/launcher/TC_RubyApplicationShortcut.java 2007-09-12 17:53:31 UTC (rev 3153) +++ trunk/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/internal/debug/ui/launcher/TC_RubyApplicationShortcut.java 2007-09-12 17:53:36 UTC (rev 3154) @@ -30,7 +30,7 @@ import org.rubypeople.rdt.launching.IVMInstallType; import org.rubypeople.rdt.launching.RubyRuntime; import org.rubypeople.rdt.launching.VMStandin; -import org.rubypeople.rdt.ui.IRubyConstants; +import org.rubypeople.rdt.ui.RubyUI; public class TC_RubyApplicationShortcut extends ModifyingResourceTest { @@ -191,7 +191,7 @@ String fullPath = RdtDebugUiPlugin.getWorkspace().getRoot().getLocation().toOSString() + File.separator + file.getFullPath().toOSString(); Object sourceElement = sourceLocator.getSourceElement(fullPath); IEditorInput input = sourceLocator.getEditorInput(sourceElement); - IEditorPart rubyEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, IRubyConstants.EDITOR_ID); + IEditorPart rubyEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, RubyUI.ID_RUBY_EDITOR); shortcut.launch(rubyEditor, ILaunchManager.RUN_MODE); @@ -218,7 +218,7 @@ Object sourceElement = sourceLocator.getSourceElement(tmpFile.getAbsolutePath()); IEditorInput input = sourceLocator.getEditorInput(sourceElement); - IEditorPart rubyExternalEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, IRubyConstants.EXTERNAL_FILES_EDITOR_ID); + IEditorPart rubyExternalEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, RubyUI.ID_EXTERNAL_EDITOR); shortcut.launch(rubyExternalEditor, ILaunchManager.RUN_MODE); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |