public DeleteVisitor(List<Resource> skipList, int flags, IProgressMonitor monitor, int ticks) { this.skipList = skipList; this.ticks = ticks; this.force = (flags & IResource.FORCE) != 0; this.keepHistory = (flags & IResource.KEEP_HISTORY) != 0; this.monitor = monitor; status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IResourceStatus.FAILED_DELETE_LOCAL, Messages.localstore_deleteProblem, null); }
/** * Creates a new visitor, whose sync status will have the given title. */ public CollectSyncStatusVisitor(String multiStatusTitle, IProgressMonitor monitor) { super(monitor); status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.INFO, multiStatusTitle, null); }
/** * Creates a new visitor, whose sync status will have the given title. */ public CollectSyncStatusVisitor(String multiStatusTitle, IProgressMonitor monitor) { super(monitor); status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.INFO, multiStatusTitle, null); }
/** * Creates a new visitor, whose sync status will have the given title. */ public CollectSyncStatusVisitor(String multiStatusTitle, IProgressMonitor monitor) { super(monitor); status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.INFO, multiStatusTitle, null); }
private void addStatus(IStatus status) { if (fStatus == null) { fStatus = new MultiStatus(LaunchingPlugin.ID_PLUGIN, 0, LaunchingMessages.VMDefinitionsContainer_10, null); } fStatus.add(status); }
/** * Reads a Jar Package from the underlying stream. * It is the client's responsibility to close the stream. */ public JarPackageReader(InputStream inputStream) { Assert.isNotNull(inputStream); fInputStream= new BufferedInputStream(inputStream); fWarnings= new MultiStatus(JavaPlugin.getPluginId(), 0, JarPackagerMessages.JarPackageReader_jarPackageReaderWarnings, null); }
/** * Logs an exception */ protected synchronized void addException(String message) { if (errors == null) { String msg = Messages.WM_errors; errors = new MultiStatus(ResourcesPlugin.PI_RESOURCES, 1, msg, null); } errors.add(new Status(IStatus.ERROR, ResourcesPlugin.PI_RESOURCES, 1, message, null)); }
private void addStatus(IStatus status) { if (fStatus == null) { fStatus = new MultiStatus(LaunchingPlugin.ID_PLUGIN, 0, LaunchingMessages.VMDefinitionsContainer_10, null); } fStatus.add(status); }
public RefreshLocalVisitor(IProgressMonitor monitor) { this.monitor = SubMonitor.convert(monitor); workspace = (Workspace) ResourcesPlugin.getWorkspace(); resourceChanged = false; String msg = Messages.resources_errorMultiRefresh; errors = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IResourceStatus.FAILED_READ_LOCAL, msg, null); }
IStatus touchpointCompleteOperand(IProfile profile, Operand operand, Map<String, Object> parameters, IProgressMonitor monitor) { if (touchpointToTouchpointOperandParameters.isEmpty()) return Status.OK_STATUS; MultiStatus status = new MultiStatus(EngineActivator.ID, IStatus.OK, null, null); for (Map.Entry<Touchpoint, Map<String, Object>> entry : touchpointToTouchpointOperandParameters.entrySet()) { Touchpoint touchpoint = entry.getKey(); Map<String, Object> touchpointParameters = entry.getValue(); mergeStatus(status, touchpoint.completeOperand(profile, touchpointParameters)); } touchpointToTouchpointOperandParameters.clear(); return status; }
@Override public IStatus toStatus() { MultiStatus result = new MultiStatus(DirectorActivator.PI_DIRECTOR, 1, Messages.Explanation_unsatisfied, null); final String fromString = patch.toString() + ' ' + getUserReadableName(iu); result.add(new Status(IStatus.ERROR, DirectorActivator.PI_DIRECTOR, NLS.bind(Messages.Explanation_fromPatch, fromString))); result.add(new Status(IStatus.ERROR, DirectorActivator.PI_DIRECTOR, NLS.bind(Messages.Explanation_to, req))); return result; }
@Override public void loadSnapshot(int options, URI snapshotLocation, IProgressMonitor monitor) throws CoreException { // load a snapshot of refresh information when project is not opened if (isOpen()) { String message = Messages.resources_projectMustNotBeOpen; MultiStatus status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.ERROR, message, null); throw new CoreException(status); } internalLoadSnapshot(options, snapshotLocation, monitor); }
public TextSearchVisitor(TextSearchRequestor collector, Pattern searchPattern) { fCollector= collector; fStatus = new MultiStatus(IConstants.PLUGIN_ID, IStatus.OK, "Problems encountered during text search.", null); fSearchPattern= searchPattern; fIsLightweightAutoRefresh= Platform.getPreferencesService().getBoolean(ResourcesPlugin.PI_RESOURCES, ResourcesPlugin.PREF_LIGHTWEIGHT_AUTO_REFRESH, false, null); }
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { MultiStatus status= new MultiStatus(JavaUI.ID_PLUGIN, IStatus.OK, NewWizardMessages.ClasspathFixSelectionDialog_eval_proposals_error_message, null); classPathFixProposals[0]= ClasspathFixProcessorDescriptor.getProposals(project, missingType, status); if (!status.isOK()) { JavaPlugin.log(status); } } });
public static void logErrorStatus(String message, IStatus status) { if (status == null) { logErrorMessage(message); return; } MultiStatus multi= new MultiStatus(EditorsUI.PLUGIN_ID, IEditorsStatusConstants.INTERNAL_ERROR, message, null); multi.add(status); log(multi); }
public CopyVisitor(IResource rootSource, IResource destination, int updateFlags, IProgressMonitor monitor) { this.localManager = ((Resource) rootSource).getLocalManager(); this.rootDestination = destination; this.updateFlags = updateFlags; this.isDeep = (updateFlags & IResource.SHALLOW) == 0; this.force = (updateFlags & IResource.FORCE) != 0; this.monitor = monitor; this.segmentsToDrop = rootSource.getFullPath().segmentCount(); this.status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.INFO, Messages.localstore_copyProblem, null); }
public CopyVisitor(IResource rootSource, IResource destination, int updateFlags, IProgressMonitor monitor) { this.localManager = ((Resource) rootSource).getLocalManager(); this.rootDestination = destination; this.updateFlags = updateFlags; this.isDeep = (updateFlags & IResource.SHALLOW) == 0; this.force = (updateFlags & IResource.FORCE) != 0; this.monitor = monitor; this.segmentsToDrop = rootSource.getFullPath().segmentCount(); this.status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.INFO, Messages.localstore_copyProblem, null); }
public CopyVisitor(IResource rootSource, IResource destination, int updateFlags, IProgressMonitor monitor) { this.localManager = ((Resource) rootSource).getLocalManager(); this.rootDestination = destination; this.updateFlags = updateFlags; this.isDeep = (updateFlags & IResource.SHALLOW) == 0; this.force = (updateFlags & IResource.FORCE) != 0; this.monitor = monitor; this.segmentsToDrop = rootSource.getFullPath().segmentCount(); this.status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IStatus.INFO, Messages.localstore_copyProblem, null); }
private IStatus saveWorkbenchState(IMemento memento) { MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.Workbench_problemsSaving, null); // TODO: Currently we store the editors history only. Add more if needed result.add(getEditorHistory().saveState( memento.createChild(IWorkbenchConstants.TAG_MRU_LIST))); return result; }
private static IStatus createMultiStatus(CoreException originalException, CoreException e) { IStatus childStatus = Activator.createErrorStatus( originalException.getMessage(), originalException); return new MultiStatus(Activator.getPluginId(), IStatus.ERROR, new IStatus[] { childStatus }, e.getMessage(), e); }