コード例 #1
0
  /** Create a new CreateLaunchAction. */
  public CreateLaunchAction(
      ManageLaunchesDialog launchConfigurationDialog, ILaunchConfigurationType configType) {
    super("Create a new " + configType.getName());

    this.launchConfigurationDialog = launchConfigurationDialog;
    this.configType = configType;

    setImageDescriptor(
        new DecorationOverlayIcon(
            SDBGDebugUIPlugin.getImage(DebugUITools.getDefaultImageDescriptor(configType)),
            SDBGDebugUIPlugin.getImageDescriptor("ovr16/new.png"),
            IDecoration.TOP_RIGHT));
  }
コード例 #2
0
 @Override
 public void run() {
   if (breakpoint != null) {
     try {
       breakpoint.delete();
     } catch (CoreException e) {
       SDBGDebugUIPlugin.logError(e);
     }
   }
 }
コード例 #3
0
  protected RemoveBreakpointAction(ISelectionProvider provider) {
    super(provider, "Remove Breakpoint");

    setImageDescriptor(SDBGDebugUIPlugin.getImageDescriptor("obj16/rem_co.gif"));
    setEnabled(false);
  }