Skip to content

Commit

Permalink
Remove activator of org.eclipse.m2e.profiles.ui
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell authored and mickaelistria committed May 2, 2022
1 parent 23b13dd commit bff9cea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 44 deletions.
1 change: 0 additions & 1 deletion org.eclipse.m2e.profiles.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.eclipse.m2e.profiles.ui;singleton:=true
Bundle-Version: 1.17.4.qualifier
Bundle-Localization: plugin
Bundle-Activator: org.eclipse.m2e.profiles.ui.internal.MavenProfilesUIActivator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
Expand All @@ -45,8 +44,6 @@
import org.eclipse.ui.handlers.IHandlerService;
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;

import org.eclipse.m2e.profiles.ui.internal.MavenProfilesUIActivator;


/**
* This action delegate can be used to specify a command with or without parameters be called from an <action/>
Expand Down Expand Up @@ -129,14 +126,11 @@ public void setInitializationData(IConfigurationElement config, String propertyN
} else if(data instanceof Map) {
parameterMap = (Map<?, ?>) data;
if(parameterMap.get(PARM_COMMAND_ID) == null) {
Status status = new Status(IStatus.ERROR, MavenProfilesUIActivator.PLUGIN_ID,
"The '" + id + "' action won't work without a commandId");
throw new CoreException(status);
throw new CoreException(Status.error("The '" + id + "' action won't work without a commandId"));
}
} else {
Status status = new Status(IStatus.ERROR, MavenProfilesUIActivator.PLUGIN_ID,
"The '" + id + "' action won't work without some initialization parameters");
throw new CoreException(status);
throw new CoreException(
Status.error("The '" + id + "' action won't work without some initialization parameters"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.eclipse.m2e.profiles.core.internal.MavenProfilesCoreActivator;
import org.eclipse.m2e.profiles.core.internal.ProfileData;
import org.eclipse.m2e.profiles.core.internal.ProfileState;
import org.eclipse.m2e.profiles.ui.internal.MavenProfilesUIActivator;
import org.eclipse.m2e.profiles.ui.internal.Messages;
import org.eclipse.m2e.profiles.ui.internal.dialog.ProfileSelection;
import org.eclipse.m2e.profiles.ui.internal.dialog.SelectProfilesDialog;
Expand Down Expand Up @@ -190,8 +189,7 @@ protected IStatus run(IProgressMonitor monitor) {
this.allProfiles = getAllProfiles(facades, profileManager);
this.sharedProfiles = getSharedProfiles(allProfiles);
} catch(CoreException e) {
return new Status(IStatus.ERROR, MavenProfilesUIActivator.PLUGIN_ID,
Messages.ProfileSelectionHandler_Unable_to_open_profile_dialog, e);
return Status.error(Messages.ProfileSelectionHandler_Unable_to_open_profile_dialog, e);
}
return Status.OK_STATUS;
}
Expand Down

0 comments on commit bff9cea

Please sign in to comment.