Changeset 3491 for devel-tools
- Timestamp:
- Mar 12, 2008, 3:55:00 PM (13 years ago)
- Location:
- devel-tools/trunk/eclipse
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/META-INF/MANIFEST.MF
r3483 r3491 17 17 org.refal.plus.rfpdt, 18 18 org.eclipse.jdt.debug, 19 org.eclipse.debug.ui 19 org.eclipse.debug.ui, 20 org.eclipse.jdt.launching, 21 org.eclipse.jdt.debug.ui 20 22 Eclipse-LazyStart: true 21 23 Bundle-RequiredExecutionEnvironment: J2SE-1.5 -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/src/org/refal/plus/rfpdt/editor/RfpEditorPlugin.java
r3444 r3491 6 6 import org.eclipse.jface.preference.IPreferenceStore; 7 7 import org.eclipse.jface.resource.ImageDescriptor; 8 import org.eclipse.swt.widgets.Shell; 9 import org.eclipse.ui.IWorkbenchPage; 10 import org.eclipse.ui.IWorkbenchWindow; 8 11 import org.eclipse.ui.plugin.AbstractUIPlugin; 9 12 import org.eclipse.ui.preferences.ScopedPreferenceStore; … … 65 68 66 69 /** 67 * Returns an image descriptor for the image file at the given plug-in 68 * relative path 70 * Returns an image descriptor for the image file at the given plug-in relative path 69 71 * 70 72 * @param path … … 94 96 return store; 95 97 } 98 99 private static IWorkbenchWindow getActiveWorkbenchWindow () { 100 return plugin == null ? null : plugin.getWorkbench().getActiveWorkbenchWindow(); 101 } 102 103 /** 104 * Convenience method to get the window that owns this action's Shell. 105 */ 106 public static Shell getShell () { 107 IWorkbenchWindow window = getActiveWorkbenchWindow(); 108 return window == null ? null : window.getShell(); 109 } 110 111 public static IWorkbenchPage getActivePage () { 112 IWorkbenchWindow window = getActiveWorkbenchWindow(); 113 return window == null ? null : window.getActivePage(); 114 } 115 96 116 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/src/org/refal/plus/rfpdt/launch/ui/RfpLaunchShortcut.java
r3469 r3491 26 26 import org.refal.plus.rfpdt.core.builder.RfpBuilder; 27 27 import org.refal.plus.rfpdt.editor.RfpEditor; 28 import org.refal.plus.rfpdt.editor.RfpEditorPlugin; 28 29 import org.refal.plus.rfpdt.launch.IRfpLaunchConfigurationConstants; 29 import org.refal.plus.rfpdt.launch.LaunchingPlugin;30 30 31 31 /** … … 44 44 return; 45 45 } 46 MessageDialog.openError( LaunchingPlugin.getShell(), "Cannot Launch Refal Plus application",46 MessageDialog.openError(RfpEditorPlugin.getShell(), "Cannot Launch Refal Plus application", 47 47 "The selection is not a Refal Plus file. Please select one .rf file to launch."); 48 48 } … … 54 54 return; 55 55 } 56 MessageDialog.openError( LaunchingPlugin.getShell(), "Cannot Launch Refal Plus application",56 MessageDialog.openError(RfpEditorPlugin.getShell(), "Cannot Launch Refal Plus application", 57 57 "The selection is not a Refal Plus file. Please select one .rf file to launch."); 58 58 } … … 134 134 private static ILaunchConfiguration chooseConfiguration (List<ILaunchConfiguration> configList, String mode) { 135 135 IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation(); 136 ElementListSelectionDialog dialog = new ElementListSelectionDialog( LaunchingPlugin.getShell(), labelProvider);136 ElementListSelectionDialog dialog = new ElementListSelectionDialog(RfpEditorPlugin.getShell(), labelProvider); 137 137 dialog.setElements(configList.toArray()); 138 138 dialog.setTitle("Launch Configuration Selection"); … … 196 196 197 197 private static IFile getResource () { 198 IWorkbenchPage page = LaunchingPlugin.getActivePage();198 IWorkbenchPage page = RfpEditorPlugin.getActivePage(); 199 199 if (page == null) 200 200 return null; … … 208 208 Display.getDefault().asyncExec(new Runnable() { 209 209 public void run () { 210 ErrorDialog.openError( LaunchingPlugin.getShell(), "Cannot Create Configuration",210 ErrorDialog.openError(RfpEditorPlugin.getShell(), "Cannot Create Configuration", 211 211 "An exception occurred attempting to create launch configuration", exception.getStatus()); 212 212 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/src/org/refal/plus/rfpdt/ui/wizards/ProjectCreationWizard.java
r3444 r3491 18 18 import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard; 19 19 import org.refal.plus.rfpdt.core.RfpCorePlugin; 20 import org.refal.plus.rfpdt.editor.RfpEditorPlugin; 20 21 21 22 public abstract class ProjectCreationWizard extends Wizard implements … … 31 32 super(); 32 33 fOperation = operation; 33 setDialogSettings(Rfp CorePlugin.getDefault().getDialogSettings());34 setDialogSettings(RfpEditorPlugin.getDefault().getDialogSettings()); 34 35 setWindowTitle("Choose project name"); 35 36 setNeedsProgressMonitor(true); -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/META-INF/MANIFEST.MF
r3480 r3491 11 11 org.eclipse.ui, 12 12 org.eclipse.ui.ide, 13 org.refal.plus 13 org.refal.plus, 14 org.eclipse.jdt.launching, 15 org.eclipse.debug.core, 16 org.eclipse.jdt.core 14 17 Eclipse-LazyStart: true 15 18 Bundle-RequiredExecutionEnvironment: J2SE-1.5 … … 18 21 org.refal.plus.rfpdt.comp.parse, 19 22 org.refal.plus.rfpdt.core, 20 org.refal.plus.rfpdt.core.builder 23 org.refal.plus.rfpdt.core.builder, 24 org.refal.plus.rfpdt.launch -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/core/RfpCorePlugin.java
r3444 r3491 3 3 import org.eclipse.core.runtime.IStatus; 4 4 import org.eclipse.core.runtime.Platform; 5 import org.eclipse.core.runtime.Plugin; 5 6 import org.eclipse.core.runtime.Status; 6 7 import org.eclipse.jface.resource.ImageDescriptor; 7 import org.eclipse.ui.plugin.AbstractUIPlugin;8 8 import org.osgi.framework.BundleContext; 9 9 … … 11 11 * The activator class controls the plug-in life cycle 12 12 */ 13 public class RfpCorePlugin extends AbstractUIPlugin {13 public class RfpCorePlugin extends Plugin { 14 14 15 15 public static final String PLUGIN_ID = "org.refal.plus.rfpdt"; … … 54 54 * @return the image descriptor 55 55 */ 56 public static ImageDescriptor getImageDescriptor(String path) {57 return imageDescriptorFromPlugin(PLUGIN_ID, path);58 }56 // public static ImageDescriptor getImageDescriptor(String path) { 57 // return imageDescriptorFromPlugin(PLUGIN_ID, path); 58 // } 59 59 60 60 public static String getPluginId() { -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/launch/LaunchingPlugin.java
r3469 r3491 6 6 import org.eclipse.ui.plugin.AbstractUIPlugin; 7 7 8 public class LaunchingPlugin extends AbstractUIPlugin {9 private static LaunchingPlugin plugin;10 11 private static IWorkbenchWindow getActiveWorkbenchWindow () {12 return plugin == null ? null : plugin.getWorkbench().getActiveWorkbenchWindow();13 }14 15 /**16 * Convenience method to get the window that owns this action's Shell.17 */18 public static Shell getShell () {19 IWorkbenchWindow window = getActiveWorkbenchWindow();20 return window == null ? null : window.getShell();21 }22 23 public static IWorkbenchPage getActivePage () {24 IWorkbenchWindow window = getActiveWorkbenchWindow();25 return window == null ? null : window.getActivePage();26 }27 28 public LaunchingPlugin () {29 super();30 plugin = this;31 }32 }8 //public class LaunchingPlugin extends AbstractUIPlugin { 9 // private static LaunchingPlugin plugin; 10 // 11 // private static IWorkbenchWindow getActiveWorkbenchWindow () { 12 // return plugin == null ? null : plugin.getWorkbench().getActiveWorkbenchWindow(); 13 // } 14 // 15 // /** 16 // * Convenience method to get the window that owns this action's Shell. 17 // */ 18 // public static Shell getShell () { 19 // IWorkbenchWindow window = getActiveWorkbenchWindow(); 20 // return window == null ? null : window.getShell(); 21 // } 22 // 23 // public static IWorkbenchPage getActivePage () { 24 // IWorkbenchWindow window = getActiveWorkbenchWindow(); 25 // return window == null ? null : window.getActivePage(); 26 // } 27 // 28 // public LaunchingPlugin () { 29 // super(); 30 // plugin = this; 31 // } 32 //}
Note: See TracChangeset
for help on using the changeset viewer.