Changeset 3491 for devel-tools/trunk


Ignore:
Timestamp:
Mar 12, 2008, 3:55:00 PM (13 years ago)
Author:
yura
Message:
  • Moving all ui intu editor-plugin (in future ui-plugin), other - in rfpdt-plugin.
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  
    1717 org.refal.plus.rfpdt,
    1818 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
    2022Eclipse-LazyStart: true
    2123Bundle-RequiredExecutionEnvironment: J2SE-1.5
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/src/org/refal/plus/rfpdt/editor/RfpEditorPlugin.java

    r3444 r3491  
    66import org.eclipse.jface.preference.IPreferenceStore;
    77import org.eclipse.jface.resource.ImageDescriptor;
     8import org.eclipse.swt.widgets.Shell;
     9import org.eclipse.ui.IWorkbenchPage;
     10import org.eclipse.ui.IWorkbenchWindow;
    811import org.eclipse.ui.plugin.AbstractUIPlugin;
    912import org.eclipse.ui.preferences.ScopedPreferenceStore;
     
    6568
    6669    /**
    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
    6971     *
    7072     * @param path
     
    9496        return store;
    9597    }
     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
    96116}
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/src/org/refal/plus/rfpdt/launch/ui/RfpLaunchShortcut.java

    r3469 r3491  
    2626import org.refal.plus.rfpdt.core.builder.RfpBuilder;
    2727import org.refal.plus.rfpdt.editor.RfpEditor;
     28import org.refal.plus.rfpdt.editor.RfpEditorPlugin;
    2829import org.refal.plus.rfpdt.launch.IRfpLaunchConfigurationConstants;
    29 import org.refal.plus.rfpdt.launch.LaunchingPlugin;
    3030
    3131/**
     
    4444            return;
    4545        }
    46         MessageDialog.openError(LaunchingPlugin.getShell(), "Cannot Launch Refal Plus application",
     46        MessageDialog.openError(RfpEditorPlugin.getShell(), "Cannot Launch Refal Plus application",
    4747                "The selection is not a Refal Plus file. Please select one .rf file to launch.");
    4848    }
     
    5454            return;
    5555        }
    56         MessageDialog.openError(LaunchingPlugin.getShell(), "Cannot Launch Refal Plus application",
     56        MessageDialog.openError(RfpEditorPlugin.getShell(), "Cannot Launch Refal Plus application",
    5757                "The selection is not a Refal Plus file. Please select one .rf file to launch.");
    5858    }
     
    134134    private static ILaunchConfiguration chooseConfiguration (List<ILaunchConfiguration> configList, String mode) {
    135135        IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
    136         ElementListSelectionDialog dialog = new ElementListSelectionDialog(LaunchingPlugin.getShell(), labelProvider);
     136        ElementListSelectionDialog dialog = new ElementListSelectionDialog(RfpEditorPlugin.getShell(), labelProvider);
    137137        dialog.setElements(configList.toArray());
    138138        dialog.setTitle("Launch Configuration Selection");
     
    196196
    197197    private static IFile getResource () {
    198         IWorkbenchPage page = LaunchingPlugin.getActivePage();
     198        IWorkbenchPage page = RfpEditorPlugin.getActivePage();
    199199        if (page == null)
    200200            return null;
     
    208208        Display.getDefault().asyncExec(new Runnable() {
    209209            public void run () {
    210                 ErrorDialog.openError(LaunchingPlugin.getShell(), "Cannot Create Configuration",
     210                ErrorDialog.openError(RfpEditorPlugin.getShell(), "Cannot Create Configuration",
    211211                        "An exception occurred attempting to create launch configuration", exception.getStatus());
    212212            }
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt.editor/src/org/refal/plus/rfpdt/ui/wizards/ProjectCreationWizard.java

    r3444 r3491  
    1818import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard;
    1919import org.refal.plus.rfpdt.core.RfpCorePlugin;
     20import org.refal.plus.rfpdt.editor.RfpEditorPlugin;
    2021
    2122public abstract class ProjectCreationWizard extends Wizard implements
     
    3132                super();
    3233                fOperation = operation;
    33                 setDialogSettings(RfpCorePlugin.getDefault().getDialogSettings());
     34                setDialogSettings(RfpEditorPlugin.getDefault().getDialogSettings());
    3435                setWindowTitle("Choose project name");
    3536                setNeedsProgressMonitor(true);
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt/META-INF/MANIFEST.MF

    r3480 r3491  
    1111 org.eclipse.ui,
    1212 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
    1417Eclipse-LazyStart: true
    1518Bundle-RequiredExecutionEnvironment: J2SE-1.5
     
    1821 org.refal.plus.rfpdt.comp.parse,
    1922 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  
    33import org.eclipse.core.runtime.IStatus;
    44import org.eclipse.core.runtime.Platform;
     5import org.eclipse.core.runtime.Plugin;
    56import org.eclipse.core.runtime.Status;
    67import org.eclipse.jface.resource.ImageDescriptor;
    7 import org.eclipse.ui.plugin.AbstractUIPlugin;
    88import org.osgi.framework.BundleContext;
    99
     
    1111 * The activator class controls the plug-in life cycle
    1212 */
    13 public class RfpCorePlugin extends AbstractUIPlugin {
     13public class RfpCorePlugin extends Plugin {
    1414
    1515        public static final String PLUGIN_ID = "org.refal.plus.rfpdt";
     
    5454         * @return the image descriptor
    5555         */
    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//      }
    5959
    6060        public static String getPluginId() {
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/launch/LaunchingPlugin.java

    r3469 r3491  
    66import org.eclipse.ui.plugin.AbstractUIPlugin;
    77
    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.