buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected IJavaElement[] codeSelect(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, int offset, int length, WorkingCopyOwner owner) throws JavaModelException { PerformanceStats performanceStats = SelectionEngine.PERF ? PerformanceStats.getStats(JavaModelManager.SELECTION_PERF, this) : null; if(performa...
protected IJavaElement[] codeSelect(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, int offset, int length, WorkingCopyOwner owner) throws JavaModelException { PerformanceStats performanceStats = SelectionEngine.PERF ? PerformanceStats.getStats(JavaModelManager.SELECTION_PERF, this) : null; if(performa...
protected ReferenceCollection(char[][][] qualifiedNameReferences, char[][] simpleNameReferences) { this.qualifiedNameReferences = internQualifiedNames(qualifiedNameReferences); this.simpleNameReferences = internSimpleNames(simpleNameReferences, true); } boolean includes(char[] simpleName) { for (int i = 0, l = simp...
protected ReferenceCollection(char[][][] qualifiedNameReferences, char[][] simpleNameReferences) { this.qualifiedNameReferences = internQualifiedNames(qualifiedNameReferences); this.simpleNameReferences = internSimpleNames(simpleNameReferences, true); } boolean includes(char[] simpleName) { for (int i = 0, l = simp...
public boolean execute(IProgressMonitor progressMonitor) { if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true; /* ensure no concurrent write access to index */ Index index = manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/); if...
public boolean execute(IProgressMonitor progressMonitor) { if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true; /* ensure no concurrent write access to index */ Index index = manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/); if...
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, hasFocus); AddressbookTreeNode folder = (AddressbookTreeNode) value; ...
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, hasFocus); AddressbookTreeNode folder = (AddressbookTreeNode) value; ...
protected void setTarget(Object target) { if (_eventName == null || _eventName.equals("")) throw new IllegalStateException("eventName not set!"); if (_target instanceof MBase) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase)_target, _eventName); }...
protected void setTarget(Object target) { if (_eventName == null || _eventName.equals("")) throw new IllegalStateException("eventName not set!"); if (_target instanceof MBase) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase)_target, _eventName); }...
void acceptPath(String path, boolean containsLocalTypes); /******************************************************************************* * 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 Pub...
void acceptPath(String path, boolean containsLocalTypes); /******************************************************************************* * 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 Pub...
public boolean initialized() { return true; }
public boolean initialized() { return browser.isInitialized(); }
public OPTRecord(short payloadSize, byte xrcode, byte version) { this(payloadSize, xrcode, version, 0); } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { OPTRecord rec = new OPTRecord(name, dclass, ttl); if (in == null) return rec; int ...
public OPTRecord(short payloadSize, byte xrcode, byte version) { this(payloadSize, xrcode, version, 0); } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { OPTRecord rec = new OPTRecord(name, dclass, ttl); if (in == null) return rec; int ...
public void setProperties(Properties properties, String prefix) { int len = prefix.length(); for (Enumeration e = properties.keys(); e.hasMoreElements(); ) { String key = (String) e.nextElement(); // handle only properties that start with the desired frefix. if (key.startsWith(...
public void setProperties(Properties properties, String prefix) { int len = prefix.length(); for (Enumeration e = properties.propertyNames(); e.hasMoreElements(); ) { String key = (String) e.nextElement(); // handle only properties that start with the desired frefix. if (key.st...
public void showFilterDialog() { Filter parent = getSelected(); if (parent != null) { FilterDialog dialog = new FilterDialog(folder.getFilterPluginHandler(), parent); /* java.awt.Dimension dim = new Dimension( 400,400 ); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); ...
public void showFilterDialog() { Filter parent = getSelected(); if (parent != null) { FilterDialog dialog = new FilterDialog( parent); /* java.awt.Dimension dim = new Dimension( 400,400 ); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); setLocation(screenSize.width/2 ...
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // Check attribu...
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // Check attribu...
public PropPanelCallEvent() { super("Call event", null, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-st...
public PropPanelCallEvent() { super("Call event", null, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-st...
public Record nextRecord() throws IOException { Tokenizer.Token token; String s; if (included != null) { Record rec = included.nextRecord(); if (rec != null) return rec; included = null; } while (true) { Name name; long ttl; int type, dclass; token = st.get(true, false); if (token.type == Toke...
public Record nextRecord() throws IOException { Tokenizer.Token token; String s; if (included != null) { Record rec = included.nextRecord(); if (rec != null) return rec; included = null; } while (true) { Name name; long ttl; int type, dclass; token = st.get(true, false); if (token.type == Toke...
private final void initializeDefaultServices() { serviceLocator.registerService(ISaveablesLifecycleListener.class, new SaveablesList()); /* * Phase 1 of the initialization of commands. When this phase completes, * all the services and managers will exist, and be accessible via the * getService(Objec...
private final void initializeDefaultServices() { serviceLocator.registerService(ISaveablesLifecycleListener.class, new SaveablesList()); /* * Phase 1 of the initialization of commands. When this phase completes, * all the services and managers will exist, and be accessible via the * getService(Objec...
public Occur next; //{{{ Occur constructor Occur(int start, int end) { this.start = start; this.end = end; if(!buffer.isTemporary()) bufferOpened(); } //}}} //{{{ bufferOpened() method void bufferOpened() { startPos = buffer.createPosition(Math.min( buffer.getLength(),start)); ...
public Occur next; //{{{ Occur constructor Occur(int start, int end) { this.start = start; this.end = end; if(buffer != null && !buffer.isTemporary()) bufferOpened(); } //}}} //{{{ bufferOpened() method void bufferOpened() { startPos = buffer.createPosition(Math.min( buffer.getLen...
private PackageFragmentRoot getJarPkgFragmentRoot(String jarPathString, IJavaSearchScope scope) { IPath jarPath= new Path(jarPathString); Object target = JavaModel.getTarget(jarPath, false); if (target instanceof IFile) { // internal jar: is it on the classpath of its project? // e.g. org.eclipse.swt....
private PackageFragmentRoot getJarPkgFragmentRoot(String jarPathString, IJavaSearchScope scope) { IPath jarPath= new Path(jarPathString); Object target = JavaModel.getTarget(jarPath, false); if (target instanceof IFile) { // internal jar: is it on the classpath of its project? // e.g. org.eclipse.swt....
public Category makeNewCategoryInstance(String name) { return new Category(name); }
public Logger makeNewCategoryInstance(String name) { return new Category(name); }
package org.eclipse.ui.commands; /******************************************************************************* * 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 * which...
package org.eclipse.ui.commands; /******************************************************************************* * 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 * which...
protected void consumeEnterAnonymousClassBody() { // EnterAnonymousClassBody ::= $empty if (this.indexOfAssistIdentifier() < 0) { super.consumeEnterAnonymousClassBody(); return; } QualifiedAllocationExpression alloc; AnonymousLocalTypeDeclaration anonymousType = new AnonymousLocalTypeDeclaration(this.compi...
protected void consumeEnterAnonymousClassBody() { // EnterAnonymousClassBody ::= $empty if (this.indexOfAssistIdentifier() < 0) { super.consumeEnterAnonymousClassBody(); return; } QualifiedAllocationExpression alloc; AnonymousLocalTypeDeclaration anonymousType = new AnonymousLocalTypeDeclaration(this.compi...
public void testSingleton() { Object o1 = StateMachinesFactory.getFactory(); Object o2 = StateMachinesFactory.getFactory(); assert("Different singletons", o1 == o2); }
public void testSingleton() { Object o1 = StateMachinesFactory.getFactory(); Object o2 = StateMachinesFactory.getFactory(); assertTrue("Different singletons", o1 == o2); }
package org.eclipse.ui.commands; /******************************************************************************* * 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 * which...
package org.eclipse.ui.commands; /******************************************************************************* * 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 * which...
private void acceptBinaryMethod( IType type, IMethod method, char[] uniqueKey, boolean isConstructor) { try { if(!isConstructor || ((JavaElement)method).getSourceMapper() == null) { if (uniqueKey != null) { ResolvedBinaryMethod resolvedMethod = new ResolvedBinaryMethod( (JavaElement)method.getPa...
private void acceptBinaryMethod( IType type, IMethod method, char[] uniqueKey, boolean isConstructor) { try { if(!isConstructor || ((JavaElement)method).getClassFile().getBuffer() == null) { if (uniqueKey != null) { ResolvedBinaryMethod resolvedMethod = new ResolvedBinaryMethod( (JavaElement)met...
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "continue "; if (label != null ) s = s + new String(label) ; return s; }
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "continue "/*nonNLS*/; if (label != null ) s = s + new String(label) ; return s; }
public void resolve() { try { if (types != null) { for (int i = 0, count = types.length; i < count; i++) { types[i].resolve(scope); } } checkUnusedImports(); } catch (AbortCompilationUnit e) { this.ignoreFurtherInvestigation = true; return; } }
public void resolve() { try { if (types != null) { for (int i = 0, count = types.length; i < count; i++) { types[i].resolve(scope); } } if (!this.compilationResult.hasSyntaxError()) checkUnusedImports(); } catch (AbortCompilationUnit e) { this.ignoreFurtherInvestigation = true; return;...
protected void initializeArguments() { TypeVariableBinding[] typeVariables = this.type.typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { typeArguments[i] = typeVariables[i].erasure(); } this.arguments = typeAr...
protected void initializeArguments() { TypeVariableBinding[] typeVariables = this.type.typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { typeArguments[i] = typeVariables[i].upperBound(); } this.arguments = typ...
public static Name root = new Name("."); /** The maximum number of labels in a Name */ static final int MAXLABELS = 256;
public static Name root = new Name("."); /** The maximum number of labels in a Name */ static final int MAXLABELS = 128;
public void resolve() { if (binding == null) { ignoreFurtherInvestigation = true; return; } try { if ((this.bits & UndocumentedEmptyBlockMASK) != 0) { this.scope.problemReporter().undocumentedEmptyBlock(this.bodyStart-1, this.bodyEnd+1); } // check superclass & interfaces if (binding.super...
public void resolve() { if (binding == null) { ignoreFurtherInvestigation = true; return; } try { if ((this.bits & UndocumentedEmptyBlockMASK) != 0) { this.scope.problemReporter().undocumentedEmptyBlock(this.bodyStart-1, this.bodyEnd+1); } // check superclass & interfaces if (binding.super...
public TabProps() { this("Properties", "ui.PropPanel"); }
public TabProps() { this("tab.properties", "ui.PropPanel"); }
public TypeBinding resolveType(BlockScope scope) { // Answer the signature type of the field. // constants are propaged when the field is final // and initialized with a (compile time) constant // regular receiver reference this.receiverType = receiver.resolveType(scope); if (this.receiverType == null)...
public TypeBinding resolveType(BlockScope scope) { // Answer the signature type of the field. // constants are propaged when the field is final // and initialized with a (compile time) constant // regular receiver reference this.receiverType = receiver.resolveType(scope); if (this.receiverType == null)...
public void testSingleton() { Object o1 = CollaborationsFactory.getFactory(); Object o2 = CollaborationsFactory.getFactory(); assert("Different singletons", o1 == o2); }
public void testSingleton() { Object o1 = CollaborationsFactory.getFactory(); Object o2 = CollaborationsFactory.getFactory(); assertTrue("Different singletons", o1 == o2); }
buffer.append("public void run() throws Throwable {").append(Util.LINE_SEPARATOR); //$NON-NLS-1$ this.lineNumberOffset++; startPosOffset = buffer.length(); buffer.append(codeSnippet); // a line separator is required after the code snippet source code // in case the code snippet source code ends with a line commen...
buffer.append("public void run() throws Throwable {").append(Util.LINE_SEPARATOR); //$NON-NLS-1$ this.lineNumberOffset++; startPosOffset = buffer.length(); buffer.append(codeSnippet); // a line separator is required after the code snippet source code // in case the code snippet source code ends with a line commen...
public ThreadedViewOptionsPlugin(MailFrameMediator mediator) { super("threadedview", mediator); }
public ThreadedViewOptionsPlugin(MailFrameMediator mediator) { super("threadedview", "ThreadedViewOptions", mediator); }
public TypeBinding resolveType(BlockScope scope) { // for code gen, harm the restrictiveFlag if (this.actualReceiverType != null) { this.binding = scope.getField(this.actualReceiverType, token, this); } else { this.actualReceiverType = scope.enclosingSourceType(); this.binding = scope.getBinding(tok...
public TypeBinding resolveType(BlockScope scope) { // for code gen, harm the restrictiveFlag if (this.actualReceiverType != null) { this.binding = scope.getField(this.actualReceiverType, token, this); } else { this.actualReceiverType = scope.enclosingSourceType(); this.binding = scope.getBinding(tok...
void setContextDefinitions(List contextDefinitions); /******************************************************************************* * 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 L...
void setContextDefinitions(List contextDefinitions); /******************************************************************************* * 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 L...
public CriteriaComboBoxRenderer() { super(); try { pluginHandler = PluginManager.getInstance() .getHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_FILTER); } catch (PluginHandlerNotFoundException ex) { ErrorDialog.createDialog(ex.getMessage(), ex); } }
public CriteriaComboBoxRenderer() { super(); try { pluginHandler = PluginManager.getInstance() .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_FILTER); } catch (PluginHandlerNotFoundException ex) { ErrorDialog.createDialog(ex.getMessage(), ex); } }
public void itemStateChanged(ItemEvent event) { if (event.getStateChange() == ItemEvent.SELECTED) { String selected = (String) _comboBox.getSelectedItem(); HeaderItem item = AddressCollector.getHeaderItem(selected); if (item == null) { item = new HeaderItem(HeaderItem.CONTACT); item.add("displayn...
public void itemStateChanged(ItemEvent event) { if (event.getStateChange() == ItemEvent.SELECTED) { String selected = (String) _comboBox.getSelectedItem(); HeaderItem item = AddressCollector.getHeaderItem(selected); if (item == null) { item = new HeaderItem(HeaderItem.CONTACT); item.add("displayn...
public PropPanelReception() { super("Reception", _receptionIcon,2); Class mclass = MReception.class; addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),1,0,0); addCaption(Argo.localize("UMLMenu",...
public PropPanelReception() { super("Reception", _receptionIcon,2); Class mclass = MReception.class; addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),1,0,0); addCaption(Argo.localize("UMLMenu",...
public void execute(Worker worker) throws Exception { ComposerCommandReference[] r = (ComposerCommandReference[]) getReferences(); ComposerController composerController = r[0].getComposerController(); AccountItem item = composerController.getModel().getAccountItem(); SendableMessage message = compose...
public void execute(Worker worker) throws Exception { ComposerCommandReference[] r = (ComposerCommandReference[]) getReferences(); ComposerController composerController = r[0].getComposerController(); AccountItem item = composerController.getModel().getAccountItem(); SendableMessage message = compose...
public ToDoByDecision() { super("By Decision"); addSubTreeModel(new GoListToDecisionsToItems()); }
public ToDoByDecision() { super("todo.perspective.decision"); addSubTreeModel(new GoListToDecisionsToItems()); }
public int getPreferredWidth() { return 20; }
public int getPreferredWidth() { return 30; }
public void actionPerformed(ActionEvent ae) { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); //needs-more-work: class TearOffHostFrame and TearOffManager. //idea: pop-up on tab that lists docking locations, new window. JFrame f = new JFrame("Goto Diagram..."); f.g...
public void actionPerformed(ActionEvent ae) { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); //needs-more-work: class TearOffHostFrame and TearOffManager. //idea: pop-up on tab that lists docking locations, new window. JDialog f = new JDialog(pb, "Goto Diagram..."); ...
public void itemStateChanged(ItemEvent e) { Object src = e.getSource(); if (src == _priority) { //System.out.println("class keywords now is " + //_keywordsField.getSelectedItem()); setTargetPriority(); } else if (src == _useClar) { //System.out.println("class VisibilityKind now...
public void itemStateChanged(ItemEvent e) { Object src = e.getSource(); if (src == _priority) { //System.out.println("class keywords now is " + //_keywordsField.getSelectedItem()); setTargetPriority(); } else if (src == _useClar) { //System.out.println("class VisibilityKind now...
public void execute(Worker worker) throws Exception { // get references FolderCommandReference[] references = (FolderCommandReference[]) getReferences(); // use wrapper class adapter = new FolderCommandAdapter(references); // get source references FolderCommandRefer...
public void execute(Worker worker) throws Exception { // get references FolderCommandReference[] references = (FolderCommandReference[]) getReferences(); // use wrapper class adapter = new FolderCommandAdapter(references); // get source references FolderCommandRefer...
public int getNodeType() { return MEMBER_REF; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { MemberRef result = new MemberRef(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Name) ASTNode.copySubtree(targe...
public int getNodeType() { return MEMBER_REF; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { MemberRef result = new MemberRef(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Name) ASTNode.copySubtree(targ...
public WindowExample() { try { model = new Model("default"); windowClass = new MMClass("Window"); windowClass.setIsAbstract(Boolean.TRUE); tvs.addElement(tv1 = new TaggedValue("author", "Joe")); tvs.addElement(tv2 = new TaggedValue("status", "tested")); booleanType ...
public WindowExample() { try { model = new Model("WindowExample"); windowClass = new MMClass("Window"); windowClass.setIsAbstract(Boolean.TRUE); tvs.addElement(tv1 = new TaggedValue("author", "Joe")); tvs.addElement(tv2 = new TaggedValue("status", "tested")); boolea...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return true; try { /* ensure no concurrent write access to index */ IIndex index = manager.getIndex(this.indexPath, true, /*reuse index file*/ true /*create if none*/); if (index == nu...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return true; try { /* ensure no concurrent write access to index */ IIndex index = manager.getIndex(this.indexPath, true, /*reuse index file*/ false /*create if none*/); if (index == n...
public String getComment() { becomeDetailed(); if (hasComment()) { if (fComment != null) { return fComment; } else { return new String(CharOperation.subarray(fDocument, fCommentRange[0], fCommentRange[1] + 1)); } } else { return null; } }
public String getComment() { becomeDetailed(); if (hasComment()) { if (fComment != null) { return fComment; } else { return new String(fDocument, fCommentRange[0], fCommentRange[1] + 1 - fCommentRange[0]); } } else { return null; } }
public void valueChanged(ListSelectionEvent lse) { if (lse.getValueIsAdjusting()) return; if (lse.getSource() == _table.getSelectionModel()) { Vector cs = _target.getConstraint(); Constraint c; if (lse.getFirstIndex() != -1 && lse.getFirstIndex() < cs.size()) c = (Constraint) cs.elementAt(l...
public void valueChanged(ListSelectionEvent lse) { if (lse.getValueIsAdjusting()) return; if (lse.getSource() == _table.getSelectionModel()) { Vector cs = _target.getConstraint(); Constraint c; if (lse.getFirstIndex() != -1 && lse.getFirstIndex() < cs.size()) c = (Constraint) cs.elementAt(l...
public static String inaddrString(InetAddress addr) { byte [] address = addr.getAddress(); StringBuffer sb = new StringBuffer(); for (int i = 3; i >= 0; i--) { sb.append(address[i] & 0xFF); sb.append("."); } sb.append(".IN-ADDR.ARPA."); return sb.toString(); }
public static String inaddrString(InetAddress addr) { byte [] address = addr.getAddress(); StringBuffer sb = new StringBuffer(); for (int i = 3; i >= 0; i--) { sb.append(address[i] & 0xFF); sb.append("."); } sb.append("IN-ADDR.ARPA."); return sb.toString(); }
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; // need assertion flag: $assertionsDisabled on outer most source clas // (in case of static member of interface, will use the outermost static member - bug 22334) SourceTypeBindin...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; // need assertion flag: $assertionsDisabled on outer most source clas // (in case of static member of interface, will use the outermost static member - bug 22334) SourceTypeBindin...
protected void append(LoggingEvent event) { event.prepareForSerialization(); eventsBuffer.add(event); if (eventsBuffer.size() >= batchSize) { flush(); } }
protected void append(LoggingEvent event) { event.prepareForDeferredProcessing(); eventsBuffer.add(event); if (eventsBuffer.size() >= batchSize) { flush(); } }
public void resolve(BlockScope scope) { super.resolve(scope); throw new SelectionNodeFound(binding); }
public void resolve(BlockScope scope) { super.resolve(scope); throw new SelectionNodeFound(this, binding); }
int getType(); // Copyright (c) 2002 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS; /** * Interface describing an object with a DNS type. * * @author Brian Wellington */ interface TypedObject { /** * Gets the type. */ short getType(); }
int getType(); // Copyright (c) 2002 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS; /** * Interface describing an object with a DNS type. * * @author Brian Wellington */ interface TypedObject { /** * Gets the type. */ int getType(); }
protected float drawText(Graphics g, Rectangle displayBox) { Graphics2D g2 = null; Shape savedClipArea = null; Color savedFontColor = null; Rectangle2D clipRect = null; RenderingHints savedRenderingHints = null; if (g != null) { g2 = (Graphics2D)g; savedRenderingHints = g2.getRenderingHints(); g2...
protected float drawText(Graphics g, Rectangle displayBox) { Graphics2D g2 = null; Shape savedClipArea = null; Color savedFontColor = null; Rectangle2D clipRect = null; RenderingHints savedRenderingHints = null; if (g != null) { g2 = (Graphics2D)g; savedRenderingHints = g2.getRenderingHints(); g2...
static public void attachTemporaryConsoleAppender(LoggerRepository repository) { Logger ll = repository.getLogger(Constants.LOG4J_PACKAGE_NAME); ConsoleAppender appender = new ConsoleAppender(); appender.setLayout( new PatternLayout("LOG4J-INTERNAL: %d %level [%t] %c#%M:%L)- %m%n")); append...
static public void attachTemporaryConsoleAppender(LoggerRepository repository) { Logger ll = repository.getLogger(Constants.LOG4J_PACKAGE_NAME); ConsoleAppender appender = new ConsoleAppender(); appender.setLayout( new PatternLayout("LOG4J-INTERNAL: %d %level [%t] %c#%M:%L)- %m%n")); append...
private char[][][] possibleTags(char[] prefix, boolean newLine) { char[][][] possibleTags = new char[2][][]; if (newLine) { System.arraycopy(this.levelTags[BLOCK_IDX], 0, possibleTags[BLOCK_IDX] = new char[this.levelTagsLength[BLOCK_IDX]][], 0, this.levelTagsLength[BLOCK_IDX]); } else { possibleTags[BLOCK_...
private char[][][] possibleTags(char[] prefix, boolean newLine) { char[][][] possibleTags = new char[2][][]; if (newLine) { System.arraycopy(this.levelTags[BLOCK_IDX], 0, possibleTags[BLOCK_IDX] = new char[this.levelTagsLength[BLOCK_IDX]][], 0, this.levelTagsLength[BLOCK_IDX]); } else { possibleTags[BLOCK_...
public SystemMenuCloseAll(IStackPresentationSite presentation) { this.presentation = presentation; setText(WorkbenchMessages.getString("PartPane.closeAll")); //$NON-NLS-1$ }
public SystemMenuCloseAll(IStackPresentationSite presentation) { this.presentation = presentation; setText(WorkbenchMessages.PartPane_closeAll); }
public void updateActiveKeyBindingService() { IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow(); if (workbenchWindow != null && workbenchWindow instanceof WorkbenchWindow) ((WorkbenchWindow) workbenchWindow).updateActionAndContextManager(); }
public void updateActiveKeyBindingService() { IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow(); if (workbenchWindow != null && workbenchWindow instanceof WorkbenchWindow) ((WorkbenchWindow) workbenchWindow).updateContextAndHandlerManager(); }
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) { throw new IllegalArgumentException(...
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 analyseCode( ClassScope classScope, InitializationFlowContext initializerFlowContext, FlowInfo flowInfo) { if (ignoreFurtherInvestigation) return; // check constructor recursion, once all constructor got resolved if (isRecursive(null /*lazy initialized visited list*/)) { this.sco...
public void analyseCode( ClassScope classScope, InitializationFlowContext initializerFlowContext, FlowInfo flowInfo) { if (ignoreFurtherInvestigation) return; // check constructor recursion, once all constructor got resolved if (isRecursive(null /*lazy initialized visited list*/)) { this.sco...
private void fireRoleManagerChanged() { if (roleManagerListeners != null) for (int i = 0; i < roleManagerListeners.size(); i++) { if (roleManagerEvent == null) roleManagerEvent = new RoleManagerEvent(this); ((IRoleManagerListener) roleManagerListeners.get(i)).roleManagerChanged(roleManagerEv...
private void fireRoleManagerChanged() { if (roleManagerListeners != null) for (int i = 0; i < roleManagerListeners.size(); i++) { if (roleManagerEvent == null) roleManagerEvent = new RoleManagerEvent(this, false); ((IRoleManagerListener) roleManagerListeners.get(i)).roleManagerChanged(roleMa...
public void execute(WorkerStatusController worker) throws Exception { this.worker = worker; // use wrapper class for easier handling of references array adapter = new FolderCommandAdapter( (FolderCommandReference[]) getReferences()); // get array of source reference...
public void execute(WorkerStatusController worker) throws Exception { this.worker = worker; // use wrapper class for easier handling of references array adapter = new FolderCommandAdapter( (FolderCommandReference[]) getReferences()); // get array of source reference...
public final EvaluationResult evaluate(final IEvaluationContext context) { if (activeShell != null) { Object value = context.getVariable(ISources.ACTIVE_SHELL_NAME); if (!activeShell.equals(value)) { value = context .getVariable(ISources.ACTIVE_WORKBENCH_WINDOW_NAME); if (!activeShell.equals(valu...
public final EvaluationResult evaluate(final IEvaluationContext context) { if (activeShell != null) { Object value = context.getVariable(ISources.ACTIVE_SHELL_NAME); if (!activeShell.equals(value)) { value = context .getVariable(ISources.ACTIVE_WORKBENCH_WINDOW_SHELL_NAME); if (!activeShell.equal...
void commandRegistryChanged(CommandRegistryEvent commandRegistryEvent); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of ...
void commandRegistryChanged(CommandRegistryEvent commandRegistryEvent); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of ...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // Flatten the values and compute the dimensions, by iterating in depth into nested array initializers int pc = codeStream.position; int expressionLength = (expressions == null) ? 0: expressions.length; codeStrea...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // Flatten the values and compute the dimensions, by iterating in depth into nested array initializers int pc = codeStream.position; int expressionLength = (expressions == null) ? 0: expressions.length; codeStrea...
protected IJavaModelStatus verify() { IJavaModelStatus status = super.verify(); if (! status.isOK()) return status; if (fRenamingsList == null || fRenamingsList.length == 0) return new JavaModelStatus(IJavaModelStatusConstants.NULL_NAME); return JavaModelStatus.VERIFIED_OK; }
protected IJavaModelStatus verify() { IJavaModelStatus status = super.verify(); if (! status.isOK()) return status; if (this.renamingsList == null || this.renamingsList.length == 0) return new JavaModelStatus(IJavaModelStatusConstants.NULL_NAME); return JavaModelStatus.VERIFIED_OK; }
public void processForms() { //hFormSets.put(buildKey(fs), fs); String defaultKey = defaultLocale.toString(); // Loop through FormSets for (Iterator i = hFormSets.keySet().iterator(); i.hasNext(); ) { String key = (String)i.next(); FormSet fs = (FormSet)hFormS...
public void processForms() { //hFormSets.put(buildKey(fs), fs); String defaultKey = defaultLocale.toString(); // Loop through FormSets for (Iterator i = hFormSets.keySet().iterator(); i.hasNext(); ) { String key = (String)i.next(); FormSet fs = (FormSet)hFormS...
private BindingResolver bindingResolver; static Object buildDOMValue(final Object internalObject, BindingResolver resolver) { if (internalObject == null) return null; if (internalObject instanceof Constant) { Constant constant = (Constant) internalObject; switch (constant.typeID()) { case TypeIds.T_boolea...
private BindingResolver bindingResolver; static Object buildDOMValue(final Object internalObject, BindingResolver resolver) { if (internalObject == null) return null; if (internalObject instanceof Constant) { Constant constant = (Constant) internalObject; switch (constant.typeID()) { case TypeIds.T_boolea...
public void recordUsingNullReference(Scope scope, LocalVariableBinding local, Expression reference, int checkType, FlowInfo flowInfo) { if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) != 0 || flowInfo.isDefinitelyUnknown(local)) { return; } switch (checkType) { case CAN_ONLY_NULL_NON_NULL : if (flowInfo.i...
public void recordUsingNullReference(Scope scope, LocalVariableBinding local, Expression reference, int checkType, FlowInfo flowInfo) { if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) != 0 || flowInfo.isDefinitelyUnknown(local)) { return; } switch (checkType) { case CAN_ONLY_NULL_NON_NULL : if (flowInfo.i...
public void actionPerformed(ActionEvent evt) { frameMediator.getContainer().close(); }
public void actionPerformed(ActionEvent evt) { frameMediator.fireClosed(); }
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)); ...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) return (ReferenceBinding) binding; // not found PackageBinding packageBinding = binding =...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) return (ReferenceBinding) binding; // not found PackageBinding packageBinding = binding =...
private void maybeReload(String path) { String jEditHome = jEdit.getJEditHome(); String settingsDirectory = jEdit.getSettingsDirectory(); String osName = System.getProperty("os.name"); // On Windows and MacOS, path names are case insensitive if(osName.indexOf("Windows") != -1 || osName.indexOf("Mac") != -1)...
private void maybeReload(String path) { String jEditHome = jEdit.getJEditHome(); String settingsDirectory = jEdit.getSettingsDirectory(); String osName = System.getProperty("os.name"); // On Windows and MacOS, path names are case insensitive if(OperatingSystem.isDOSDerived() || OperatingSystem.isMacOS()) ...
public void initContext( Object sctx ) { try { // if( facadeM==null ) { // log("XXX ERROR: no facade manager"); // return; // } Context ctx=(Context)sctx; //contextM.getRealContext( sctx ); contextM.initContext( ctx ); Object pd=ctx.getProtectionDomain(); // log("Ctx.pd ...
public void initContext( Object sctx ) { try { // if( facadeM==null ) { // log("XXX ERROR: no facade manager"); // return; // } Context ctx=(Context)sctx; //contextM.getRealContext( sctx ); contextM.initContext( ctx ); // Object pd=ctx.getProtectionDomain(); // log("...
public Constant resolveCase( BlockScope scope, TypeBinding testTb, SwitchStatement switchStatement) { // add into the collection of cases of the associated switch statement switchStatement.cases[switchStatement.caseCount++] = this; TypeBinding caseTb = constantExpression.resolveType(scope); if (caseTb =...
public Constant resolveCase( BlockScope scope, TypeBinding testTb, SwitchStatement switchStatement) { // add into the collection of cases of the associated switch statement switchStatement.cases[switchStatement.caseCount++] = this; TypeBinding caseTb = constantExpression.resolveType(scope); if (caseTb =...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { IIndex index = manager.getIndex(this.indexedContainer, true /*reuse index file*/, true /*create if none*/); /* ensure no concurrent write access to index */ if (...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { IIndex index = manager.getIndex(this.indexedContainer, true /*reuse index file*/, true /*create if none*/); /* ensure no concurrent write access to index */ if (...
public final Object execute(Map parameterValuesByName) throws ExecutionException, NotHandledException { try { return command.execute(new ExecutionEvent( (parameterValuesByName == null) ? Collections.EMPTY_MAP : parameterValuesByName, null, null)); } catch (final org.eclipse.core.commands.Executio...
public final Object execute(Map parameterValuesByName) throws ExecutionException, NotHandledException { try { return command.execute(new ExecutionEvent(command, (parameterValuesByName == null) ? Collections.EMPTY_MAP : parameterValuesByName, null, null)); } catch (final org.eclipse.core.commands....
public void readPerspectives(IPluginRegistry in, PerspectiveRegistry out) { registry = out; readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_PERSPECTIVES); } }
public void readPerspectives(IExtensionRegistry in, PerspectiveRegistry out) { registry = out; readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_PERSPECTIVES); } }
private void initActions() { undoAction = new BasicAction( MailResourceLoader.getString( "menu", "mainframe", "menu_edit_undo"), MailResourceLoader.getString( "menu", "mainframe", "menu_edit_undo"), MailResourceLoader.getString( "menu", "mainframe", "menu_...
private void initActions() { undoAction = new BasicAction( MailResourceLoader.getString( "menu", "mainframe", "menu_edit_undo"), MailResourceLoader.getString( "menu", "mainframe", "menu_edit_undo"), MailResourceLoader.getString( "menu", "mainframe", "menu_...
public void execute(ContextManager cm) throws TomcatException { try { String tomcatHome = cm.getHome(); String apacheHome = findApache(); //log("Tomcat home= " + tomcatHome); FileWriter configW=new FileWriter(tomcatHome + APACHE_CONFIG); PrintWriter pw=new PrintWriter(configW); P...
public void execute(ContextManager cm) throws TomcatException { try { String tomcatHome = cm.getHome(); String apacheHome = findApache(); //log("Tomcat home= " + tomcatHome); FileWriter configW=new FileWriter(tomcatHome + APACHE_CONFIG); PrintWriter pw=new PrintWriter(configW); P...
public DetachedWindow(WorkbenchPage workbenchPage) { super(null); setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.RESIZE ); this.page = workbenchPage; folder = new PartTabFolder(page, false); }
public DetachedWindow(WorkbenchPage workbenchPage) { super(workbenchPage.getWorkbenchWindow().getShell()); setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.RESIZE ); this.page = workbenchPage; folder = new PartTabFolder(page, false); }
public void acceptImport(int declarationStart, int declarationEnd, char[] name, boolean onDemand, int modifiers) { int[] sourceRange = {declarationStart, declarationEnd}; String importName = new String(name); /** name is set to contain the '*' */ if (onDemand) { importName+=".*"; //$NON-NLS-1$ } fNode= new DOMI...
public void acceptImport(int declarationStart, int declarationEnd, char[] name, boolean onDemand, int modifiers) { int[] sourceRange = {declarationStart, declarationEnd}; String importName = new String(name); /** name is set to contain the '*' */ if (onDemand) { importName+=".*"; //$NON-NLS-1$ } fNode= new DOMI...
public CodeSnippetClassFile( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding aType, org.eclipse.jdt.internal.compiler.ClassFile enclosingClassFile, boolean creatingProblemType) { /** * INTERNAL USE-ONLY * This methods creates a new instance of the receiver. * * @param aType org.eclipse.jdt.intern...
public CodeSnippetClassFile( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding aType, org.eclipse.jdt.internal.compiler.ClassFile enclosingClassFile, boolean creatingProblemType) { /** * INTERNAL USE-ONLY * This methods creates a new instance of the receiver. * * @param aType org.eclipse.jdt.intern...
public PartTabFolder(WorkbenchPage page, int flags) { super("PartTabFolder"); setID(this.toString()); // Each folder has a unique ID so relative positioning is unambiguous. // save off a ref to the page //@issue is it okay to do this?? //I think so since a PartTabFo...
public PartTabFolder(WorkbenchPage page, int flags) { super("PartTabFolder"); //$NON-NLS-1$ setID(this.toString()); // Each folder has a unique ID so relative positioning is unambiguous. // save off a ref to the page //@issue is it okay to do this?? //I think so sin...
protected void processDoubleClick() { int selectedRow = headerTableViewer.getView().getSelectedRow(); MessageNode node = (MessageNode) headerTableViewer .getHeaderTableModel().getValueAt(selectedRow, 0); boolean markedAsDraft = node.getHeader().getFlags().getDraft(); ...
protected void processDoubleClick() { int selectedRow = headerTableViewer.getView().getSelectedRow(); MessageNode node = (MessageNode) headerTableViewer .getHeaderTableModel().getMessageNodeAtRow(selectedRow); boolean markedAsDraft = node.getHeader().getFlags().getDraft(); ...
public static String id() { return "4.5-SNAPSHOT-20080110-0022"; }
public static String id() { return "4.5-SNAPSHOT-20080125-0912"; }
public SaveAsAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("SaveAs.text"), window); //$NON-NLS-1$ setActionDefinitionId("org.eclipse.ui.file.saveAs"); //$NON-NLS-1$ setText(WorkbenchMessages.getString("SaveAs.text")); //$NON-NLS-1$ setToolTipText(WorkbenchMessag...
public SaveAsAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("SaveAs.text"), window); //$NON-NLS-1$ setActionDefinitionId("org.eclipse.ui.file.saveAs"); //$NON-NLS-1$ setText(WorkbenchMessages.getString("SaveAs.text")); //$NON-NLS-1$ setToolTipText(WorkbenchMessag...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) return (ReferenceBinding) binding; // not found PackageBinding packageBinding = binding =...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) return (ReferenceBinding) binding; // not found PackageBinding packageBinding = binding =...
public void generateOuterAccess(Object[] mappingSequence, AstNode invocationSite, Binding target, Scope scope) { if (mappingSequence == null) { if (target instanceof LocalVariableBinding) { scope.problemReporter().needImplementation(); //TODO: (philippe) should improve local emulation failure reporting } else {...
public void generateOuterAccess(Object[] mappingSequence, AstNode invocationSite, Binding target, Scope scope) { if (mappingSequence == null) { if (target instanceof LocalVariableBinding) { scope.problemReporter().needImplementation(); //TODO (philippe) should improve local emulation failure reporting } else { ...
public UMLLinkedList( UMLModelElementListModel2 dataModel, boolean showIcon) { super(dataModel, showIcon); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); addMouseListener(this); }
public UMLLinkedList( UMLModelElementListModel2 dataModel, boolean showIcon) { super(dataModel, new UMLLinkedListCellRenderer(showIcon)); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); addMouseListener(this); }
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. this.scope = new BlockScope(upperScope); BlockScope tryScope = new BlockScope(scope); BlockScope finallyScope = null; if (finallyBlock != null && finallyBlock.statements != null) { finallyScope = new Bl...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. this.scope = new BlockScope(upperScope); BlockScope tryScope = new BlockScope(scope); BlockScope finallyScope = null; if (finallyBlock != null && finallyBlock.statements != null) { finallyScope = new Bl...
public Object getWrappedConstantValue() { if (this.wrappedConstantValue == null) { if (hasConstant()) { Constant fieldConstant = getConstant(); switch (fieldConstant.typeID()) { case T_int : this.wrappedConstantValue = new Integer(fieldConstant.intValue()); break; case T_byte : this.wra...
public Object getWrappedConstantValue() { if (this.wrappedConstantValue == null) { if (hasConstant()) { Constant fieldConstant = getConstant(); switch (fieldConstant.typeID()) { case T_int : this.wrappedConstantValue = new Integer(fieldConstant.intValue()); break; case T_byte : this.wra...
protected boolean validateCurrentSelection() { Assert.isNotNull(fFilteredList); IStatus status; Object[] elements = getSelectedElements(); if (elements.length > 0) { if (fValidator != null) { status = fValidator.validate(elements); } else { status = new Status( IStatus.OK, Plat...
protected boolean validateCurrentSelection() { Assert.isNotNull(fFilteredList); IStatus status; Object[] elements = getSelectedElements(); if (elements.length > 0) { if (fValidator != null) { status = fValidator.validate(elements); } else { status = new Status( IStatus.OK, Plat...
public void run() { WorkbenchPage page = (WorkbenchPage) window.getActivePage(); if (page != null) { Perspective persp = page.getActivePerspective(); if (persp != null) page.closePerspective(persp, true); } }
public void run() { WorkbenchPage page = (WorkbenchPage) window.getActivePage(); if (page != null) { Perspective persp = page.getActivePerspective(); if (persp != null) page.closePerspective(persp, true,true); } }
private CompilationParticipant[] getRegisteredParticipants() { if (this.registeredParticipants != null) { return this.registeredParticipants; } ArrayList participants = new ArrayList(); IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, COMPILATION_PARTIC...
private CompilationParticipant[] getRegisteredParticipants() { if (this.registeredParticipants != null) { return this.registeredParticipants; } ArrayList participants = new ArrayList(); IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, COMPILATION_PARTIC...
public IStatus runInUIThread(IProgressMonitor monitor) { //if the job is done at this point, we don't need the dialog if (job.getState() == Job.NONE) return Status.CANCEL_STATUS; //now open the progress dialog if nothing else is if(ProgressManagerUtil.rescheduleIfModalShellOpen(this)) ...
public IStatus runInUIThread(IProgressMonitor monitor) { //if the job is done at this point, we don't need the dialog if (job.getState() == Job.NONE) return Status.CANCEL_STATUS; //now open the progress dialog if nothing else is if(ProgressManagerUtil.rescheduleIfModalShellOpen(this,Pr...
protected void consumeClassDeclaration() { // ClassDeclaration ::= ClassHeader ClassBody int length; if ((length = this.astLengthStack[this.astLengthPtr--]) != 0) { //there are length declarations //dispatch according to the type of the declarations dispatchDeclarationInto(length); } TypeDeclaration typeDe...
protected void consumeClassDeclaration() { // ClassDeclaration ::= ClassHeader ClassBody int length; if ((length = this.astLengthStack[this.astLengthPtr--]) != 0) { //there are length declarations //dispatch according to the type of the declarations dispatchDeclarationInto(length); } TypeDeclaration typeDe...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; FocusOwner focusOwner = FocusManager.getInstance().getCurrentOwner(); TableController table = ((AddressbookFrameMediator) frameMediator) .getTable(); boolean tableHasFocus = false...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; FocusOwner focusOwner = FocusManager.getInstance().getCurrentOwner(); TableController table = ((AddressbookFrameMediator) frameMediator) .getTable(); boolean tableHasFocus = false...
public void acceptType(int modifiers, char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path, AccessRestriction access) { if (excludePath != null && excludePath.equals(path)) return; if (!findMembers && enclosingTypeNames != null && enclosingTypeNames.length > 0) r...
public void acceptType(int modifiers, char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path, AccessRestriction access) { if (excludePath != null && excludePath.equals(path)) return; if (!findMembers && enclosingTypeNames != null && enclosingTypeNames.length > 0) r...
public void generateCode( BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. int pc = codeStream.posit...
public void generateCode( BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. int pc = codeStream.posit...