buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void disassemble(IAnnotationDefaultAttribute annotationDefaultAttribute, StringBuffer buffer, String lineSeparator, int tabNumber) { writeNewLine(buffer, lineSeparator, tabNumber + 1); buffer.append(Messages.disassembler_annotationdefaultheader); IAnnotationComponentValue componentValue = annotationDefa...
private void disassemble(IAnnotationDefaultAttribute annotationDefaultAttribute, StringBuffer buffer, String lineSeparator, int tabNumber) { writeNewLine(buffer, lineSeparator, tabNumber + 1); buffer.append(Messages.disassembler_annotationdefaultheader); IAnnotationComponentValue componentValue = annotationDefa...
public static final String DEFAULT_INIT_OVERRIDE_KEY = "log4j.defaultInitOverride"; /** Search for the properties file log4j.properties in the CLASSPATH. */ static { String override =OptionConverter.getSystemProperty(DEFAULT_INIT_OVERRIDE_KEY, ...
public static final String DEFAULT_INIT_OVERRIDE_KEY = "log4j.defaultInitOverride"; /** Search for the properties file log4j.properties in the CLASSPATH. */ static { String override =OptionConverter.getSystemProperty(DEFAULT_INIT_OVERRIDE_KEY, ...
public void resolve() { SourceTypeBinding sourceType = this.binding; if (sourceType == null) { this.ignoreFurtherInvestigation = true; return; } try { resolveAnnotations(this.annotations, scope); if ((this.bits & UndocumentedEmptyBlockMASK) != 0) { this.scope.problemReporter().undocumented...
public void resolve() { SourceTypeBinding sourceType = this.binding; if (sourceType == null) { this.ignoreFurtherInvestigation = true; return; } try { resolveAnnotations(this.annotations, this.staticInitializerScope); if ((this.bits & UndocumentedEmptyBlockMASK) != 0) { this.scope.problem...
public void execute(WorkerStatusController worker) throws Exception { ComposerCommandReference[] r = (ComposerCommandReference[]) getReferences(); ComposerController composerController = r[0].getComposerController(); AccountItem item = ((ComposerModel) composerController.getModel()...
public void execute(WorkerStatusController worker) throws Exception { ComposerCommandReference[] r = (ComposerCommandReference[]) getReferences(); ComposerController composerController = r[0].getComposerController(); AccountItem item = ((ComposerModel) composerController.getModel()...
public StringBuffer printExpression(int indent, StringBuffer output) { super.printExpression(indent, output); output.append('('); if (this.memberValuePairs != null) { for (int i = 0, max = this.memberValuePairs.length; i < max; i++) { if (i > 0) { output.append(','); } this.memberValuePairs[i...
public StringBuffer printExpression(int indent, StringBuffer output) { super.printExpression(indent, output); output.append('('); if (this.memberValuePairs != null) { for (int i = 0, max = this.memberValuePairs.length; i < max; i++) { if (i > 0) { output.append(','); } this.memberValuePairs[i...
public void actionPerformed(ActionEvent ae) { //_cmdCreateNode.doIt(); ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); try { Object contextObj = pb.getDetailsTarget(); if (!(contextObj instanceof MClass)) { JOptionPane.showMessageDialog(null, "You need to have...
public void actionPerformed(ActionEvent ae) { //_cmdCreateNode.doIt(); ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); try { Object contextObj = pb.getDetailsTarget(); if (!(contextObj instanceof MClass)) { JOptionPane.showMessageDialog(null, "You need to have...
public Object lookupData() { return plugin; } }); WizardModel model; if (firstTime) { model = new DefaultWizardModel(new Step[] { new DescriptionStep(data), new LocationStep(data) }); } else { model = new DefaultWizardModel(new Step[] { new InfoStep(), new DescriptionStep(data), new ...
public Object lookupData() { return plugin; } }); WizardModel model; if (firstTime) { model = new DefaultWizardModel(new Step[] { new DescriptionStep(data), new LocationStep(data) }); } else { model = new DefaultWizardModel(new Step[] { new InfoStep(), new DescriptionStep(data), new ...
List getActivityBindingDefinitions(); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * ...
List getActivityBindingDefinitions(); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * ...
public SetResponse addMessage(Message in) { boolean isAuth = in.getHeader().getFlag(Flags.AA); Record question = in.getQuestion(); Name qname; Name curname; short qtype; short qclass; byte cred; short rcode = in.getHeader().getRcode(); boolean haveAnswer = false; boolean completed = false; boolean restart = ...
public SetResponse addMessage(Message in) { boolean isAuth = in.getHeader().getFlag(Flags.AA); Record question = in.getQuestion(); Name qname; Name curname; short qtype; short qclass; byte cred; short rcode = in.getHeader().getRcode(); boolean haveAnswer = false; boolean completed = false; boolean restart = ...
public static String removeAccel(String label) { int startBracket = label.indexOf("(&"); //Non latin accelerator? if (startBracket >= 0) { int endBracket = label.indexOf(')'); //If there is more than one character it is not an accelerator if ((endBracket - startBracket) == 3) return label.substrin...
public static String removeAccel(String label) { int startBracket = label.indexOf("(&"); //$NON-NLS-1$ //Non latin accelerator? if (startBracket >= 0) { int endBracket = label.indexOf(')'); //If there is more than one character it is not an accelerator if ((endBracket - startBracket) == 3) return ...
MessageFolder createFolder(int folderId); // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed under the L...
MessageFolder createFolder(int folderId); // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed under the L...
public static IStatus validateClassFileName(String name) { if (name == null) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.nullName"), null); //$NON-NLS-1$ } if (!Util.isClassFileName(name)) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("c...
public static IStatus validateClassFileName(String name) { if (name == null) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.nullName"), null); //$NON-NLS-1$ } if (!Util.isClassFileName(name)) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("c...
public void actionPerformed(ActionEvent evt) { MainInterface.processor.addOp( new SaveAttachmentCommand( getFrameController() .getSelectionManager() .getHandler("mail.attachment") .getSelection())); }
public void actionPerformed(ActionEvent evt) { MainInterface.processor.addOp( new SaveAttachmentCommand( getFrameMediator() .getSelectionManager() .getHandler("mail.attachment") .getSelection())); }
public Enumeration getLocales() { return RequestUtil.getLocales(request); }
public Enumeration getLocales() { return RequestUtil.getLocales(request.getMimeHeaders()); }
public OPTRecord(short payloadSize, byte xrcode, byte version) { this(payloadSize, xrcode, version, 0); } OPTRecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException
public OPTRecord(short payloadSize, byte xrcode, byte version) { this(payloadSize, xrcode, version, 0); } OPTRecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in) throws IOException
public MultiTypeDeclarationPattern( char[][] qualifications, char[][] simpleNames, char typeSuffix, int matchRule) { this(matchRule); if (isCaseSensitive() || qualifications == null) { this.qualifications = qualifications; } else { int length = qualifications.length; this.qualifications = new char[length...
public MultiTypeDeclarationPattern( char[][] qualifications, char[][] simpleNames, char typeSuffix, int matchRule) { this(matchRule); if (isCaseSensitive() || qualifications == null) { this.qualifications = qualifications; } else { int length = qualifications.length; this.qualifications = new char[length...
public void setReferencedElement(Vector x) throws PropertyVetoException { if (_referencedElement == null) _referencedElement = new Vector(); fireVetoableChange("referencedElemement", _referencedElement, x); _referencedElement = x; }
public void setReferencedElement(Vector x) throws PropertyVetoException { if (_referencedElement == null) _referencedElement = new Vector(); fireVetoableChangeNoCompare("referencedElemement", _referencedElement, x); _referencedElement = x; }
private void initURLs() { URL baseURL = context.getServletBase(); String protocol = baseURL.getProtocol(); int port = baseURL.getPort(); String hostname = baseURL.getHost(); String basepath = baseURL.getFile(); // The classes directory... for(Enumera...
private void initURLs() { URL baseURL = context.getDocumentBase(); String protocol = baseURL.getProtocol(); int port = baseURL.getPort(); String hostname = baseURL.getHost(); String basepath = baseURL.getFile(); // The classes directory... for(Enumer...
protected void setUp() throws Exception { // create config-folder File file = new File("test_config"); file.mkdir(); new Config(file); Logging.DEBUG = true; Logging.createDefaultHandler(); // init mail component new MailMain().init(); new AddressbookMain().init(); // now load all available ...
protected void setUp() throws Exception { // create config-folder File file = new File("test_config"); file.mkdir(); new Config(file); Logging.DEBUG = true; Logging.createDefaultHandler(); // init mail component new MailMain().init(); new AddressbookMain().init(); // now load all available ...
private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); blockingMonitor = blocking; if (blockingStatus instanceof IJobStatus) blockingJob = ((IJobStatus) blockingStatus).getJ...
private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getNonModalShell() : parentShell); blockingMonitor = blocking; if (blockingStatus instanceof IJobStatus) blockingJob = ((IJobStatus) blockingStatus).getJ...
public void execute() throws Exception { if( args!=null ) processArgs( args ); if( help ) { printUsage(); return; } System.out.println(sm.getString("tomcat.stop")); try { stopTomcat(); // stop serving } catch (java.net.ConnectException ex) { System.out.pri...
public void execute() throws Exception { if( args!=null ) processArgs( args ); if( help ) { printUsage(); return; } System.out.println(sm.getString("tomcat.stop")); try { stopTomcat(); // stop serving } catch (java.net.ConnectException ex) { System.out.pri...
public static ClassFileReader newClassFileReader(IResource resource) throws CoreException, ClassFormatException, IOException { InputStream in = null; try { in = ((IFile) resource).getContents(); return ClassFileReader.read(in, resource.getFullPath().toString()); } finally { if (in != null) in.close(...
public static ClassFileReader newClassFileReader(IResource resource) throws CoreException, ClassFormatException, IOException { InputStream in = null; try { in = ((IFile) resource).getContents(true); return ClassFileReader.read(in, resource.getFullPath().toString()); } finally { if (in != null) in.cl...
protected PropertyDescriptor[] props; public interface PropertyCallback { void foundProperty(Object obj, String prefix, String name, Object value); } /** Create a new PropertySetter for the specified Object. This is done in prepartion for invoking {@link #getProperties(PropertyGetter.Prope...
protected PropertyDescriptor[] props; public interface PropertyCallback { void foundProperty(Object obj, String prefix, String name, Object value); } /** Create a new PropertyGetter for the specified Object. This is done in prepartion for invoking {@link #getProperties(PropertyGetter.Prope...
public String toStringExpression(){ /* slow code */ return qualification.toString(0)+".super" ; }
public String toStringExpression(){ /* slow code */ return qualification.toString(0)+".super"/*nonNLS*/ ; }
public void test() { PluginManager manager = PluginManager.getInstance(); manager.initPlugins(); }
public void test() { IPluginManager manager = PluginManager.getInstance(); manager.initPlugins(); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] selection = (FolderCommandReference[]) getFrameController().getSelectionManager().getSelection("mail.tree"); CreateFolderDialog dialog = new CreateFolderDialog(selection[0].getFolder().getSelectionTreePath()); dialog.showDialog(); String...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] selection = (FolderCommandReference[]) getFrameMediator().getSelectionManager().getSelection("mail.tree"); CreateFolderDialog dialog = new CreateFolderDialog(selection[0].getFolder().getSelectionTreePath()); dialog.showDialog(); String n...
private void createToolbar() { Insets buttonMargins = new Insets(1, 1, 1, 1); FileMenu menu = (FileMenu) menuBar.getMenu(0); JButton fileOpenButton = new SmallButton(menu.getLog4JFileOpenAction()); fileOpenButton.setMargin(buttonMargins); JButton fileSaveButton = new SmallButton(menu.getFileSav...
private void createToolbar() { Insets buttonMargins = new Insets(1, 1, 1, 1); FileMenu menu = (FileMenu) menuBar.getMenu(0); JButton fileOpenButton = new SmallButton(menu.getLog4JFileOpenAction()); fileOpenButton.setMargin(buttonMargins); JButton fileSaveButton = new SmallButton(menu.getFileSav...
protected void generateFields(EntityEnterpriseContext ctx) throws CreateException { // Audit principal fields if(securityManager != null) { String principalName = ctx.getEJBContext().getCallerPrincipal().getName(); if(createdPrincipal != null && createdPrincipal.getInstanceValu...
protected void generateFields(EntityEnterpriseContext ctx) throws CreateException { // Audit principal fields if(securityManager != null) { String principalName = ctx.getCallerPrincipal().getName(); if(createdPrincipal != null && createdPrincipal.getInstanceValue(ctx) == null) ...
public void applyPatternBindings() { applyPatternBindings(getObjectIds()); } /** * Apply pattern bindings to a collection of objects within this manager. * * @param objectIds * a collection containing <code>IObjectContributionRecords</code> * @since 3.0 */ void applyPatternBindings(Collec...
public void applyPatternBindings() { applyPatternBindings(getObjectIds()); } /** * Apply pattern bindings to a collection of objects within this manager. * * @param objectIds * a collection containing <code>IObjectContributionRecords</code> * @since 3.0 */ void applyPatternBindings(Collec...
public void recordPositionsFrom(int startPC, int sourcePos, boolean widen) { /* Record positions in the table, only if nothing has * already been recorded. Since we output them on the way * up (children first for more specific info) * The pcToSourceMap table is always sorted. */ if ((this.generateAttribut...
public void recordPositionsFrom(int startPC, int sourcePos, boolean widen) { /* Record positions in the table, only if nothing has * already been recorded. Since we output them on the way * up (children first for more specific info) * The pcToSourceMap table is always sorted. */ if ((this.generateAttribut...
private void connectMemberTypes() { SourceTypeBinding sourceType = referenceContext.binding; ReferenceBinding[] memberTypes = sourceType.memberTypes; if (memberTypes != null && memberTypes != Binding.NO_MEMBER_TYPES) { for (int i = 0, size = memberTypes.length; i < size; i++) ((SourceTypeBinding) memberT...
private void connectMemberTypes() { SourceTypeBinding sourceType = referenceContext.binding; ReferenceBinding[] memberTypes = sourceType.memberTypes; if (memberTypes != null && memberTypes != Binding.NO_MEMBER_TYPES) { for (int i = 0, size = memberTypes.length; i < size; i++) ((SourceTypeBinding) memberT...
protected IBuffer openBuffer(IProgressMonitor pm) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { char[] contents = mapper.findSource(getType()); if (contents != null) { IBufferManager bufManager = getBufferManager(); IBuffer buf = bufManager.openBuffer(contents, p...
protected IBuffer openBuffer(IProgressMonitor pm) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { char[] contents = mapper.findSource(getType()); if (contents != null) { BufferManager bufManager = getBufferManager(); IBuffer buf = bufManager.openBuffer(contents, pm...
protected void initializeDefaultPluginPreferences() { Preferences preferences = getPluginPreferences(); HashSet optionNames = JavaModelManager.OptionNames; // Compiler settings preferences.setDefault(COMPILER_LOCAL_VARIABLE_ATTR, GENERATE); optionNames.add(COMPILER_LOCAL_VARIABLE_ATTR); preferences....
protected void initializeDefaultPluginPreferences() { Preferences preferences = getPluginPreferences(); HashSet optionNames = JavaModelManager.OptionNames; // Compiler settings preferences.setDefault(COMPILER_LOCAL_VARIABLE_ATTR, GENERATE); optionNames.add(COMPILER_LOCAL_VARIABLE_ATTR); preferences....
public void add(IJavaElement element) throws JavaModelException { IPackageFragmentRoot root = null; switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: // a workspace sope should be used break; case IJavaElement.JAVA_PROJECT: this.add((IJavaProject)element, true, new HashSet(2)); break;...
public void add(IJavaElement element) throws JavaModelException { IPackageFragmentRoot root = null; switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: // a workspace sope should be used break; case IJavaElement.JAVA_PROJECT: this.add((IJavaProject)element, true, new HashSet(2)); break;...
public String toString() { return "Unresolved type " + ((compoundName != null) ? CharOperation.toString(compoundName) : "UNNAMED"); //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { return "Unresolved type " + ((this.compoundName != null) ? CharOperation.toString(this.compoundName) : "UNNAMED"); //$NON-NLS-1$ //$NON-NLS-2$ }
public void mouseDoubleClick(MouseEvent e) { processDoubleClick(); } }); //Never show debug info IContentProvider provider = new ProgressViewerContentProvider(viewer, true); viewer.setContentProvider(provider); viewer.setIn...
public void mouseDoubleClick(MouseEvent e) { processDoubleClick(); } }); //Never show debug info IContentProvider provider = new ProgressViewerContentProvider(viewer, false); viewer.setContentProvider(provider); viewer.setI...
private IStatus openErrorDialog(String title, String msg, final StatusInfo statusInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); // Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) { return Status.CANCEL_STATUS; } dialog = new StatusDialog(Prog...
private IStatus openErrorDialog(String title, String msg, final StatusInfo statusInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); // Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) { return Status.CANCEL_STATUS; } dialog = new StatusDialog(Prog...
public boolean getVisible() { return new Boolean(rootElement.getAttribute("visible")).booleanValue(); }
public boolean getVisible() { return Boolean.valueOf(rootElement.getAttribute("visible")).booleanValue(); }
public TSIGRecord(Name name, short dclass, int ttl, Name alg, Date timeSigned, short fudge, byte [] signature, int originalID, short error, byte other[]) { this(name, dclass, ttl); if (!alg.isAbsolute()) throw new RelativeNameException(alg); this.alg = alg; this.timeSigned = timeSigned; this.fudge = fudg...
public TSIGRecord(Name name, short dclass, int ttl, Name alg, Date timeSigned, short fudge, byte [] signature, int originalID, short error, byte other[]) { this(name, dclass, ttl); if (!alg.isAbsolute()) throw new RelativeNameException(alg); this.alg = alg; this.timeSigned = timeSigned; this.fudge = fudg...
public void addProblemClinit(IProblem[] problems) { generateMethodInfoHeaderForClinit(); // leave two spaces for the number of attributes contentsOffset -= 2; int attributeOffset = contentsOffset; contentsOffset += 2; int attributeNumber = 0; int codeAttributeOffset = contentsOffset; generateCodeAttri...
public void addProblemClinit(IProblem[] problems) { generateMethodInfoHeaderForClinit(); // leave two spaces for the number of attributes contentsOffset -= 2; int attributeOffset = contentsOffset; contentsOffset += 2; int attributeNumber = 0; int codeAttributeOffset = contentsOffset; generateCodeAttri...
private static String[] allModelElements = { "Actor", "Extend", "ExtensionPoint", "Include", "UseCase", "UseCaseInstance", };
public void testBuildExtend1() { MUseCase base = UseCasesFactory.getFactory().createUseCase(); MUseCase extension = UseCasesFactory.getFactory().createUseCase(); MExtensionPoint point = UseCasesFactory.getFactory().buildExtensionPoint(base); MExtend extend = UseCasesFactory.getFactor...
public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, boolean includeReferencedProjects) { JavaSearchScope scope = new JavaSearchScope(); Hashtable visitedProjects = new Hashtable(2); for (int i = 0, length = elements.length; i < length; i++) { IJavaElement element = elements[i]; if (elem...
public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, boolean includeReferencedProjects) { JavaSearchScope scope = new JavaSearchScope(); HashSet visitedProjects = new HashSet(2); for (int i = 0, length = elements.length; i < length; i++) { IJavaElement element = elements[i]; if (element ...
public MethodBinding getImplicitMethod(char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite) { boolean insideStaticContext = false; boolean insideConstructorCall = false; MethodBinding foundMethod = null; MethodBinding foundFuzzyProblem = null; // the weird method lookup case (matches...
public MethodBinding getImplicitMethod(char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite) { boolean insideStaticContext = false; boolean insideConstructorCall = false; MethodBinding foundMethod = null; MethodBinding foundFuzzyProblem = null; // the weird method lookup case (matches...
public Index[] getIndexes(IProgressMonitor progressMonitor) { // acquire the in-memory indexes on the fly IPath[] indexLocations = this.participant.selectIndexes(this.pattern, this.scope); int length = indexLocations.length; Index[] indexes = new Index[length]; int count = 0; IndexManager indexManager = JavaModel...
public Index[] getIndexes(IProgressMonitor progressMonitor) { // acquire the in-memory indexes on the fly IPath[] indexLocations = this.participant.selectIndexes(this.pattern, this.scope); int length = indexLocations.length; Index[] indexes = new Index[length]; int count = 0; IndexManager indexManager = JavaModel...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { Assert.isTrue(false, "Completion re...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { Assert.isTrue(false, "completion re...
protected Image getImage() { return JFaceResources.getImageRegistry().get(Dialog.DLG_IMG_LOCKED); }
protected Image getImage() { return JFaceResources.getImageRegistry().get(Dialog.DLG_IMG_WARNING); }
protected String getMainTaskName() { return Util.bind("operation.copyResourceProgress"); //$NON-NLS-1$ }
protected String getMainTaskName() { return org.eclipse.jdt.internal.core.Util.bind("operation.copyResourceProgress"); //$NON-NLS-1$ }
protected void createTools(JToolBar palette) { super.createTools(palette); Tool tool = new ZoomTool(this); palette.add(createToolButton(IMAGES + "ZOOM", "Zoom Tool", tool)); tool = new UndoableTool(new TextTool(this, new TextFigure())); palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool)); ...
protected void createTools(JToolBar palette) { super.createTools(palette); Tool tool = new ZoomTool(this); palette.add(createToolButton(IMAGES + "ZOOM", "Zoom Tool", tool)); tool = new UndoableTool(new TextTool(this, new TextFigure())); palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool)); ...
public void start() { if(osok = osok()) { delegate = new Delegate(); NSApplication app = NSApplication.sharedApplication(); Macros.registerHandler(new AppleScriptHandler()); Application app2 = new Application(); app2.addApplicationListener(delegate); app2.setEnabledPreferencesMenu(true); ...
public void start() { if(osok = osok()) { delegate = new Delegate(); NSApplication app = NSApplication.sharedApplication(); Macros.registerHandler(new AppleScriptHandler()); Application app2 = new Application(); app2.addApplicationListener(delegate); app2.setEnabledPreferencesMenu(true); ...
public InputStream getMimePartBodyStream(Object uid, Integer[] address) throws Exception { return ( (StreamableMimePart) getStore().getMimePart( uid, address, getImapPath())) .getInputStream(); ; } }
public InputStream getMimePartBodyStream(Object uid, Integer[] address) throws Exception { return ( (StreamableMimePart) getStore().getMimePart( uid, address, getImapPath())) .getInputStream(); //; } }
public static long parseTTL(String s) { if (s == null || !Character.isDigit(s.charAt(0))) throw new NumberFormatException(); long value = 0; long ttl = 0; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); long oldvalue = value; if (Character.isDigit(c)) { value = (value * 10) + Character.getNu...
public static long parseTTL(String s) { if (s == null || s.length() == 0 || !Character.isDigit(s.charAt(0))) throw new NumberFormatException(); long value = 0; long ttl = 0; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); long oldvalue = value; if (Character.isDigit(c)) { value = (value * 10...
public void componentAdded(ContainerEvent e) { ColumbaLogger.log.debug( "Re-registering as observer on editor controller"); ((ComposerController) getController()).getEditorController() .addObserver(this); }
public void componentAdded(ContainerEvent e) { ColumbaLogger.log.info( "Re-registering as observer on editor controller"); ((ComposerController) getController()).getEditorController() .addObserver(this); }
public void record(IProblem problem, CompilationResult unitResult) { requestor.acceptProblem(problem); } }, false); this.requestor = requestor; intArrayStack = new int[30][]; this.options = options; this.javadocParser.checkJavadoc = false; }
public void record(IProblem problem, CompilationResult unitResult) { requestor.acceptProblem(problem); } }, false); this.requestor = requestor; intArrayStack = new int[30][]; this.options = options; this.javadocParser.checkDocComment = false; }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; if (this.action == null || this.action.isEmptyBlock() || ((this.action.bits & IsUsefulEmptyStatementMASK) != 0)) { codeStream.exitUserScope...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; if (this.action == null || this.action.isEmptyBlock() || ((this.action.bits & IsUsefulEmptyStatementMASK) != 0)) { codeStream.exitUserScope...
public void analyseCode( ClassScope classScope, InitializationFlowContext staticInitializerFlowContext, FlowInfo flowInfo) { if (this.ignoreFurtherInvestigation) return; try { ExceptionHandlingFlowContext clinitContext = new ExceptionHandlingFlowContext( staticInitializerFlowContext.parent, ...
public void analyseCode( ClassScope classScope, InitializationFlowContext staticInitializerFlowContext, FlowInfo flowInfo) { if (this.ignoreFurtherInvestigation) return; try { ExceptionHandlingFlowContext clinitContext = new ExceptionHandlingFlowContext( staticInitializerFlowContext.parent, ...
public void actionPerformed(ActionEvent evt) { CreateFolderDialog dialog = new CreateFolderDialog(getFrameMediator(), null); String name; if (dialog.success()) { // ok pressed name = dialog.getName(); try { MailFolderCommandReference r = (MailFolderCommandReference) ((AbstractMailFrameControl...
public void actionPerformed(ActionEvent evt) { CreateFolderDialog dialog = new CreateFolderDialog(getFrameMediator(), null); String name; if (dialog.success()) { // ok pressed name = dialog.getName(); try { MailFolderCommandReference r = (MailFolderCommandReference) ((AbstractMailFrameControl...
private boolean createParser(JavaProject project) throws JavaModelException { INameEnvironment nameEnvironment = project.getSearchableNameEnvironment(); IProblemFactory problemFactory = new DefaultProblemFactory(); CompilerOptions options = new CompilerOptions(JavaCore.getOptions()); ProblemReporter problemRe...
private boolean createParser(JavaProject project) throws JavaModelException { INameEnvironment nameEnvironment = project.getSearchableNameEnvironment(); IProblemFactory problemFactory = new DefaultProblemFactory(); CompilerOptions options = new CompilerOptions(JavaCore.getOptions()); ProblemReporter problemRe...
public void moveToTrash(Object obj) { System.out.println("trashing: " + obj); if (obj instanceof ModelElement) { ModelElement me = (ModelElement) obj; try { me.setElementOwnership(null); } catch (PropertyVetoException pve) { System.out.println("Project got a PropertyVetoException"); }...
public void moveToTrash(Object obj) { System.out.println("trashing: " + obj); if (obj instanceof ModelElement) { ModelElement me = (ModelElement) obj; try { me.setElementOwnership(null); } catch (PropertyVetoException pve) { System.out.println("Project got a PropertyVetoException"); }...
@since 1.0 /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software * License version 1.1, a copy of which has been included with this * distribution in the LICENSE.APL file. */ package org.apache.log4j.spi; import java.net.UR...
@since 1.0 /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software * License version 1.1, a copy of which has been included with this * distribution in the LICENSE.APL file. */ package org.apache.log4j.spi; import java.net.UR...
protected Component createPanels() { _topSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, _navPane, _multiPane); _botSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, _toDoPane, _detailsPane); _mainSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, _topSplit, _botSplit); _topSplit.setDiv...
protected Component createPanels() { _topSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, _navPane, _multiPane); _botSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, _toDoPane, _detailsPane); _mainSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, _topSplit, _botSplit); _topSplit.setDiv...
public SIGRecord(Name _name, short _dclass, int _ttl, int _covered, int _alg, int _origttl, Date _expire, Date _timeSigned, int _footprint, Name _signer, byte [] _signature) { super(_name, Type.SIG, _dclass, _ttl); covered = (short) _covered; alg = (byte) _alg; labels = name.labels(); origttl = _origttl; ex...
public SIGRecord(Name _name, short _dclass, int _ttl, int _covered, int _alg, int _origttl, Date _expire, Date _timeSigned, int _footprint, Name _signer, byte [] _signature) { super(_name, Type.SIG, _dclass, _ttl); covered = (short) _covered; alg = (byte) _alg; labels = name.labels(); origttl = _origttl; ex...
public String toString() { return Localizer.localize ("Tree", "Class->Subclass"); }
public String toString() { return Localizer.localize ("Tree", "misc.class.subclass"); }
public void labelProviderChanged(LabelProviderChangedEvent event) { Object[] elements = event.getElements(); scheduler.clearResults(); //If the elements are not specified send out a general update if(elements == null) fireListeners(event); else{ //Assume that someone is going to care about the //...
public void labelProviderChanged(LabelProviderChangedEvent event) { Object[] elements = event.getElements(); scheduler.clearResults(); //If the elements are not specified send out a general update if(elements == null) fireListeners(event); else{ //Assume that someone is going to care about the //...
public void read(StorableInput dr) throws IOException { super.read(dr); Connector start = (Connector)dr.readStorable(); if (start != null) { connectStart(start); } Connector end = (Connector)dr.readStorable(); if (end != null) { connectEnd(end); } if (start != null && end != null) { updateConn...
public void read(StorableInput dr) throws IOException { super.read(dr); Connector start = (Connector)dr.readStorable(); if (start != null) { connectStart(start); } Connector end = (Connector)dr.readStorable(); if (end != null) { connectEnd(end); } if ((start != null) && (end != null)) { update...
public static void sendEmail( TemplateContext context, ScarabUser fromUser, List toUsers, String subject, String template ) throws Exception { TemplateEmail te = new TemplateEmail(); if ( context == null ) { context = new DefaultTemplateCo...
public static void sendEmail( TemplateContext context, ScarabUser fromUser, List toUsers, String subject, String template ) throws Exception { TemplateEmail te = new TemplateEmail(); if ( context == null ) { context = new DefaultTemplateCo...
List getActivityRequirementBindingDefinitions(); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public Licen...
List getActivityRequirementBindingDefinitions(); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public Licen...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameController; Object uid = addressbookFrameController.getTable().getView().getSelectedUid(); if (uid == null) return; HeaderItem item = addressbookFrameController...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameMediator; Object uid = addressbookFrameController.getTable().getView().getSelectedUid(); if (uid == null) return; HeaderItem item = addressbookFrameController.g...
protected static Object convertConstant(Constant constant) { if (constant == null) return null; if (constant == Constant.NotAConstant) { return null; } switch (constant.typeID()) { case TypeIds.T_boolean : return constant.booleanValue() ? Boolean.TRUE : Boolean.FALSE; case TypeIds.T_byte : return new ...
protected static Object convertConstant(Constant constant) { if (constant == null) return null; if (constant == Constant.NotAConstant) { return null; } switch (constant.typeID()) { case TypeIds.T_boolean : return constant.booleanValue() ? Boolean.TRUE : Boolean.FALSE; case TypeIds.T_byte : return new ...
public boolean trySave(boolean overwrite) { try { if (expander == null) { java.util.Hashtable templates = TemplateReader.readFile(ARGO_TEE); expander = new OCLExpander(templates); } ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); String fullpath = "U...
public boolean trySave(boolean overwrite) { try { if (expander == null) { java.util.Hashtable templates = TemplateReader.readFile(ARGO_TEE); expander = new OCLExpander(templates); } ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); String fullpath = "U...
public boolean inContext(Object[] o) { if (o.length < 2) return false; // We are in context for any JMenuItem. if (o[0] instanceof JMenuItem && o[1].equals("Tools")) { return true; } return false; }
public boolean inContext(Object[] o) { if (o.length < 2) return false; // We are in context for any JMenuItem. if (o[0] instanceof JMenuItem && o[1].equals(PluggableMenu.KEY_TOOLS)) { return true; } return false; }
public PackageFragmentRootInfo() { this.fNonJavaResources = null; } /** * Starting at this folder, create non-java resources for this package fragment root * and add them to the non-java resources collection. * * @exception JavaModelException The resource associated with this package fragment does not exist */...
public PackageFragmentRootInfo() { this.fNonJavaResources = null; } /** * Starting at this folder, create non-java resources for this package fragment root * and add them to the non-java resources collection. * * @exception JavaModelException The resource associated with this package fragment does not exist */...
public CriticBrowserDialog() { super(ProjectBrowser.TheInstance, "Critics"); Container mainContent = getContentPane(); // GridBagLayout gb = new GridBagLayout(); // GridBagConstraints c = new GridBagConstraints(); // c.fill = GridBagConstraints.BOTH; // c.weightx = 0.0; // c.ipadx = 3; c....
public CriticBrowserDialog() { super(ProjectBrowser.getInstance(), "Critics"); Container mainContent = getContentPane(); // GridBagLayout gb = new GridBagLayout(); // GridBagConstraints c = new GridBagConstraints(); // c.fill = GridBagConstraints.BOTH; // c.weightx = 0.0; // c.ipadx = 3; ...
public void logException(Exception e) { StringWriter writer = new StringWriter(); PrintWriter printWriter = new PrintWriter(writer); e.printStackTrace(printWriter); printWriter.flush(); printWriter.close(); final String stackTrace = writer.getBuffer().toString(); if ((this.tagBits & Logger.XML) !...
public void logException(Exception e) { StringWriter writer = new StringWriter(); PrintWriter printWriter = new PrintWriter(writer); e.printStackTrace(printWriter); printWriter.flush(); printWriter.close(); final String stackTrace = writer.toString(); if ((this.tagBits & Logger.XML) != 0) { L...
public void setVisible(boolean isVisible) { this.isVisible = isVisible; getTabFolder().getControl().setVisible(isVisible); if (isVisible) { layout(true); } }
public void setVisible(boolean isVisible) { this.isVisible = isVisible; getTabFolder().setVisible(isVisible); if (isVisible) { layout(true); } }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { if (this.leafComponentType == unresolvedType) { this.leafComponentType = resolvedType.isGenericType() ? env.createRawType(resolvedType, null) : resolvedType; this.tagBits |= this.leafCompon...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { if (this.leafComponentType == unresolvedType) { this.leafComponentType = resolvedType.isGenericType() ? env.createRawType(resolvedType, resolvedType.enclosingType()) : resolvedType; this.ta...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // if reachable, request the addition of a synthetic field for caching the class descriptor SourceTypeBinding sourceType = currentScope.outerMostClassScope().enclosingSourceType(); // see https://bugs.eclip...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // if reachable, request the addition of a synthetic field for caching the class descriptor SourceTypeBinding sourceType = currentScope.outerMostClassScope().enclosingSourceType(); // see https://bugs.eclip...
private static void installFont(FontDefinition definition, ITheme theme, IPreferenceStore store, boolean setInRegistry) { FontRegistry registry = theme.getFontRegistry(); String id = definition.getId(); String key = createPreferenceKey(theme, id); FontData[] prefFont = s...
private static void installFont(FontDefinition definition, ITheme theme, IPreferenceStore store, boolean setInRegistry) { FontRegistry registry = theme.getFontRegistry(); String id = definition.getId(); String key = createPreferenceKey(theme, id); FontData[] prefFont = s...
public void myDoubleClick(int row, TreePath path) { _dblClicksInToDoPane++; if (getSelectedObject() == null) return; Object sel = getSelectedObject(); if (sel instanceof ToDoItem) { ((ToDoItem)sel).action(); Set offs = ((ToDoItem)sel).getOffenders(); ProjectBrowser.TheInstance.jumpTo...
public void myDoubleClick(int row, TreePath path) { _dblClicksInToDoPane++; if (getSelectedObject() == null) return; Object sel = getSelectedObject(); if (sel instanceof ToDoItem) { ((ToDoItem)sel).action(); VectorSet offs = ((ToDoItem)sel).getOffenders(); ProjectBrowser.TheInstance....
private void notifyIdentifiers(Map identifierEventsByIdentifierId) { for (Iterator iterator = identifierEventsByIdentifierId.entrySet().iterator(); iterator.hasNext(); ) { Map.Entry entry = (Map.Entry) iterator.next(); String identifierId = (String) entry.getKey(); IdentifierEvent identifierEvent =...
private void notifyIdentifiers(Map identifierEventsByIdentifierId) { for (Iterator iterator = identifierEventsByIdentifierId.entrySet().iterator(); iterator.hasNext(); ) { Map.Entry entry = (Map.Entry) iterator.next(); String identifierId = (String) entry.getKey(); IdentifierEvent identifierEvent =...
public AndPattern(SearchPattern leftPattern, SearchPattern rightPattern) { super(AND_PATTERN, combinedMatchRule(leftPattern.getMatchRule(), rightPattern.getMatchRule())); ((InternalSearchPattern) this).mustResolve = ((InternalSearchPattern) leftPattern).mustResolve || ((InternalSearchPattern) rightPattern).mustResolv...
public AndPattern(SearchPattern leftPattern, SearchPattern rightPattern) { super(AND_PATTERN, combinedMatchRule(leftPattern.getMatchRule(), rightPattern.getMatchRule())); ((InternalSearchPattern) this).mustResolve = ((InternalSearchPattern) leftPattern).mustResolve || ((InternalSearchPattern) rightPattern).mustResolv...
public TypeBinding resolveType(BlockScope scope) { this.constant = NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) return null; this.resolvedType = typeBinding; // ensure type refers to an annotation type if (!typeBinding.isAnnotationType()) { scop...
public TypeBinding resolveType(BlockScope scope) { this.constant = NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) return null; this.resolvedType = typeBinding; // ensure type refers to an annotation type if (!typeBinding.isAnnotationType()) { scop...
public void addSuffix(String suffixString) { suffixes.add(suffixString); valueSet = true; } /** * Clear the current values and return a DecorationResult. * * @return DecorationResult */ DecorationResult createResult() { DecorationResult newResult = new DecorationResult(new ArrayList( prefixes), ...
public void addSuffix(String suffixString) { suffixes.add(suffixString); valueSet = true; } /** * Clear the current values and return a DecorationResult. * * @return DecorationResult */ DecorationResult createResult() { DecorationResult newResult = new DecorationResult(new ArrayList( prefixes), ...
public ColorDefinition( ColorDefinition original, RGB value) { this.label = original.getLabel(); this.id = original.getId(); this.categoryId = original.getLabel(); this.description = original.getDescription(); this.isEditable = original.isEditable(); this.pluginId = original.getPluginId(); ...
public ColorDefinition( ColorDefinition original, RGB value) { this.label = original.getLabel(); this.id = original.getId(); this.categoryId = original.getCategoryId(); this.description = original.getDescription(); this.isEditable = original.isEditable(); this.pluginId = original.getPluginId(); ...
public void updateTitles() { IViewReference ref = getViewReference(); if (status != null && !status.isDisposed()) { boolean changed = false; String text = ref.getTitle(); if (text != null) { int i = text.indexOf('('); int j = text.lastIndexOf(')'); if (i > 0 && j > 0 && j > i) ...
public void updateTitles() { IViewReference ref = getViewReference(); if (status != null && !status.isDisposed()) { boolean changed = false; String text = ref.getTitle(); if (text != null) { int i = text.indexOf('('); int j = text.lastIndexOf(')'); if (i > 0 && j > 0 && j > i) ...
public CopyAction(AbstractFrameController controller) { super( controller, GlobalResourceLoader.getString( null, null, "menu_edit_copy")); // tooltip text setTooltipText( GlobalResourceLoader.getString( null, null, "menu_edit_copy")); // action command setActionCommand("COPY"); ...
public CopyAction(AbstractFrameController controller) { super( controller, GlobalResourceLoader.getString( null, null, "menu_edit_copy")); // tooltip text setTooltipText( GlobalResourceLoader.getString( null, null, "menu_edit_copy_tooltip")); // action command setActionCommand("CO...
public DeclarationOfReferencedTypesPattern(IJavaElement enclosingElement) { super(null, null, R_PATTERN_MATCH); this.enclosingElement = enclosingElement; this.knownTypes = new SimpleSet(); this.mustResolve = true; }
public DeclarationOfReferencedTypesPattern(IJavaElement enclosingElement) { super(null, null, R_PATTERN_MATCH); this.enclosingElement = enclosingElement; this.knownTypes = new SimpleSet(); ((InternalSearchPattern)this).mustResolve = true; }
public void body(String text) throws Exception { log().debug("(" + getState() + ") attachment path body: " + text); if(getState().equals(DBImport.STATE_DB_INSERTION)) { Attachment attachment = (Attachment)digester.pop(); attachment.setFilePath(text); d...
public void body(String text) throws Exception { log().debug("(" + getState() + ") attachment path body: " + text); if(getState().equals(XMLImport.STATE_DB_INSERTION)) { Attachment attachment = (Attachment)digester.pop(); attachment.setFilePath(text); ...
protected IPackageBinding getPackageBinding(org.eclipse.jdt.internal.compiler.lookup.PackageBinding packageBinding) { if (packageBinding == null || !packageBinding.isValidBinding()) { return null; } IPackageBinding binding = (IPackageBinding) this.compilerBindingsToASTBindings.get(packageBinding); if (bindi...
protected IPackageBinding getPackageBinding(org.eclipse.jdt.internal.compiler.lookup.PackageBinding packageBinding) { if (packageBinding == null || !packageBinding.isValidBinding()) { return null; } IPackageBinding binding = (IPackageBinding) this.compilerBindingsToASTBindings.get(packageBinding); if (bindi...
public Vector rowObjectsFor(Object t) { if (!(t instanceof MClassifier)) return new Vector(); MClassifier cls = (MClassifier) t; Vector attr = new Vector( UmlHelper.getHelper().getCore().getAttributes(cls)); return attr; }
public Vector rowObjectsFor(Object t) { if (!(t instanceof MClassifier)) return new Vector(); MClassifier cls = (MClassifier) t; Vector attr = new Vector( UmlHelper.getHelper().getCore().getStructuralFeatures(cls)); return attr; }
public int getNextToken() throws InvalidInputException { this.wasAcr = false; if (diet) { jumpOverMethodBody(); diet = false; return currentPosition > source.length ? TokenNameEOF : TokenNameRBRACE; } try { while (true) { //loop for jumping over comments withoutUnicodePtr = 0; //start with a new toke...
public int getNextToken() throws InvalidInputException { this.wasAcr = false; if (diet) { jumpOverMethodBody(); diet = false; return currentPosition > source.length ? TokenNameEOF : TokenNameRBRACE; } try { while (true) { //loop for jumping over comments withoutUnicodePtr = 0; //start with a new toke...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()).getTableSelection(); MainInterface.processor.addOp(new OpenMessageWithComposerCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new OpenMessageWithComposerCommand(r)); }
protected void updateTree() { //System.out.println("updateTree!"); NavPerspective tm = (NavPerspective) _combo.getSelectedItem(); //if (tm == _curPerspective) return; _curPerspective = tm; if (_curPerspective == null) { System.out.println("null perspective!"); _tree.hide(); } els...
protected void updateTree() { //System.out.println("updateTree!"); NavPerspective tm = (NavPerspective) _combo.getSelectedItem(); //if (tm == _curPerspective) return; _curPerspective = tm; if (_curPerspective == null) { //System.out.println("null perspective!"); _tree.hide(); } e...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } // in case the labels needs to be reinitialized // when the code generation is restarted in wide mode if (this.anyExceptionLabelsCount > 0) { this.anyExceptionLabels = NO_EXCEPTION_...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } // in case the labels needs to be reinitialized // when the code generation is restarted in wide mode if (this.anyExceptionLabelsCount > 0) { this.anyExceptionLabels = NO_EXCEPTION_...
public static void run(IWorkspaceRunnable action, IProgressMonitor monitor) throws CoreException { if (JavaModelManager.isResourceTreeLocked()) { // TODO: remove workaround bug http://bugs.eclipse.org/bugs/show_bug.cgi?id=29624 new BatchOperation(action).run(monitor); } else { // use IWorkspace.run(...) to e...
public static void run(IWorkspaceRunnable action, IProgressMonitor monitor) throws CoreException { if (JavaModelManager.isResourceTreeLocked()) { new BatchOperation(action).run(monitor); } else { // use IWorkspace.run(...) to ensure that a build will be done in autobuild mode ResourcesPlugin.getWorkspace(...
public void shutdown() { if (VERBOSE) JobManager.verbose("Shutdown"); //$NON-NLS-1$ IndexSelector indexSelector = new IndexSelector(new JavaWorkspaceScope(), null, this); IIndex[] selectedIndexes = indexSelector.getIndexes(); SimpleLookupTable knownPaths = new SimpleLookupTable(); for (int i = 0, max = selected...
public void shutdown() { if (VERBOSE) JobManager.verbose("Shutdown"); //$NON-NLS-1$ IndexSelector indexSelector = new IndexSelector(new JavaWorkspaceScope(), null, false, this); IIndex[] selectedIndexes = indexSelector.getIndexes(); SimpleLookupTable knownPaths = new SimpleLookupTable(); for (int i = 0, max = s...
public Object getValueFor(Object target) { if (target instanceof MModelElement) { String res = ((MModelElement) target).getName(); String ocl = ""; if (target instanceof MElement) ocl = ((MElementImpl)target).getUMLClassName(); if (res == null || res.length() == 0) res = "(anon " + ocl +"...
public Object getValueFor(Object target) { if (target instanceof MModelElement) { String res = ((MModelElement) target).getName(); String ocl = ""; if (target instanceof MElement) ocl = ((MElement)target).getUMLClassName(); if (res == null || res.length() == 0) res = "(anon " + ocl +")"; ...
public int getNodeType() { return SINGLE_VARIABLE_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SingleVariableDeclaration result = new SingleVariableDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); if ...
public int getNodeType() { return SINGLE_VARIABLE_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { SingleVariableDeclaration result = new SingleVariableDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); if...
public void login(WorkerStatusController worker) throws Exception { PasswordDialog dialog; boolean login = false; String password; String user = new String(""); String method = new String(""); boolean save = false; while (!login) { boolean b = protocol.openPort(popItem.get("host"),...
public void login(WorkerStatusController worker) throws Exception { PasswordDialog dialog; boolean login = false; String password = null; String user = new String(""); String method = new String(""); boolean save = false; while (!login) { boolean b = protocol.openPort(popItem.get("...
protected void matchReportReference(ASTNode reference, IJavaElement element, int accuracy, MatchLocator locator) throws CoreException { if (this.isDeclarationOfAccessedFieldsPattern) { // need exact match to be able to open on type ref if (accuracy != IJavaSearchResultCollector.EXACT_MATCH) return; // element t...
protected void matchReportReference(ASTNode reference, IJavaElement element, int accuracy, MatchLocator locator) throws CoreException { if (this.isDeclarationOfAccessedFieldsPattern) { // need exact match to be able to open on type ref if (accuracy != IJavaSearchResultCollector.EXACT_MATCH) return; // element t...
protected void handleSelected(StructuredSelection selection) { IStatus status = new Status(IStatus.OK, PlatformUI.PLUGIN_ID, IStatus.OK, EMPTY_STRING, null); Object[] lastSelection= currentSelection; currentSelection= selection.toArray(); if (selection.size() == 0) { status = new Status(IStatus.E...
protected void handleSelected(StructuredSelection selection) { IStatus status = new Status(IStatus.OK, PlatformUI.PLUGIN_ID, IStatus.OK, EMPTY_STRING, null); Object[] lastSelection= currentSelection; currentSelection= selection.toArray(); if (selection.size() == 0) { status = new Status(IStatus.E...