buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void run(IProgressMonitor progressMonitor) throws CoreException { // propagate classpath change Iterator projectsToUpdate = affectedProjectClasspaths.keySet().iterator(); while (projectsToUpdate.hasNext()) { if (progressMonitor != null && progressMonitor.isCanceled()) retur...
public void run(IProgressMonitor progressMonitor) throws CoreException { // propagate classpath change Iterator projectsToUpdate = affectedProjectClasspaths.keySet().iterator(); while (projectsToUpdate.hasNext()) { if (progressMonitor != null && progressMonitor.isCanceled()) retur...
private void registerEnablement() { enablementRef = evaluationService.addEvaluationListener( enabledWhenExpression, getEnablementListener(), PROP_ENABLED); }
private void registerEnablement() { enablementRef = evaluationService.addEvaluationListener( enabledWhenExpression, getEnablementListener(), PROP_ENABLED, null); }
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action.equals("OK")) { name = textField.getText().trim(); // fixing bug with id 553176 if (name.indexOf('/') != -1) { // if the character / is found shows the ...
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action.equals("OK")) { name = textField.getText().trim(); // fixing bug with id 553176 if (name.indexOf('/') != -1) { // if the character / is found shows the ...
final private String getIndentOfLine(int pos) { int line= getLineInformation().getLineOfOffset(pos); if (line >= 0) { char[] cont= getContent(); int lineStart= getLineInformation().getLineOffset(line); int i= lineStart; while (i < cont.length && IndentManipulation.isIndentChar(content[i])) { ...
final private String getIndentOfLine(int pos) { int line= getLineInformation().getLineOfOffset(pos); if (line >= 0) { char[] cont= getContent(); int lineStart= getLineInformation().getLineOffset(line); int i= lineStart; while (i < cont.length && IndentManipulation.isIndentChar(this.content[i])) { ...
public FolderCommandReference getCommandReference(FolderCommandReference r) { return r; } */boolean tryToGetLock(Object locker); void releaseLock(Object locker); /** * ************************** treenode management * ****************************** */ void insert(AbstractFolder newFolder, int newIndex...
public FolderCommandReference getCommandReference(FolderCommandReference r) { return r; } */boolean tryToGetLock(Object locker); void releaseLock(Object locker); /** * ************************** treenode management * ****************************** */ void insert(AbstractFolder newFolder, int newIndex...
public void update(IWorkbenchPart part, boolean force) { if (part == null) return; String[] oldScopeIds = new String[0]; if (activeService != null) oldScopeIds = activeService.getScopeIds(); activeService = (KeyBindingService) part.getSite().getKeyBindingService(); ...
public void update(IWorkbenchPart part, boolean force) { if (part == null) return; String[] oldScopeIds = new String[0]; if (activeService != null) oldScopeIds = activeService.getScopeIds(); activeService = (KeyBindingService) part.getSite().getKeyBindingService(); ...
public void updateGUI() throws Exception { ( (TableSelectionHandler) frameController .getSelectionManager() .getHandler( "mail.table")).setFolder( folder); ((TableOwnerInterface) frameController).showHeaderList(folder, headerList); MainInterface.treeModel.nodeChanged(folder); }
public void updateGUI() throws Exception { ( (TableSelectionHandler) frameController .getSelectionManager() .getHandler( "mail.table")).setFolder( folder); ((TableOwnerInterface) frameController).getTableController().showHeaderList(folder, headerList); MainInterface.treeModel.nodeChanged(fol...
public static void start() { try { org.objectweb.carol.util.configuration.CarolConfiguration.initCarol(); // create, export and bind TheBasicObject an the BasicMultiObject (wich call the BasicObject) ba = new BasicObject(); bma = new BasicMultiObject(); bref = new BasicObjectRef("st...
public static void start() { try { org.objectweb.carol.util.configuration.CarolConfiguration.init(); // create, export and bind TheBasicObject an the BasicMultiObject (wich call the BasicObject) ba = new BasicObject(); bma = new BasicMultiObject(); bref = new BasicObjectRef("string"...
public ShowViewMenuAction(IWorkbenchWindow window) { super(window); // @issue missing action id WorkbenchHelp.setHelp(this, IHelpContextIds.SHOW_VIEW_MENU_ACTION); setActionDefinitionId("org.eclipse.ui.window.showViewMenu"); //$NON-NLS-1$ }
public ShowViewMenuAction(IWorkbenchWindow window) { super(window); // @issue missing action id WorkbenchHelp.setHelp(this, IWorkbenchHelpContextIds.SHOW_VIEW_MENU_ACTION); setActionDefinitionId("org.eclipse.ui.window.showViewMenu"); //$NON-NLS-1$ }
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) { switch (token.charAt(0)) { case JEM_COUNT: return getHandleUpdatingCountFromMemento(memento, workingCopyOwner); case JEM_TYPE: String typeName; if (memento.hasMoreTokens()) { typeName ...
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) { switch (token.charAt(0)) { case JEM_COUNT: return getHandleUpdatingCountFromMemento(memento, workingCopyOwner); case JEM_TYPE: String typeName; if (memento.hasMoreTokens()) { typeName ...
public void fireFolderRemoved() { FolderEvent e = new FolderEvent(this, this); // Guaranteed to return a non-null array Object[] listeners = listenerList.getListenerList(); // Process the listeners last to first, notifying // those that are interested in this event for (int i = listeners.length - 2; i >= ...
public void fireFolderRemoved() { FolderEvent e = new FolderEvent(this, this); // Guaranteed to return a non-null array Object[] listeners = listenerList.getListenerList(); // Process the listeners last to first, notifying // those that are interested in this event for (int i = listeners.length - 2; i >= ...
IBM Corporation - initial API and implementation /********************************************************************** Copyright (c) 2002 IBM Corp. and others. All rights reserved.   This program and the accompanying materials are made available under the terms of the Common Public License v0.5 which accompanies thi...
IBM Corporation - initial API and implementation /********************************************************************** Copyright (c) 2002 IBM Corp. and others. All rights reserved.   This program and the accompanying materials are made available under the terms of the Common Public License v0.5 which accompanies thi...
public TypeBinding resolveTypeEnclosing(BlockScope scope, ReferenceBinding enclosingType) { TypeBinding memberType = this.resolvedType = scope.getMemberType(this.token, enclosingType); boolean hasError = false; if (!memberType.isValidBinding()) { hasError = true; scope.problemReporter().invalidEnclosingTyp...
public TypeBinding resolveTypeEnclosing(BlockScope scope, ReferenceBinding enclosingType) { TypeBinding memberType = this.resolvedType = scope.getMemberType(this.token, enclosingType); boolean hasError = false; if (!memberType.isValidBinding()) { hasError = true; scope.problemReporter().invalidEnclosingTyp...
public MimeTree getMimeTree(IMAPFolder folder, Object uid) throws IOException { InputStream in = cache.get(createMimeTreeKey(folder, uid)); if( in != null ) { try { return (MimeTree) new ObjectInputStream(in).readObject(); } catch (ClassNotFoundException e) { return null; } } else { re...
public MimeTree getMimeTree(IMAPFolder folder, Object uid) throws IOException { InputStream in = cache.get(createMimeTreeKey(folder, uid)); if( in != null ) { try { return (MimeTree) new ObjectInputStream(in).readObject(); } catch (Exception e) { return null; } } else { return null; ...
public PropPanelInterface() { super("Interface", _interfaceIcon,ConfigLoader.getTabPropsOrientation()); Class mclass = MInterface.class; addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument())); addField(Argo.localize("UMLMenu", "label.stereotype"), ...
public PropPanelInterface() { super("Interface", ConfigLoader.getTabPropsOrientation()); Class mclass = MInterface.class; addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument())); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBox...
void setContextBindingDefinitions(List contextBindingDefinitions); /******************************************************************************* * 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 C...
void setContextBindingDefinitions(List contextBindingDefinitions); /******************************************************************************* * 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 C...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(Util.bind("codeAssist.nu...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(Util.bind("codeAssist.nu...
private static IJavaModelStatus validateLibraryContents(IPath path, IJavaProject project, String entryPathMsg) { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { manager.verifyArchiveContent(path); } catch (CoreException e) { if (e.getStatus().getMessage() == Messages.status_IOExcep...
private static IJavaModelStatus validateLibraryContents(IPath path, IJavaProject project, String entryPathMsg) { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { manager.verifyArchiveContent(path); } catch (CoreException e) { if (e.getStatus().getMessage() == Messages.status_IOExcep...
public String toString() { String str = this.toString; if (str == null) str = super.toString(); str += "(length: "+ getIndexFile().length() +")"; //$NON-NLS-1$ //$NON-NLS-1$ return str; }
public String toString() { String str = this.toString; if (str == null) str = super.toString(); str += "(length: "+ getIndexFile().length() +")"; //$NON-NLS-1$ //$NON-NLS-2$ return str; }
protected Object createEvent() { return StateMachinesFactory.getFactory().createCallEvent(); }
protected Object createEvent() { return StateMachinesFactory.getFactory().buildCallEvent(); }
public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent( table, value, isSelected, hasFocus, row, column); if (value == null) { setIcon(null); return this; } ...
public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent( table, value, isSelected, hasFocus, row, column); if (value == null) { setIcon(null); return this; } ...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) if ((implicitConversion >> 4) == T_char) codeStream.generateInlinedValue(value); else codeStream.generateConstant(constant, implicitConversion); codeStream.reco...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) if ((implicitConversion >> 4) == T_char) codeStream.generateInlinedValue(value); else codeStream.generateConstant(constant, implicitConversion); codeStream.reco...
private void parseTags() { int position = 0; final int currentStartPosition = this.startPosition; final int currentLinePtr = this.linePtr; if (currentLinePtr >= 0) { position = this.lineEnds[currentLinePtr] + 1; } while (Character.isWhitespace(this.source[position])) { position++; } if (currentStartPositio...
private void parseTags() { int position = 0; final int currentStartPosition = this.startPosition; final int currentLinePtr = this.linePtr; if (currentLinePtr >= 0) { position = this.lineEnds[currentLinePtr] + 1; } while (Character.isWhitespace(this.source[position])) { position++; } if (currentStartPositio...
final private Collection listeners = Collections .synchronizedList(new ArrayList()); final ErrorNotificationManager errorManager = new ErrorNotificationManager(); IJobChangeListener changeListener; static final String PROGRESS_VIEW_NAME = "org.eclipse.ui.views.ProgressView"; //$NON-NLS-1$...
final private Collection listeners = Collections .synchronizedList(new ArrayList()); final ErrorNotificationManager errorManager = new ErrorNotificationManager(); IJobChangeListener changeListener; static final String PROGRESS_VIEW_NAME = "org.eclipse.ui.views.ProgressView"; //$NON-NLS-1$...
public PropPanelAssociationRole() { super("Association Role",_associationRoleIcon, ConfigLoader.getTabPropsOrientation()); // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name changed or is removed anywhere in the...
public PropPanelAssociationRole() { super("Association Role",_associationRoleIcon, ConfigLoader.getTabPropsOrientation()); // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name changed or is removed anywhere in the...
public AssistParser(ProblemReporter problemReporter) { super(problemReporter, true); this.javadocParser.checkJavadoc = false; }
public AssistParser(ProblemReporter problemReporter) { super(problemReporter, true); this.javadocParser.checkDocComment = false; }
protected void compute() throws JavaModelException, CoreException { if (JavaModelManager.ENABLE_INDEXING && fType != null) { HierarchyBuilder builder = new IndexBasedHierarchyBuilder( this, this.scope); builder.build(this.computeSubtypes); } // else a RegionBasedTypeHierarchy should be used }
protected void compute() throws JavaModelException, CoreException { if (fType != null) { HierarchyBuilder builder = new IndexBasedHierarchyBuilder( this, this.scope); builder.build(this.computeSubtypes); } // else a RegionBasedTypeHierarchy should be used }
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException { if (sourceFile == null || tasks == null || tasks.length == 0) return; IResource resource = sourceFile.resource; for (int i = 0, l = tasks.length; i < l; i++) { IProblem task = tasks[i]; if (task.getID() == IProblem.Task...
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException { if (sourceFile == null || tasks == null || tasks.length == 0) return; IResource resource = sourceFile.resource; for (int i = 0, l = tasks.length; i < l; i++) { IProblem task = tasks[i]; if (task.getID() == IProblem.Task...
public dnsCERTRecord(dnsName _name, short _dclass, int _ttl, StringTokenizer st) throws IOException
public dnsCERTRecord(dnsName _name, short _dclass, int _ttl, MyStringTokenizer st) throws IOException
private void createNeededPackageFragments(IPackageFragmentRoot root, String newFragName, boolean moveFolder) throws JavaModelException { IContainer parentFolder = (IContainer) root.getResource(); JavaElementDelta projectDelta = null; String[] names = Signature.getSimpleNames(newFragName); StringBuffer sideEffe...
private void createNeededPackageFragments(IPackageFragmentRoot root, String newFragName, boolean moveFolder) throws JavaModelException { IContainer parentFolder = (IContainer) root.getResource(); JavaElementDelta projectDelta = null; String[] names = Signature.getSimpleNames(newFragName); StringBuffer sideEffe...
public String toStringExpression(int tab) { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { buffer.append(tokens[i]); if (i < (tokens.length - 1)) { buffer.append("."); } } return buffer.toString(); }
public String toStringExpression(int tab) { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { buffer.append(tokens[i]); if (i < (tokens.length - 1)) { buffer.append("."/*nonNLS*/); } } return buffer.toString(); }
public MethodBinding createsInternalConstructorWithBinding(MethodBinding inheritedConstructorBinding) { //Add to method'set, the default constuctor that just recall the //super constructor with the same arguments String baseName = "$anonymous"; //$NON-NLS-1$ TypeBinding[] argumentTypes = inheritedConstructorBindin...
public MethodBinding createsInternalConstructorWithBinding(MethodBinding inheritedConstructorBinding) { //Add to method'set, the default constuctor that just recall the //super constructor with the same arguments String baseName = "$anonymous"/*nonNLS*/; TypeBinding[] argumentTypes = inheritedConstructorBinding.pa...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new MarkMessageAsSpamCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new MarkMessageAsSpamCommand(r)); }
private ActionStateDiagram() { super(Translator.localize("CoreMenu", "StateDiagram")); }
private ActionStateDiagram() { super("StateDiagram"); }
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { CompilationResult result = new CompilationResult(sourceTypes[0].getFileName(), 1, 1); // need to hold onto this CompilationUnitDeclaration unit = SourceTypeConverter.buildCompilationUnit( sourceTypes, true, true, ...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { CompilationResult result = new CompilationResult(sourceTypes[0].getFileName(), 1, 1, this.options.maxProblemsPerUnit); // need to hold onto this CompilationUnitDeclaration unit = SourceTypeConverter.buildCompilationUnit( sou...
public ColumnConfigDialog(MailFrameMediator mediator, XmlElement columns) { super((JFrame) mediator.getView(), true); setTitle("Configure Columns"); this.mediator = mediator; this.columns = columns; list = new CheckableList(); list.getSelectionModel().addListSelect...
public ColumnConfigDialog(MailFrameMediator mediator, XmlElement columns) { super((JFrame) mediator.getView().getFrame(), true); setTitle("Configure Columns"); this.mediator = mediator; this.columns = columns; list = new CheckableList(); list.getSelectionModel().ad...
public void run(); }
public void shutdown(); }
public IMailFolderCommandReference filter(IMailbox folder, Object uid, IColumbaMessage message) throws Exception { // map selection to this temporary message TempFolder tempFolder = FolderTreeModel.getInstance().getTempFolder(); // add message to temporary folder uid = tempFolder.addMe...
public IMailFolderCommandReference filter(IMailbox folder, Object uid, IColumbaMessage message) throws Exception { // map selection to this temporary message TempFolder tempFolder = FolderTreeModel.getInstance().getTempFolder(); // add message to temporary folder uid = tempFolder.addMe...
public MethodBinding[] methods() { if ((tagBits & AreMethodsComplete) != 0) return methods; int failed = 0; try { for (int i = 0, length = methods.length; i < length; i++) { if (resolveTypesFor(methods[i]) == null) { methods[i] = null; // unable to resolve parameters failed++; } } // find & r...
public MethodBinding[] methods() { if ((tagBits & AreMethodsComplete) != 0) return methods; int failed = 0; try { for (int i = 0, length = methods.length; i < length; i++) { if (resolveTypesFor(methods[i]) == null) { methods[i] = null; // unable to resolve parameters failed++; } } // find & r...
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) { ParameterizedMethodBinding method = new ParameterizedMethodBinding(); method.modifiers = originalMethod.modifiers; method.selector = originalMethod.selector; method.declaringClass...
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) { ParameterizedMethodBinding method = new ParameterizedMethodBinding(); method.modifiers = originalMethod.modifiers; method.selector = originalMethod.selector; method.declaringClass...
public void delete( ScarabUser user ) throws Exception { Module module = getModule(); if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module)) { // Delete attribute groups first List attGroups = module.getAttributeGroups(getIssueType(...
public void delete( ScarabUser user ) throws Exception { Module module = getModule(); if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module)) { // Delete attribute groups first List attGroups = module.getAttributeGroups(getIssueType(...
public AbstractFrameView(AbstractFrameController frameController) { this.frameController = frameController; this.setIconImage( ImageLoader.getImageIcon("ColumbaIcon.png").getImage()); setTitle( "Columba - version: " + org.columba.core.main.MainInterface.version); JPanel panel = (JPanel) this.getC...
public AbstractFrameView(AbstractFrameController frameController) { this.frameController = frameController; this.setIconImage( ImageLoader.getImageIcon("icon16.png").getImage()); setTitle( "Columba - version: " + org.columba.core.main.MainInterface.version); JPanel panel = (JPanel) this.getConten...
public String toString(int tab){ /* slow code */ String s = tabString(tab); s = s + "default : "/*nonNLS*/ ; return s;}
public String toString(int tab){ /* slow code */ String s = tabString(tab); s = s + "default : " ; //$NON-NLS-1$ return s;}
public Vector rowObjectsFor(Object t) { System.out.println("rowObjectsFor " + t); if (!(t instanceof UMLStateDiagram)) return new Vector(); UMLStateDiagram d = (UMLStateDiagram) t; Vector nodes = d.getGraphModel().getNodes(); Vector res = new Vector(); int size = nodes.size(); for (int i =...
public Vector rowObjectsFor(Object t) { System.out.println("rowObjectsFor " + t); if (!(t instanceof UMLStateDiagram)) return new Vector(); UMLStateDiagram d = (UMLStateDiagram) t; Vector nodes = d.getNodes(); Vector res = new Vector(); int size = nodes.size(); for (int i = 0; i < size; i+...
private String removeIndentAndNewLines(String code, IDocument document, ICompilationUnit cu) { IJavaProject project = cu.getJavaProject(); Map options = project.getOptions(true/*inherit JavaCore options*/); int tabWidth; try { tabWidth = Integer.parseInt((String) options.get(DefaultCodeFormatterConstants.FORMATTE...
private String removeIndentAndNewLines(String code, IDocument document, ICompilationUnit cu) { IJavaProject project = cu.getJavaProject(); Map options = project.getOptions(true/*inherit JavaCore options*/); int tabWidth; try { tabWidth = Integer.parseInt((String) options.get(DefaultCodeFormatterConstants.FORMATTE...
public void actionPerformed(ActionEvent evt) { // get selected stuff FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = new CreateFilterOnMessageCommand(r, CreateFil...
public void actionPerformed(ActionEvent evt) { // get selected stuff FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = new CreateFilterOnMessageCommand(getFrameMediator(),r, ...
protected void parseBodies(TypeDeclaration type, CompilationUnitDeclaration unit) { FieldDeclaration[] fields = type.fields; if (fields != null) { for (int i = 0; i < fields.length; i++) { FieldDeclaration field = fields[i]; if (field instanceof Initializer) this.parse((Initializer) field, type, unit); ...
protected void parseBodies(TypeDeclaration type, CompilationUnitDeclaration unit) { FieldDeclaration[] fields = type.fields; if (fields != null) { for (int i = 0; i < fields.length; i++) { FieldDeclaration field = fields[i]; if (field instanceof Initializer) this.parse((Initializer) field, type, unit); ...
public String getPluginId() { return (configurationElement != null) ? configurationElement .getDeclaringExtension().getNamespace() : null; }
public String getPluginId() { return (configurationElement != null) ? configurationElement .getNamespace() : null; }
public void charSetup(String str) { char ch = str.charAt(0); if(ch == '\\') { // get next character ch = str.charAt(1); if(Character.isDigit(ch)) ch = (char)Integer.parseInt(str.substring(1), 8); else ch = g...
public void charSetup(String str) { char ch = str.charAt(0); if(ch == '\\') { // get next character ch = str.charAt(1); if(Character.isDigit(ch)) ch = (char)Integer.parseInt(str.substring(1), 8); else ch = g...
protected JavaSearchPattern(int patternKind, int matchRule) { super(matchRule); ((InternalSearchPattern)this).kind = patternKind; // Use getMatchRule() instead of matchRule as super constructor may modify its value // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=81377 int rule = getMatchRule(); th...
protected JavaSearchPattern(int patternKind, int matchRule) { super(matchRule); this.kind = patternKind; // Use getMatchRule() instead of matchRule as super constructor may modify its value // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=81377 int rule = getMatchRule(); this.isCaseSensitive = (rul...
protected void onActivate() { // Update editor area state. if (editorArea.getControl() != null) { boolean visible = isEditorAreaVisible(); boolean inTrim = editorAreaState == IStackPresentationSite.STATE_MINIMIZED; // Funky check: Intro uses the old zoom behaviour when maximized. Make sure we don't sh...
protected void onActivate() { // Update editor area state. if (editorArea.getControl() != null) { boolean visible = isEditorAreaVisible(); boolean inTrim = editorAreaState == IStackPresentationSite.STATE_MINIMIZED; // Funky check: Intro uses the old zoom behaviour when maximized. Make sure we don't sh...
Copyright (c) 2003 IBM Corporation and others. /************************************************************************ Copyright (c) 2002 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 which accompani...
Copyright (c) 2003 IBM Corporation and others. /************************************************************************ Copyright (c) 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 which accompani...
protected String taskName; JobInfo jobInfo; /** * Create a new instance of the receiver. * * @param parentJob * @param name */ SubTaskInfo(JobInfo parentJob, String name) { taskName = name; jobInfo = parentJob; } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.JobTreeElement#...
public Object getParent() { return jobInfo; } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.JobTreeElement#isJobInfo() */ boolean isJobInfo() { return false; } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.JobTreeElement#isActive() */ boolean isActive() { r...
public void setConfigurationElement(IConfigurationElement configElement) { // Get extension ID. extensionID = configElement.getAttribute("id"); //$NON-NLS-1$ // Get plugin ID. pluginID = configElement.getDeclaringExtension().getNamespace(); // Get extension name. S...
public void setConfigurationElement(IConfigurationElement configElement) { // Get extension ID. extensionID = configElement.getAttribute("id"); //$NON-NLS-1$ // Get plugin ID. pluginID = configElement.getNamespace(); // Get extension name. String name = configEleme...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding tb = type.resolveType(scope); checkModifiers(); if (tb != null) { if (tb == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); return; } if (tb.isArrayType() && ((ArrayBinding...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding tb = type.resolveType(scope); checkModifiers(); if (tb != null) { if (tb == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); return; } if (tb.isArrayType() && ((ArrayBinding...
public String getKey() { try { return getKey(this, org.eclipse.jdt.internal.compiler.lookup.Binding.USE_ACCESS_FLAGS_IN_BINDING_KEY/*with access flags*/, false/*don't open*/); } catch (JavaModelException e) { // happen only if force open is true return null; } }
public String getKey() { try { return getKey(this, true/*with access flags*/, false/*don't open*/); } catch (JavaModelException e) { // happen only if force open is true return null; } }
public void setOwner(Object own) { Object oldOwner = getOwner(); super.setOwner(own); if (own instanceof MAssociation) { MAssociation newAsc = (MAssociation)own; for (int i = 0; i < newAsc.getConnections().size(); i++) { ((MAssociationEnd)((Object[]) newAsc.getConnections().toArray())[i]).r...
public void setOwner(Object own) { Object oldOwner = getOwner(); super.setOwner(own); if (own instanceof MAssociation) { MAssociation newAsc = (MAssociation)own; for (int i = 0; i < newAsc.getConnections().size(); i++) { ((MAssociationEnd)((Object[]) newAsc.getConnections().toArray())[i]).r...
private ActionSequenceDiagram() { super(Translator.localize("CoreMenu", "SequenceDiagram")); }
private ActionSequenceDiagram() { super("SequenceDiagram"); }
private JspCompilationContext context; Log loghelper = new Log("JASPER_LOG", "JspReader"); // LogHelper loghelper = new LogHelper("JASPER_LOG", "JspReader");
private JspCompilationContext context; Log loghelper = Log.getLog("JASPER_LOG", "JspReader"); // LogHelper loghelper = new LogHelper("JASPER_LOG", "JspReader");
public static char[] createIndexKey(int modifiers, char[] typeName, char[] packageName, char[][] enclosingTypeNames, boolean secondary) { //, char typeSuffix) { int typeNameLength = typeName == null ? 0 : typeName.length; int packageLength = packageName == null ? 0 : packageName.length; int enclosingNamesLength = 0;...
public static char[] createIndexKey(int modifiers, char[] typeName, char[] packageName, char[][] enclosingTypeNames, boolean secondary) { //, char typeSuffix) { int typeNameLength = typeName == null ? 0 : typeName.length; int packageLength = packageName == null ? 0 : packageName.length; int enclosingNamesLength = 0;...
private TypeBinding minimalErasedCandidate(TypeBinding[] types, List invocations) { Map allInvocations = new HashMap(2); int length = types.length; int indexOfFirst = -1, actualLength = 0; for (int i = 0; i < length; i++) { TypeBinding type = types[i]; if (type == null) continue; if (type.isBaseType()...
private TypeBinding minimalErasedCandidate(TypeBinding[] types, List invocations) { Map allInvocations = new HashMap(2); int length = types.length; int indexOfFirst = -1, actualLength = 0; for (int i = 0; i < length; i++) { TypeBinding type = types[i]; if (type == null) continue; if (type.isBaseType()...
public UMLElementOwnershipSpecificationCheckBox(UMLUserInterfaceContainer container) { super(container, Argo.localize("UMLMenu", "label.specialization"), ActionSetElementOwnershipSpecification.SINGLETON, "specification"); }
public UMLElementOwnershipSpecificationCheckBox(UMLUserInterfaceContainer container) { super(container, Argo.localize("UMLMenu", "label.specialization"), ActionSetElementOwnershipSpecification.SINGLETON, "isSpecification"); }
public static final String DEFAULT_PACKAGE_NAME = ""/*nonNLS*/; /** * Returns whether this fragment contains at least one Java resource. */ boolean containsJavaResources() throws JavaModelException; /** * Creates and returns a compilation unit in this package fragment * with the specified name and contents. No ve...
public static final String DEFAULT_PACKAGE_NAME = ""; //$NON-NLS-1$ /** * Returns whether this fragment contains at least one Java resource. */ boolean containsJavaResources() throws JavaModelException; /** * Creates and returns a compilation unit in this package fragment * with the specified name and contents. N...
public void mouseDoubleClick(MouseEvent e) { processDoubleClick(); } }); //Never show debug info IContentProvider provider = new ProgressViewerContentProvider(viewer, false,true); viewer.setContentProvider(provider); viewer...
public void mouseDoubleClick(MouseEvent e) { processDoubleClick(); } }); //Never show debug info IContentProvider provider = new ProgressViewerContentProvider(viewer, false,false); viewer.setContentProvider(provider); viewe...
public Folder getFolder() { SpecialFoldersItem foldersItem = accountItem.getSpecialFoldersItem(); String inboxStr = foldersItem.getInbox(); System.out.println("inbox-string=" + inboxStr); int inboxInt = Integer.parseInt(inboxStr); Folder f = (Folder) MainInterface.treeModel.getFolder(inboxInt); System.ou...
public Folder getFolder() { SpecialFoldersItem foldersItem = accountItem.getSpecialFoldersItem(); String inboxStr = foldersItem.get("inbox"); System.out.println("inbox-string=" + inboxStr); int inboxInt = Integer.parseInt(inboxStr); Folder f = (Folder) MainInterface.treeModel.getFolder(inboxInt); System....
public void resolve(BlockScope scope) { TypeBinding type = condition.resolveTypeExpecting(scope, BooleanBinding); condition.computeConversion(scope, type, type); if (action != null) action.resolve(scope); }
public void resolve(BlockScope scope) { TypeBinding type = condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN); condition.computeConversion(scope, type, type); if (action != null) action.resolve(scope); }
public IClasspathEntry[] getResolvedClasspath( boolean ignoreUnresolvedVariable, boolean generateMarkerOnError) throws JavaModelException { JavaProjectElementInfo projectInfo = getJavaProjectElementInfo(); // reuse cache if not needing to refresh markers or checking bound variables if (ignoreUnresolved...
public IClasspathEntry[] getResolvedClasspath( boolean ignoreUnresolvedVariable, boolean generateMarkerOnError) throws JavaModelException { JavaProjectElementInfo projectInfo = getJavaProjectElementInfo(); // reuse cache if not needing to refresh markers or checking bound variables if (ignoreUnresolved...
public final void removeActionTextListener(final String commandId, final IActionTextListener listener) { final ICommand command = workbench.getCommandSupport() .getCommandManager().getCommand(commandId); final Object associatedListener = registeredTextListeners.get(listen...
public final void removeActionTextListener(final String commandId, final IActionTextListener listener) { final ICommand command = workbench.getCommandSupport() .getCommandManager().getCommand(commandId); final Object associatedListener = registeredTextListeners.remove(lis...
private void deletePackageFragment(IPackageFragment frag) throws JavaModelException { IResource res = frag.getResource(); if (res != null && res.getType() == IResource.FOLDER) { // collect the children to remove IJavaElement[] childrenOfInterest = frag.getChildren(); if (childrenOfInterest.length > 0) { IRe...
private void deletePackageFragment(IPackageFragment frag) throws JavaModelException { IResource res = frag.getResource(); if (res != null && res.getType() == IResource.FOLDER) { // collect the children to remove IJavaElement[] childrenOfInterest = frag.getChildren(); if (childrenOfInterest.length > 0) { IRe...
public ThreePaneMailFrameController(ViewItem viewItem) { super(viewItem); treeController = new TreeController(this, FolderTreeModel.getInstance()); tableController = new TableController(this); // create selection handlers TableSelectionHandler tableHandler = new TableSelectionHandler( tableController);...
public ThreePaneMailFrameController(ViewItem viewItem) { super(viewItem); treeController = new TreeController(this, FolderTreeModel.getInstance()); tableController = new TableController(this); // create selection handlers TableSelectionHandler tableHandler = new TableSelectionHandler( tableController);...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = " //$NO...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = " //$NO...
public void end(ExecutionContext ec, String name) { if (inError) { return; } if (appender instanceof OptionHandler) { ((OptionHandler) appender).activateOptions(); } Object o = ec.peekObject(); if (o != appender) { logger.warn( "The object at the of the stack is no...
public void end(ExecutionContext ec, String name) { if (inError) { return; } if (appender instanceof OptionHandler) { ((OptionHandler) appender).activateOptions(); } Object o = ec.peekObject(); if (o != appender) { logger.warn( "The object at the of the stack is no...
public Generator(long start, long end, long step, String namePattern, int type, int dclass, long ttl, String rdataPattern, Name origin) { if (start < 0 || end < 0 || start > end || step <= 0) throw new IllegalArgumentException ("invalid range specification"); if (!supportedType(type)) throw new IllegalArgu...
public Generator(long start, long end, long step, String namePattern, int type, int dclass, long ttl, String rdataPattern, Name origin) { if (start < 0 || end < 0 || start > end || step <= 0) throw new IllegalArgumentException ("invalid range specification"); if (!supportedType(type)) throw new IllegalArgu...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } // do not generate initialization code if final and static (constant is then // recorded inside the field itself). int pc = codeStream.position; boolean isStatic; if (initialization != null...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } // do not generate initialization code if final and static (constant is then // recorded inside the field itself). int pc = codeStream.position; boolean isStatic; if (initialization != null...
private void setEditorAreaVisible(boolean visible) { ArrayList workbooks = ((EditorArea)editorArea).getEditorWorkbooks(); for (Iterator iter = workbooks.iterator(); iter.hasNext();) { EditorWorkbook workbook = (EditorWorkbook) iter.next(); workbook.setVisible(visible); EditorPane pane = workbook.getVisibleEdito...
private void setEditorAreaVisible(boolean visible) { ArrayList workbooks = ((EditorArea)editorArea).getEditorWorkbooks(); for (Iterator iter = workbooks.iterator(); iter.hasNext();) { EditorStack workbook = (EditorStack) iter.next(); workbook.setVisible(visible); EditorPane pane = workbook.getVisibleEditor(); ...
public class dnsPTRRecord extends dnsNS_CNAME_PTR_Record { public class dnsPTRRecord extends dnsNS_CNAME_MX_Record { public dnsPTRRecord(dnsName rname, short rclass) { super(rname, dns.PTR, rclass); } public dnsPTRRecord(dnsName rname, short rclass, int rttl, dnsName name) { super(rname, dns.PTR, rclass, rttl, nam...
public class dnsPTRRecord extends dnsNS_CNAME_PTR_Record { public class dnsPTRRecord extends dnsNS_CNAME_PTR_Record { public dnsPTRRecord(dnsName rname, short rclass) { super(rname, dns.PTR, rclass); } public dnsPTRRecord(dnsName rname, short rclass, int rttl, dnsName name) { super(rname, dns.PTR, rclass, rttl, na...
public int getNodeType() { return THIS_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ThisExpression result = new ThisExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Name) ASTNode.co...
public int getNodeType() { return THIS_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ThisExpression result = new ThisExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Name) ASTNode.c...
private final void bindingRestore(final ParameterizedCommand cmd, boolean removeCmd) { Set addSystemAll = new HashSet(); ArrayList removeUser = new ArrayList(); ArrayList removeBinding = new ArrayList(); Binding[] bindings = localChangeManager.getBindings(); for (int i = 0; i < bindings.length; i++) { ...
private final void bindingRestore(final ParameterizedCommand cmd, boolean removeCmd) { Set addSystemAll = new HashSet(); ArrayList removeUser = new ArrayList(); ArrayList removeBinding = new ArrayList(); Binding[] bindings = localChangeManager.getBindings(); for (int i = 0; i < bindings.length; i++) { ...
public String toString(int tab){ StringBuffer buffer = new StringBuffer(tabString(tab)); buffer.append("Recovered field:\n"); //$NON-NLS-1$ buffer.append(fieldDeclaration.toString(tab + 1)); if (this.anonymousTypes != null) { for (int i = 0; i < this.anonymousTypeCount; i++){ buffer.append("\n"); //$NON-NLS-1$...
public String toString(int tab){ StringBuffer buffer = new StringBuffer(tabString(tab)); buffer.append("Recovered field:\n"); //$NON-NLS-1$ buffer.append(fieldDeclaration.print(tab + 1, buffer)); if (this.anonymousTypes != null) { for (int i = 0; i < this.anonymousTypeCount; i++){ buffer.append("\n"); //$NON-N...
public IJavaElement getJavaElement() { if (this.binding == null || this.binding.isArrayType() || this.binding.isBaseType()) return null; ReferenceBinding referenceBinding = (ReferenceBinding) this.binding; if (referenceBinding.isBinaryBinding()) { ClassFile classFile = (ClassFile) getClassFile(referenceBindin...
public IJavaElement getJavaElement() { if (this.binding == null || this.binding.isArrayType() || this.binding.isBaseType()) return null; ReferenceBinding referenceBinding = (ReferenceBinding) this.binding; if (referenceBinding.isBinaryBinding()) { ClassFile classFile = (ClassFile) getClassFile(referenceBindin...
public String getType() { String extension= file.getFileExtension(); if (extension == null) return ""; //$NON-NLS-1$ return extension; }
public String getType() { String extension= file.getFileExtension(); if (extension == null) return ""/*nonNLS*/; return extension; }
public String dbgString() { String s = ""; Vector v; java.util.Enumeration enum; s += getOCLTypeStr() + "(" + getName().toString() + ")["; String stereos = dbgStereotypes(); if (stereos != "") s += "\n" + stereos; String tags = dbgTaggedValues(); if (tags != "") s += "\n" + tags; ...
public String dbgString() { String s = ""; Vector v; java.util.Enumeration enum; s += getOCLTypeStr() + "(" + getName().getBody().toString() + ")["; String stereos = dbgStereotypes(); if (stereos != "") s += "\n" + stereos; String tags = dbgTaggedValues(); if (tags != "") s += "\n" ...
private IBinaryType getBinaryTypeInfo(IFile file) throws JavaModelException { JavaElement le = (JavaElement) getParent(); if (le instanceof JarPackageFragment) { try { JarPackageFragmentRoot root = (JarPackageFragmentRoot) le.getParent(); IBinaryType info = null; ZipFile zip = null; try { zip = root...
private IBinaryType getBinaryTypeInfo(IFile file) throws JavaModelException { JavaElement le = (JavaElement) getParent(); if (le instanceof JarPackageFragment) { try { JarPackageFragmentRoot root = (JarPackageFragmentRoot) le.getParent(); IBinaryType info = null; ZipFile zip = null; try { zip = root...
public CNAMERecord(Name _name, short _dclass, int _ttl, int length, CountedDataInputStream in, Compression c) throws IOException { super(_name, Type.CNAME, _dclass, _ttl, length, in, c); }
public CNAMERecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException { super(_name, Type.CNAME, _dclass, _ttl, length, in, c); }
private IProject[] getRequiredProjects(boolean includeBinaryPrerequisites) { if (this.javaProject == null || this.workspaceRoot == null) return new IProject[0]; ArrayList projects = new ArrayList(); ExternalFoldersManager externalFoldersManager = JavaModelManager.getExternalManager(); try { IClasspathEntry[] ent...
private IProject[] getRequiredProjects(boolean includeBinaryPrerequisites) { if (this.javaProject == null || this.workspaceRoot == null) return new IProject[0]; ArrayList projects = new ArrayList(); ExternalFoldersManager externalFoldersManager = JavaModelManager.getExternalManager(); try { IClasspathEntry[] ent...
public void actionPerformed(ActionEvent evt) { final ComposerController composerController = (ComposerController ) getFrameController(); if (composerController.checkState()) return; AccountItem item = ((ComposerModel)composerController.getModel()).getAccountItem(); SpecialFoldersItem folderItem = item...
public void actionPerformed(ActionEvent evt) { final ComposerController composerController = (ComposerController ) getFrameMediator(); if (composerController.checkState()) return; AccountItem item = ((ComposerModel)composerController.getModel()).getAccountItem(); SpecialFoldersItem folderItem = item.g...
public void objectToEntry(Object arg0, TupleOutput out) { IColumbaHeader header = (IColumbaHeader) arg0; out.writeInt(((Integer)header.getAttributes().get("columba.uid")).intValue()); // save boolean headerfields, compressing them to one int value Boolean[] b = new Boolean[CachedHeaderfields.INTERNAL_COM...
public void objectToEntry(Object arg0, TupleOutput out) { IColumbaHeader header = (IColumbaHeader) arg0; out.writeInt(((Integer)header.getAttributes().get("columba.uid")).intValue()); // save boolean headerfields, compressing them to one int value Boolean[] b = new Boolean[CachedHeaderfields.INTERNAL_COM...
public String toStringExpression(){ /* slow code */ return qualification.toString(0)+".super"/*nonNLS*/ ; }
public String toStringExpression(){ /* slow code */ return qualification.toString(0)+".super" ; //$NON-NLS-1$ }
public void run() { try { InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { ColumbaLogger.log.debug(type + ">" + line); ...
public void run() { try { InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { ColumbaLogger.log.info(type + ">" + line); b...
private int doHyperSearch(Buffer buffer, int start, int end, DefaultMutableTreeNode bufferNode) { int resultCount = 0; try { buffer.readLock(); boolean endOfLine = (buffer.getLineEndOffset( buffer.getLineOfOffset(end)) - 1 == end); Segment text = new Segment(); int offset = start; Hyper...
private int doHyperSearch(Buffer buffer, int start, int end, DefaultMutableTreeNode bufferNode) { int resultCount = 0; try { buffer.readLock(); boolean endOfLine = (buffer.getLineEndOffset( buffer.getLineOfOffset(end)) - 1 == end); Segment text = new Segment(); int offset = start; Hyper...
public static Shell getModalShellExcluding(Shell shell) { IWorkbench workbench = PlatformUI.getWorkbench(); Shell[] shells = workbench.getDisplay().getShells(); int modal = SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL | SWT.PRIMARY_MODAL; for (int i = 0; i < shells.length; i++) { if (shells[i].equals(shell)...
public static Shell getModalShellExcluding(Shell shell) { IWorkbench workbench = PlatformUI.getWorkbench(); Shell[] shells = workbench.getDisplay().getShells(); int modal = SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL | SWT.PRIMARY_MODAL; for (int i = 0; i < shells.length; i++) { if (shells[i].equals(shell)...
public void bundleChanged(BundleEvent event) { String symbolicName = event.getBundle().getSymbolicName(); if (symbolicName == null) return; // If the workbench isn't running anymore simply return. if (!Workbench.getInstance().isRunning()) { return; }
public void bundleChanged(BundleEvent event) { String symbolicName = event.getBundle().getSymbolicName(); if (symbolicName == null) return; // If the workbench isn't running anymore simply return. if (!PlatformUI.isWorkbenchRunning()) { return; }
private void addAdditional2(Message response, int section, int flags) { Enumeration e = response.getSection(section); while (e.hasMoreElements()) { Record r = (Record) e.nextElement(); Name glueName = null; switch (r.getType()) { case Type.MX: glueName = ((MXRecord)r).getTarget(); break; case Type...
private void addAdditional2(Message response, int section, int flags) { Enumeration e = response.getSection(section); while (e.hasMoreElements()) { Record r = (Record) e.nextElement(); Name glueName = null; switch (r.getType()) { case Type.MX: glueName = ((MXRecord)r).getTarget(); break; case Type...
public void addRR(Record record) { Hashtable nametable = (Hashtable) data.get(record.getName()); if (nametable == null) { nametable = new Hashtable(); data.put(record.name, nametable); System.out.println("Adding name <" + record.name + "> to [" + origin + "]"); } RRset rrset = (RRset) nametable.get(new Short(re...
public void addRR(Record record) { Hashtable nametable = (Hashtable) data.get(record.getName()); if (nametable == null) { nametable = new Hashtable(); data.put(record.name, nametable); /*System.out.println("Adding name <" + record.name + "> to [" + origin + "]");*/ } RRset rrset = (RRset) nametable.get(new Shor...
public IVariableBinding resolveBinding() { return getAST().getBindingResolver().resolveVariable(this); }
public IVariableBinding resolveBinding() { return this.ast.getBindingResolver().resolveVariable(this); }
protected IType lookupType(ReferenceBinding typeBinding) { if (typeBinding == null) return null; char[] packageName = typeBinding.qualifiedPackageName(); IPackageFragment[] pkgs = this.nameLookup.findPackageFragments( (packageName == null || packageName.length == 0) ? IPackageFragment.DEFAULT_PACKAGE_NAME :...
protected IType lookupType(ReferenceBinding typeBinding) { if (typeBinding == null) return null; char[] packageName = typeBinding.qualifiedPackageName(); IPackageFragment[] pkgs = this.nameLookup.findPackageFragments( (packageName == null || packageName.length == 0) ? IPackageFragment.DEFAULT_PACKAGE_NAME :...
public SwitchPerspectiveSubmenu(FrameMediator controller) { super(controller, "Show View"); String id = getFrameMediator().getViewItem().get("id"); // check if this is a management frame instance // -> if so create submenu to switch perspectives // -> otherwise, don't create submenu boolean isManagedFram...
public SwitchPerspectiveSubmenu(FrameMediator controller) { super(controller, "Show View",controller.getViewItem().get("id")); String id = getFrameMediator().getViewItem().get("id"); // check if this is a management frame instance // -> if so create submenu to switch perspectives // -> otherwise, don't cre...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { // ensure to jump back to toplevel type for first one (could be a member) // while (sourceTypes[0].getEnclosingType() != null) // sourceTypes[0] = sourceTypes[0].getEnclosingType(); CompilationResult result = new CompilationResul...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { // ensure to jump back to toplevel type for first one (could be a member) // while (sourceTypes[0].getEnclosingType() != null) // sourceTypes[0] = sourceTypes[0].getEnclosingType(); CompilationResult result = new CompilationResul...
public static Object createLevelTableCellEditor() { JComboBox comboBox = new JComboBox(new Level[] {Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR, Level.FATAL, Level.OFF, Level.ALL}); return new DefaultCellEditor(comboBox); }
public static Object createLevelTableCellEditor() { JComboBox comboBox = new JComboBox(new Level[] {Level.TRACE, Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR, Level.FATAL, Level.OFF, Level.ALL}); return new DefaultCellEditor(comboBox); }
protected void toStringInfo(int tab, StringBuffer buffer, Object info) { buffer.append(this.tabString(tab)); if (info != NO_INFO) { buffer.append(Signature.toString(this.getTypeSignature())); buffer.append(" "); //$NON-NLS-1$ } toStringName(buffer); } }
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(this.tabString(tab)); if (info != NO_INFO) { buffer.append(Signature.toString(this.getTypeSignature())); buffer.append(" "); //$NON-NLS-1$ } toStringName(buffer); } }