buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public String toString() { return new String(constantPoolName) + " (id=" + id + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { return new String(constantPoolName) + " (id="/*nonNLS*/ + id + ")"/*nonNLS*/; }
public String toString() { return "NewBuilderType("/*nonNLS*/ + fNewTSEntry.getType().getName() + ")"/*nonNLS*/; }
public String toString() { return "NewBuilderType(" + fNewTSEntry.getType().getName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public AboutAction(IWorkbenchWindow window) { this.workbenchWindow = window; AboutInfo aboutInfo = ((Workbench) PlatformUI.getWorkbench()).getConfigurationInfo().getAboutInfo(); String productName = aboutInfo.getProductName(); if (productName == null) { productName = ""; //$NON-NLS$ } setText(WorkbenchMessages....
public AboutAction(IWorkbenchWindow window) { this.workbenchWindow = window; AboutInfo aboutInfo = ((Workbench) PlatformUI.getWorkbench()).getConfigurationInfo().getAboutInfo(); String productName = aboutInfo.getProductName(); if (productName == null) { productName = ""; //$NON-NLS-1$ } setText(WorkbenchMessage...
public void setObjectFlowState(Vector x) throws PropertyVetoException { if (_objectFlowState == null) _objectFlowState = new Vector(); fireVetoableChange("objectFlowState", _objectFlowState, x); _objectFlowState = x; }
public void setObjectFlowState(Vector x) throws PropertyVetoException { if (_objectFlowState == null) _objectFlowState = new Vector(); fireVetoableChangeNoCompare("objectFlowState", _objectFlowState, x); _objectFlowState = x; }
protected void createPresentation(final Composite parent) { usePulldown = preferenceStore.getBoolean(IPreferenceConstants.EDITORLIST_PULLDOWN_ACTIVE); preferenceStore.addPropertyChangeListener(propertyChangeListener); boolean multi = preferenceStore.getBoolean(IPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS);...
protected void createPresentation(final Composite parent) { usePulldown = preferenceStore.getBoolean(IPreferenceConstants.EDITORLIST_PULLDOWN_ACTIVE); preferenceStore.addPropertyChangeListener(propertyChangeListener); boolean multi = preferenceStore.getBoolean(IPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS);...
public String toString() { return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ }
public String toString() { return "Member type : "/*nonNLS*/ + new String(sourceName()) + " "/*nonNLS*/ + super.toString(); }
public SelectionScanner(boolean assertMode) { super(false, false, false, assertMode); }
public SelectionScanner(boolean assertMode) { super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*todo*/); }
protected MethodBinding findDefaultAbstractMethod( ReferenceBinding receiverType, char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite, ReferenceBinding classHierarchyStart, ObjectVector found, MethodBinding concreteMatch) { int startFoundSize = found.size; ReferenceBinding cu...
protected MethodBinding findDefaultAbstractMethod( ReferenceBinding receiverType, char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite, ReferenceBinding classHierarchyStart, ObjectVector found, MethodBinding concreteMatch) { int startFoundSize = found.size; ReferenceBinding cu...
public update(InputStream in) throws IOException { List inputs = new LinkedList(); List istreams = new LinkedList(); query = new Message(); query.getHeader().setOpcode(Opcode.UPDATE); InputStreamReader isr = new InputStreamReader(in); BufferedReader br = new BufferedReader(isr); inputs.add(br); istreams.add(...
public update(InputStream in) throws IOException { List inputs = new LinkedList(); List istreams = new LinkedList(); query = new Message(); query.getHeader().setOpcode(Opcode.UPDATE); InputStreamReader isr = new InputStreamReader(in); BufferedReader br = new BufferedReader(isr); inputs.add(br); istreams.add(...
public String operatorToString() { switch ((bits & OperatorMASK) >> OperatorSHIFT) { case EQUAL_EQUAL : return "=="; //$NON-NLS-1$ case LESS_EQUAL : return "<="; //$NON-NLS-1$ case GREATER_EQUAL : return ">="; //$NON-NLS-1$ case NOT_EQUAL : return "!="; //$NON-NLS-1$ case LEFT_SHIFT : ...
public String operatorToString() { switch ((this.bits & OperatorMASK) >> OperatorSHIFT) { case EQUAL_EQUAL : return "=="; //$NON-NLS-1$ case LESS_EQUAL : return "<="; //$NON-NLS-1$ case GREATER_EQUAL : return ">="; //$NON-NLS-1$ case NOT_EQUAL : return "!="; //$NON-NLS-1$ case LEFT_SHI...
public PasteAction(AbstractFrameController controller) { super( controller, GlobalResourceLoader.getString( null, null, "menu_edit_paste")); // tooltip text setTooltipText( GlobalResourceLoader.getString( null, null, "menu_edit_paste")); // action command setActionCommand("PASTE"); ...
public PasteAction(AbstractFrameController controller) { super( controller, GlobalResourceLoader.getString( null, null, "menu_edit_paste")); // tooltip text setTooltipText( GlobalResourceLoader.getString( null, null, "menu_edit_paste_tooltip")); // action command setActionCommand("P...
public boolean shouldBeEnabled() { return _shouldBeEnabled; } } /* end class TabTaggedValues */ class TableModelTaggedValues extends AbstractTableModel implements VetoableChangeListener, DelayedVetoableChangeListener { ////////////////
public boolean shouldBeEnabled() { return _shouldBeEnabled; } } /* end class TabTaggedValues */ class TableModelTaggedValues extends AbstractTableModel implements VetoableChangeListener, DelayedVChangeListener { ////////////////
private void initialize() { nameField = new UMLTextField2(new UMLModelElementNameDocument()); stereotypeBox = new UMLComboBox2(stereotypeComboBoxModel, ActionSetModelElementStereotype.SINGLETON); namespaceComboBox = new UMLComboBox2(namespaceComboBoxModel, ActionSetModelElementNamespace.SING...
private void initialize() { nameField = new UMLTextField2(new UMLModelElementNameDocument()); stereotypeBox = new UMLComboBox2(stereotypeComboBoxModel, ActionSetModelElementStereotype.SINGLETON); namespaceComboBox = new UMLComboBox2(namespaceComboBoxModel, ActionSetModelElementNamespace.SING...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = new SelectFolderDialog(getFrameMediator()); if (dialog.success()) { IMailFolder destFolder = dialog.getSelectedFolder(); IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator()) .getTableSelection(); IMailFol...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = new SelectFolderDialog(getFrameMediator()); if (dialog.success()) { IMailFolder destFolder = (IMailFolder) dialog.getSelectedFolder(); IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator()) .getTableSelection(...
public SearchableEnvironment(IJavaProject project) throws JavaModelException { this.project = project; this.nameLookup = (NameLookup) ((JavaProject) project).getNameLookup(); // Create search scope with visible entry on the project's classpath this.searchScope = SearchEngine.createJavaSearchScope(this.project...
public SearchableEnvironment(IJavaProject project) throws JavaModelException { this.project = project; this.nameLookup = ((JavaProject) project).getNameLookup(); // Create search scope with visible entry on the project's classpath this.searchScope = SearchEngine.createJavaSearchScope(this.project.getAllPackag...
int R_NON_STATIC = 11; /******************************************************************************* * Copyright (c) 2000, 2004 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...
int R_NON_STATIC = 11; /******************************************************************************* * Copyright (c) 2000, 2004 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...
public String encodeURL(String url) { if (isEncodeable(toAbsolute(url))) return (toEncoded(url, response.getRequest().getRequestedSessionId())); else return (url); }
public String encodeURL(String url) { if (isEncodeable(toAbsolute(url))) return (toEncoded(url, response.getRequest().getSessionId())); else return (url); }
public String parse(Object[] uids) { String messageSet = new String(); StringBuffer messageSetList = new StringBuffer(); //Message message = null; //Integer lastPos; int lastPos = 0; int newPos = 0; char lastChar = 'p'; if ( uids.length == 1 ) { Integer uid = new Integer(Integer.parseInt((Stri...
public String parse(Object[] uids) { String messageSet = new String(); StringBuffer messageSetList = new StringBuffer(); //Message message = null; //Integer lastPos; int lastPos = 0; int newPos = 0; char lastChar = 'p'; if ( uids.length == 1 ) { Integer uid = new Integer(Integer.parseInt((Stri...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences (for RCP APIs in org.eclipse.ui.application) store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferen...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences (for RCP APIs in org.eclipse.ui.application) store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferen...
public int getNodeType() { return ANNOTATION_TYPE_MEMBER_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { AnnotationTypeMemberDeclaration result = new AnnotationTypeMemberDeclaration(target); result.setSourceRange(this.getStartPosition(), this....
public int getNodeType() { return ANNOTATION_TYPE_MEMBER_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { AnnotationTypeMemberDeclaration result = new AnnotationTypeMemberDeclaration(target); result.setSourceRange(this.getStartPosition(), this...
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 service(Request req, Response res) { if( ! initialized ) { try { synchronized( this ) { // we may be initialized when we enter the sync block if( ! initialized ) init(); } } catch( Exception ex ) { initialized=false; if( ex instanceof ClassNotFoundException ) { ...
public void service(Request req, Response res) { if( ! initialized ) { try { synchronized( this ) { // we may be initialized when we enter the sync block if( ! initialized ) init(); } } catch( Exception ex ) { initialized=false; if( ex instanceof ClassNotFoundException ) { ...
public final void setSource(char[] sourceString){ //the source-buffer is set to sourceString int sourceLength; if (sourceString == null) { this.source = CharOperation.NO_CHAR; sourceLength = 0; } else { this.source = sourceString; sourceLength = sourceString.length; } startPosition = -1; eofPosition = s...
public final void setSource(char[] sourceString){ //the source-buffer is set to sourceString int sourceLength; if (sourceString == null) { this.source = CharOperation.NO_CHAR; sourceLength = 0; } else { this.source = sourceString; sourceLength = sourceString.length; } startPosition = -1; eofPosition = s...
public PropPanelCollaboration() { super("Collaboration", _collaborationIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"),nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.lo...
public PropPanelCollaboration() { super("Collaboration", _collaborationIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"),nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.lo...
public void run() { try { stop(); } catch (Exception e) { TraceCarol.error("JRMPRegistry ShutdownHook problem" ,e); } } }); } else { if (TraceCarol.isDebugJndiCarol()) { TraceCarol.debugJndiCarol("Can't start JRMPRegistry, port="+port+" is < 0"); } }...
public void run() { try { JRMPRegistry.this.stop(); } catch (Exception e) { TraceCarol.error("JRMPRegistry ShutdownHook problem" ,e); } } }); } else { if (TraceCarol.isDebugJndiCarol()) { TraceCarol.debugJndiCarol("Can't start JRMPRegistry, port="+port+" is ...
protected boolean canModifyRoots() { // changing the classpath can modify roots return true; } /* * The resolved classpath of the given project may have changed: * - generate a delta * - trigger indexing * - update project references * - create resolved classpath markers */ protected void classpath...
protected boolean canModifyRoots() { // changing the classpath can modify roots return true; } /* * The resolved classpath of the given project may have changed: * - generate a delta * - trigger indexing * - update project references * - create resolved classpath markers */ protected void classpath...
protected void createMenuEntries(JMenu menu, ListIterator it) { boolean lastWasSeparator = false; while (it.hasNext()) { XmlElement next = (XmlElement) it.next(); String name = next.getName(); if (name.equals("menuitem")) { if (next.getAttribute("action") != null) { try { BasicAction acti...
protected void createMenuEntries(JMenu menu, ListIterator it) { boolean lastWasSeparator = false; while (it.hasNext()) { XmlElement next = (XmlElement) it.next(); String name = next.getName(); if (name.equals("menuitem")) { if (next.getAttribute("action") != null) { try { BasicAction acti...
public boolean press(List potentialKeyStrokes, Event event) { if (DEBUG && DEBUG_VERBOSE) { Tracing.printTrace("KEYS", //$NON-NLS-1$ "WorkbenchKeyboard.press(potentialKeyStrokes = " //$NON-NLS-1$ + potentialKeyStrokes + ')'); } /* * KLUDGE. This works around a couple of specific problems in ho...
public boolean press(List potentialKeyStrokes, Event event) { if (DEBUG && DEBUG_VERBOSE) { Tracing.printTrace("KEYS", //$NON-NLS-1$ "WorkbenchKeyboard.press(potentialKeyStrokes = " //$NON-NLS-1$ + potentialKeyStrokes + ')'); } /* * KLUDGE. This works around a couple of specific problems in ho...
private ImportRewrite(ICompilationUnit cu, CompilationUnit astRoot, List existingImports) { this.compilationUnit= cu; this.astRoot= null; // might be null if (existingImports != null) { this.existingImports= existingImports; this.restoreExistingImports= !existingImports.isEmpty(); } else { this.existi...
private ImportRewrite(ICompilationUnit cu, CompilationUnit astRoot, List existingImports) { this.compilationUnit= cu; this.astRoot= astRoot; // might be null if (existingImports != null) { this.existingImports= existingImports; this.restoreExistingImports= !existingImports.isEmpty(); } else { this.exi...
public String toString() { // don't use + with char[] return new StringBuffer("TypeIndictment("/*nonNLS*/).append(fName).append(")"/*nonNLS*/).toString(); }
public String toString() { // don't use + with char[] return new StringBuffer("TypeIndictment(").append(fName).append(")").toString(); //$NON-NLS-1$ //$NON-NLS-2$ }
public void dateFormat(StringBuffer buf, LoggingEvent event) { if (dateFormat != null) { date.setTime(event.timeStamp); dateFormat.format(date, buf, this.pos); buf.append(' '); } }
public void dateFormat(StringBuffer buf, LoggingEvent event) { if (dateFormat != null) { date.setTime(event.getTimeStamp()); dateFormat.format(date, buf, this.pos); buf.append(' '); } }
public final Binding getTypeOrPackage(char[][] compoundName) { int nameLength = compoundName.length; if (nameLength == 1) { TypeBinding binding = getBaseType(compoundName[0]); if (binding != null) return binding; } Binding binding = getTypeOrPackage(compoundName[0], TYPE | PACKAGE); if (!binding.isVali...
public final Binding getTypeOrPackage(char[][] compoundName) { int nameLength = compoundName.length; if (nameLength == 1) { TypeBinding binding = getBaseType(compoundName[0]); if (binding != null) return binding; } Binding binding = getTypeOrPackage(compoundName[0], TYPE | PACKAGE); if (!binding.isVali...
public void widgetSelected(SelectionEvent e) { //rotate the selected item in and the other items right // don't touch the "Open" item MenuItem menuItem = (MenuItem)e.widget; PerspectiveBarContributionItem contribItem = (PerspectiveBarContributionItem)menuItem.getData("IContributionItem"); //$NON...
public void widgetSelected(SelectionEvent e) { //rotate the selected item in and the other items right // don't touch the "Open" item MenuItem menuItem = (MenuItem)e.widget; PerspectiveBarContributionItem contribItem = (PerspectiveBarContributionItem)menuItem.getData("IContributionItem"); //$NON...
public void generateSyntheticEnclosingInstanceValues(BlockScope currentScope, ReferenceBinding targetType, Expression enclosingInstance, AstNode invocationSite) { // supplying enclosing instance for the anonymous type's superclass ReferenceBinding checkedTargetType = targetType.isAnonymousType() ? targetType.supercl...
public void generateSyntheticEnclosingInstanceValues(BlockScope currentScope, ReferenceBinding targetType, Expression enclosingInstance, AstNode invocationSite) { // supplying enclosing instance for the anonymous type's superclass ReferenceBinding checkedTargetType = targetType.isAnonymousType() ? targetType.supercl...
public void delete( ScarabUser user ) throws Exception { ScarabModule module = (ScarabModule)getScarabModule(); if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module)) { Criteria c = new Criteria() .add(RModuleOptionPeer.MODULE_I...
public void delete( ScarabUser user ) throws Exception { ModuleEntity module = getScarabModule(); if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module)) { Criteria c = new Criteria() .add(RModuleOptionPeer.MODULE_ID, getModuleId...
public Vector rowObjectsFor(Object t) { if (!(t instanceof UMLUseCaseDiagram)) return new Vector(); UMLUseCaseDiagram d = (UMLUseCaseDiagram) t; Vector nodes = d.getGraphModel().getNodes(); Vector res = new Vector(); int size = nodes.size(); for (int i = 0; i < size; i++) { Object node =...
public Vector rowObjectsFor(Object t) { if (!(t instanceof UMLUseCaseDiagram)) return new Vector(); UMLUseCaseDiagram d = (UMLUseCaseDiagram) t; Vector nodes = d.getNodes(); Vector res = new Vector(); int size = nodes.size(); for (int i = 0; i < size; i++) { Object node = nodes.elementAt...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderItem ite...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderItem ite...
protected void buildSupertypes() { IType focusType = this.getType(); if (focusType == null) return; // get generic type from focus type IGenericType type; try { type = (IGenericType) ((JavaElement) focusType).getRawInfo(); } catch (JavaModelException e) { // if the focus type is not present, or ...
protected void buildSupertypes() { IType focusType = this.getType(); if (focusType == null) return; // get generic type from focus type IGenericType type; try { type = (IGenericType) ((JavaElement) focusType).getRawInfo(); } catch (JavaModelException e) { // if the focus type is not present, or ...
public String stringValue() { //spec 15.17.11 String s = new Boolean(value).toString() ; if (s == null) return "null"; //$NON-NLS-1$ else return s; }
public String stringValue() { //spec 15.17.11 String s = Boolean.valueOf(value).toString() ; if (s == null) return "null"; //$NON-NLS-1$ else return s; }
public Name(DNSInput in) throws WireParseException { int len, pos, currentpos; Name name2; boolean done = false; byte [] label = new byte[MAXLABEL + 1]; boolean savedState = false; while (!done) { len = in.readU8(); switch (len & LABEL_MASK) { case LABEL_NORMAL: if (getlabels() >= MAXLABELS) throw n...
public Name(DNSInput in) throws WireParseException { int len, pos, currentpos; Name name2; boolean done = false; byte [] label = new byte[MAXLABEL + 1]; boolean savedState = false; while (!done) { len = in.readU8(); switch (len & LABEL_MASK) { case LABEL_NORMAL: if (getlabels() >= MAXLABELS) throw n...
public void addCustomEntriesToTable(UIDefaults table) { Object map[] = { "ButtonUI", thinPackage + "ThinButtonUI", "CheckBoxUI", thinPackage + "ThinCheckBoxUI", "CheckBoxMenuItemUI", thinPackage + "ThinCheckBoxMenuItemUI", "ComboBoxUI", thinPackage + "ThinComboBoxUI", "DesktopI...
public void addCustomEntriesToTable(UIDefaults table) { Object map[] = { "ButtonUI", thinPackage + "ThinButtonUI", "CheckBoxUI", thinPackage + "ThinCheckBoxUI", "CheckBoxMenuItemUI", thinPackage + "ThinCheckBoxMenuItemUI", "ComboBoxUI", thinPackage + "ThinComboBoxUI", "DesktopI...
public boolean startExternalEditor(AbstractEditorController EditCtrl) throws IOException { /* * *20030906, karlpeder* Method signature changed to take an * AbstractEditorController (instead of an TextEditorView) as parameter * since the view is no longer directly available */ MimeHeader myHeader = new ...
public boolean startExternalEditor(AbstractEditorController EditCtrl) throws IOException { /* * *20030906, karlpeder* Method signature changed to take an * AbstractEditorController (instead of an TextEditorView) as parameter * since the view is no longer directly available */ MimeHeader myHeader = new ...
public void analyseCode( ClassScope classScope, InitializationFlowContext staticInitializerFlowContext, FlowInfo flowInfo) { if (ignoreFurtherInvestigation) return; try { ExceptionHandlingFlowContext clinitContext = new ExceptionHandlingFlowContext( staticInitializerFlowContext.parent, t...
public void analyseCode( ClassScope classScope, InitializationFlowContext staticInitializerFlowContext, FlowInfo flowInfo) { if (ignoreFurtherInvestigation) return; try { ExceptionHandlingFlowContext clinitContext = new ExceptionHandlingFlowContext( staticInitializerFlowContext.parent, t...
public ShutdownDialog() throws Exception{ super(GlobalResourceLoader.getString(RESOURCE_PATH, "session", "exit_title")); JLabel icon = new JLabel(); icon.setIcon(ImageLoader.getImageIcon("out-of-office-48.png")); JLabel text = new JLabel(GlobalResourceLoader.getStri...
public ShutdownDialog() throws Exception{ super(GlobalResourceLoader.getString(RESOURCE_PATH, "session", "exit_title")); JLabel icon = new JLabel(); icon.setIcon(ImageLoader.getMiscIcon("out-of-office-48.png")); JLabel text = new JLabel(GlobalResourceLoader.getStrin...
protected boolean validatePage() { boolean valid = true; IWorkspace workspace = WorkbenchPlugin.getPluginWorkspace(); IStatus nameStatus = null; String folderName = resourceGroup.getResource(); if (folderName.indexOf(IPath.SEPARATOR) != -1) { StringTokenizer tok = new StringTokenizer(folderName...
protected boolean validatePage() { boolean valid = true; IWorkspace workspace = WorkbenchPlugin.getPluginWorkspace(); IStatus nameStatus = null; String folderName = resourceGroup.getResource(); if (folderName.indexOf(IPath.SEPARATOR) != -1) { StringTokenizer tok = new StringTokenizer(folderName...
public TypeBinding resolveType(BlockScope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. this.constant = Constant.NotAConstant; if (this.type == null) { // initialization of an enum constant this.resolvedType = scope.enclosingReceiverType(); } else { this.re...
public TypeBinding resolveType(BlockScope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. this.constant = Constant.NotAConstant; if (this.type == null) { // initialization of an enum constant this.resolvedType = scope.enclosingReceiverType(); } else { this.re...
public String toString(int tab) { /* slow code */ String s = tabString(tab); s += new String(label) + ": " + statement.toString(0); //$NON-NLS-1$ return s; }
public String toString(int tab) { /* slow code */ String s = tabString(tab); s += new String(label) + ": "/*nonNLS*/ + statement.toString(0); return s; }
private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString) { IPath jarPath= new Path(jarPathString); JavaModel javaModel= this.manager.getJavaModel(this.workspaceRoot.getWorkspace()); IResource jarFile= this.workspaceRoot.findMember(jarPath); if (jarFile != null) { // internal jar return j...
private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString) { IPath jarPath= new Path(jarPathString); JavaModel javaModel= this.manager.getJavaModel(this.workspaceRoot.getWorkspace()); IResource jarFile= this.workspaceRoot.findMember(jarPath); if (jarFile != null) { // internal jar return j...
public String getOS() { return os; } byte[] rrToWire(Compression c) throws IOException { if (cpu == null || os == null) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); ds.writeString(cpu); ds.writeString(os); return bs.toByt...
public String getOS() { return os; } byte[] rrToWire(Compression c, int index) throws IOException { if (cpu == null || os == null) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); ds.writeString(cpu); ds.writeString(os); retu...
public EnhancedMenuItem(String label, EditAction action) { this.action = action; this.shortcut = getShortcut(); if(OperatingSystem.isMacOSLF() && shortcut != null) { setText(label + " (" + shortcut + ")"); shortcut = null; } else setText(label); if(action != null) { setEnabled(true); a...
public EnhancedMenuItem(String label, EditAction action) { this.action = action; this.shortcut = getShortcut(); if(OperatingSystem.hasScreenMenuBar() && shortcut != null) { setText(label + " (" + shortcut + ")"); shortcut = null; } else setText(label); if(action != null) { setEnabled(true...
public WorkbenchEditorsAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("WorkbenchEditorsAction.label")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; // @issue missing action id ...
public WorkbenchEditorsAction(IWorkbenchWindow window) { super(WorkbenchMessages.WorkbenchEditorsAction_label); if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; // @issue missing action id workbenchWindow.getWork...
public class dnsNSRecord extends dnsNS_CNAME_PTR_Record { public class dnsNSRecord extends dnsNS_CNAME_MX_Record { public dnsNSRecord(dnsName rname, short rclass) { super(rname, dns.NS, rclass); } public dnsNSRecord(dnsName rname, short rclass, int rttl, dnsName name) { super(rname, dns.NS, rclass, rttl, name); } ...
public class dnsNSRecord extends dnsNS_CNAME_PTR_Record { public class dnsNSRecord extends dnsNS_CNAME_PTR_Record { public dnsNSRecord(dnsName rname, short rclass) { super(rname, dns.NS, rclass); } public dnsNSRecord(dnsName rname, short rclass, int rttl, dnsName name) { super(rname, dns.NS, rclass, rttl, name); }...
public void updateGUI() throws Exception { MimeTypeViewer viewer = new MimeTypeViewer(); viewer.openWith(header, tempFile); }
public void updateGUI() throws Exception { MimeTypeViewer viewer = new MimeTypeViewer(); viewer.openWith(header, tempFile, false); }
public int doRead() throws IOException { if(pos > blen) { refeelReadBuffer(); } return bodyBuff[pos++]; }
public int doRead() throws IOException { if(pos >= blen) { refeelReadBuffer(); } return bodyBuff[pos++]; }
private int matchLevel(QualifiedNameReference qNameRef, boolean resolve) { if (!resolve) { if (this.pkgName == null) { return POSSIBLE_MATCH; } else { switch (this.matchMode) { case EXACT_MATCH: case PREFIX_MATCH: if (CharOperation.prefixEquals(this.pkgName, CharOperation.concatWith(qNameRef.tok...
private int matchLevel(QualifiedNameReference qNameRef, boolean resolve) { if (!resolve) { if (this.pkgName == null) { return POSSIBLE_MATCH; } else { switch (this.matchMode) { case EXACT_MATCH: case PREFIX_MATCH: if (CharOperation.prefixEquals(this.pkgName, CharOperation.concatWith(qNameRef.tok...
public static final String manglePackage( String s ) { for (int i = 0; i < keywords.length; i++) { char fs = File.separatorChar; int index = s.indexOf(keywords[i]); if(index == -1 ) continue; while (index != -1) { int endIdx=index+keywords[i].length(); System.o...
public static final String manglePackage( String s ) { for (int i = 0; i < keywords.length; i++) { char fs = File.separatorChar; int index = s.indexOf(keywords[i]); if(index == -1 ) continue; while (index != -1) { int endIdx=index+keywords[i].length(); // Sys...
protected void closing(Object info) throws JavaModelException { if (JavaModelManager.VERBOSE){ System.out.println("CLOSING Element ("+ Thread.currentThread()+"): " + this.getHandleIdentifier()); } JavaModelManager.fgManager.fModelInfo.close(); JavaModelManager.fgManager.fModelInfo= null; }
protected void closing(Object info) throws JavaModelException { if (JavaModelManager.VERBOSE){ System.out.println("CLOSING Element ("+ Thread.currentThread()+"): " + this.getHandleIdentifier()); //$NON-NLS-1$//$NON-NLS-2$ } JavaModelManager.fgManager.fModelInfo.close(); JavaModelManager.fgManager.fModelInfo= nul...
private void deletePackageFragment(IPackageFragment frag) throws JavaModelException { IResource res = frag.getResource(); if (res != null) { // collect the children to remove IJavaElement[] childrenOfInterest = frag.getChildren(); if (childrenOfInterest.length > 0) { IResource[] resources = new IResource[ch...
private void deletePackageFragment(IPackageFragment frag) throws JavaModelException { IResource res = frag.getResource(); if (res != null) { // collect the children to remove IJavaElement[] childrenOfInterest = frag.getChildren(); if (childrenOfInterest.length > 0) { IResource[] resources = new IResource[ch...
public void optimizeBranch(int oldPosition, BranchLabel lbl) { for (int i = 0; i < this.countLabels; i++) { BranchLabel label = this.labels[i]; if (oldPosition == label.position) { label.position = position; if (label instanceof CaseLabel) { int offset = position - ((CaseLabel) label).instructionPosition...
public void optimizeBranch(int oldPosition, BranchLabel lbl) { for (int i = 0; i < this.countLabels; i++) { BranchLabel label = this.labels[i]; if (oldPosition == label.position) { label.position = position; if (label instanceof CaseLabel) { int offset = position - ((CaseLabel) label).instructionPosition...
extends org.tigris.scarab.om.BaseAttributeOptionPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache....
extends org.tigris.scarab.om.BaseAttributeOptionPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache....
protected synchronized AbstractFilter getFilter(String type) { ColumbaLogger.log.debug( "trying to re-use cached instanciation =" + type); // try to re-use already instanciated class if (filterCache.containsKey(type) == true) return (AbstractFilter) filterCache.get(type); ColumbaLogger.log.debug("load...
protected synchronized AbstractFilter getFilter(String type) { ColumbaLogger.log.debug( "trying to re-use cached instanciation =" + type); // try to re-use already instanciated class if (filterCache.containsKey(type) == true) return (AbstractFilter) filterCache.get(type); ColumbaLogger.log.debug("load...
public InputStream getContents() throws CoreException { try { if (JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("Creating ZipFile on " + this.zipName + " [JavaModelJarEntryFile.getContents()]"); //$NON-NLS-1$ //$NON-NLS-2$ } ZipFile zipFile = new ZipFile(this.zipName); ZipEntry zipEntry = zip...
public InputStream getContents() throws CoreException { try { if (JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("[JavaModelJarEntryFile.getContents()] Creating ZipFile on " + this.zipName); //$NON-NLS-1$ } ZipFile zipFile = new ZipFile(this.zipName); ZipEntry zipEntry = zipFile.getEntry(this.e...
public void addData(byte [] b, int offset, int length) { if (length < offset || offset >= b.length || length >= b.length) return; /* printByteString("partial add", b, offset, length);*/ bytes.write(b, offset, length); }
public void addData(byte [] b, int offset, int length) { if (length <= 0 || offset + length >= b.length) return; /* printByteString("partial add", b, offset, length);*/ bytes.write(b, offset, length); }
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public TableUpdateJob(Table table, int count) { super(WorkbenchMessages.getString("FilteredList.UpdateJobName")); //$NON-NLS-1$ setSystem(true); fTable = table; fCount = count; }
public TableUpdateJob(Table table, int count) { super(WorkbenchMessages.FilteredList_UpdateJobName); setSystem(true); fTable = table; fCount = count; }
public Object getContext(String key, Object data) throws PolicyContextException { Object context = null; if( key.equalsIgnoreCase(EJB_CONTEXT_KEY) == false ) context = ejbContext.get(); return context; }
public Object getContext(String key, Object data) throws PolicyContextException { Object context = null; if( key.equalsIgnoreCase(EJB_CONTEXT_KEY) == true ) context = ejbContext.get(); return context; }
public int getNodeType() { return RETURN_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ReturnStatement result = new ReturnStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); ...
public int getNodeType() { return RETURN_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ReturnStatement result = new ReturnStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); ...
public static void setTheme() { // get configuration XmlElement themeConfig = Config.getInstance().get("options") .getElement("/options/gui/theme"); if (themeConfig == null) { XmlElement themeParent = Config.getInstance().get("options") .getElement("/options/gui"); themeConfig = new XmlElement("t...
public static void setTheme() { // get configuration XmlElement themeConfig = Config.getInstance().get("options") .getElement("/options/gui/theme"); if (themeConfig == null) { XmlElement themeParent = Config.getInstance().get("options") .getElement("/options/gui"); themeConfig = new XmlElement("t...
public AbstractElement[] getElements() { if (cachedElements == null) { BindingService bindingService = (BindingService) PlatformUI .getWorkbench().getService(IBindingService.class); Binding[] bindings = bindingService.getBindings(); SortedSet commandSet = new TreeSet(); for (int i = 0; i < bindings....
public AbstractElement[] getElements() { if (cachedElements == null) { BindingService bindingService = (BindingService) PlatformUI .getWorkbench().getService(IBindingService.class); Binding[] bindings = bindingService.getBindings(); SortedSet commandSet = new TreeSet(); for (int i = 0; i < bindings....
public TypeBinding resolveType(BlockScope scope) { boolean expressionIsCast; if ((expressionIsCast = this.expression instanceof CastExpression) == true) this.expression.bits |= IgnoreNeedForCastCheckMASK; // will check later on TypeBinding expressionType = this.expression.resolveType(scope); if (expressionT...
public TypeBinding resolveType(BlockScope scope) { boolean expressionIsCast; if ((expressionIsCast = this.expression instanceof CastExpression) == true) this.expression.bits |= DisableUnnecessaryCastCheck; // will check later on TypeBinding expressionType = this.expression.resolveType(scope); if (expression...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); // display status message worker.setDisplayText( MailResourceLoader.getString( "statusbar", "message", "send_message")); // get Outbox folder from reference ...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); // display status message worker.setDisplayText( MailResourceLoader.getString( "statusbar", "message", "send_message")); // get Outbox folder from reference ...
public void actionPerformed(ActionEvent evt) { new SubscribeDialog(rootFolder); }
public void actionPerformed(ActionEvent evt) { new SubscribeDialog( getFrameMediator().getView().getFrame(), rootFolder); }
public void actionPerformed(ActionEvent evt) { Folder searchFolder = (Folder) MailInterface.treeModel.getFolder(106); SearchFrame frame = new SearchFrame( (AbstractMailFrameController) getFrameController(), searchFolder); }
public void actionPerformed(ActionEvent evt) { Folder searchFolder = (Folder) MailInterface.treeModel.getFolder(106); SearchFrame frame = new SearchFrame( (AbstractMailFrameController) getFrameMediator(), searchFolder); }
public Object getElementInfo(IProgressMonitor monitor) throws JavaModelException { return infoCache.get(this); }
public Object getElementInfo(IProgressMonitor monitor) throws JavaModelException { return this.infoCache.get(this); }
public TypeBinding resolveType(BlockScope scope) { constant = Constant.NotAConstant; // X.this is not a param/raw type as denoting enclosing instance TypeBinding type = this.qualification.resolveType(scope, true /* check bounds*/); if (type == null) return null; // X.this is not a param/raw type as denoting...
public TypeBinding resolveType(BlockScope scope) { constant = Constant.NotAConstant; // X.this is not a param/raw type as denoting enclosing instance TypeBinding type = this.qualification.resolveType(scope, true /* check bounds*/); if (type == null || !type.isValidBinding()) return null; // X.this is not a ...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(getCommandDelegateService(), getContextActivationService()); if (this instanceof EditorSite) { EditorActionBuilder.ExternalContributor contributor = (EditorActionBuilder.Externa...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(getCommandDelegateService(), getContextActivationService()); if (this instanceof EditorSite) { EditorActionBuilder.ExternalContributor contributor = (EditorActionBuilder.Externa...
protected void consumeToken(int type) { /* remember the last consumed value */ /* try to minimize the number of build values */ if (scanner.wasNonExternalizedStringLiteral) { StringLiteral[] literals = this.scanner.nonNLSStrings; // could not reproduce, but this is the only NPE // added preventive null check s...
protected void consumeToken(int type) { /* remember the last consumed value */ /* try to minimize the number of build values */ if (scanner.wasNonExternalizedStringLiteral) { StringLiteral[] literals = this.scanner.nonNLSStrings; // could not reproduce, but this is the only NPE // added preventive null check s...
public String toString() { return "image"/*nonNLS*/; }
public String toString() { return "image"; //$NON-NLS-1$ }
private static Object lookup(String identifier) { Object da = instances.get(identifier); if (da == null) { // There is an implicit race condition here. Worst case // we create extra instances of our DA impl, and/or more // than one HashMap. In either...
private static Object lookup(String identifier) { Object da = instances.get(identifier); if (da == null) { // There is an implicit race condition here. Worst case // we create extra instances of our DA impl, and/or more // than one HashMap. In either...
public MessageFolder(String name, String type, String path) { super(name, type); String dir = path + getUid(); if (DiskIO.ensureDirectory(dir)) { directoryFile = new File(dir); } loadMessageFolderInfo(); }
public MessageFolder(String name, String type, String path) { super(name, type); String dir = path + System.getProperty("file.separator")+getUid(); if (DiskIO.ensureDirectory(dir)) { directoryFile = new File(dir); } loadMessageFolderInfo(); }
public RawTypeBinding(ReferenceBinding type, ReferenceBinding enclosingType, LookupEnvironment environment){ super(type, null, enclosingType, environment); if (enclosingType == null || (enclosingType.modifiers & AccGenericSignature) == 0) this.modifiers ^= AccGenericSignature; // only need signature if enclosin...
public RawTypeBinding(ReferenceBinding type, ReferenceBinding enclosingType, LookupEnvironment environment){ super(type, null, enclosingType, environment); if (enclosingType == null || (enclosingType.modifiers & AccGenericSignature) == 0) this.modifiers &= ~AccGenericSignature; // only need signature if enclosi...
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action.equals("OK")) //$NON-NLS-1$ { identityPanel.updateComponents(false); incomingServerPanel.updateComponents(false); receiveOptionsPanel.updateComponents(false); outgoingServerPanel.updateComponents(false); ...
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action.equals("OK")) //$NON-NLS-1$ { identityPanel.updateComponents(false); incomingServerPanel.updateComponents(false); receiveOptionsPanel.updateComponents(false); outgoingServerPanel.updateComponents(false); ...
public UMLList2(UMLModelElementListModel2 dataModel, boolean showIcon) { super(dataModel); setDoubleBuffered(true); getSelectionModel().addListSelectionListener(this); setCellRenderer(new UMLListCellRenderer2(showIcon)); }
public UMLList2(UMLModelElementListModel2 dataModel, boolean showIcon) { super(dataModel); // setDoubleBuffered(true); getSelectionModel().addListSelectionListener(this); setCellRenderer(new UMLListCellRenderer2(showIcon)); }
public void updateGUI() throws Exception { removeAll(); image = new ImageIcon(Toolkit.getDefaultToolkit().createImage(data)); //image = new ImageIcon(data); Container parent = mediator.getViewport(); int cwidth = (int) parent.getWidth(); // if image is bigger than message viewer size if (cwidth < ima...
public void updateGUI() throws Exception { removeAll(); image = new ImageIcon(Toolkit.getDefaultToolkit().createImage(data)); //image = new ImageIcon(data); Container parent = mediator; int cwidth = (int) parent.getWidth(); // if image is bigger than message viewer size if (cwidth < image.getIconWidt...
public String getSource() throws JavaModelException { IOpenable openable = getOpenableParent(); IBuffer buffer = openable.getBuffer(); if (buffer == null) { return null; } ISourceRange range = getSourceRange(); int offset = range.getOffset(); int length = range.getLength(); if (offset == -1 || lengt...
public String getSource() throws JavaModelException { IOpenable openable = this.parent.getOpenableParent(); IBuffer buffer = openable.getBuffer(); if (buffer == null) { return null; } ISourceRange range = getSourceRange(); int offset = range.getOffset(); int length = range.getLength(); if (offset ==...
public void resolve(BlockScope scope) { TypeBinding type = condition.resolveTypeExpecting(scope, BooleanBinding); condition.computeConversion(scope, type, type); if (thenStatement != null) thenStatement.resolve(scope); if (elseStatement != null) elseStatement.resolve(scope); }
public void resolve(BlockScope scope) { TypeBinding type = condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN); condition.computeConversion(scope, type, type); if (thenStatement != null) thenStatement.resolve(scope); if (elseStatement != null) elseStatement.resolve(scope); }
public static final String COLOR_ACTIVITY_HIGHLIGHT = "org.eclipse.ui.activityHighlight"; //$NON-NLS-1$ }
public static final String COLOR_HIGHLIGHT = "org.eclipse.ui.highlight"; //$NON-NLS-1$ }
public IPackage[] getReferencingPackages(IImageContext context) throws NotPresentException { if (!isPresent()) throw new NotPresentException(Util.bind("element.notPresent")); //$NON-NLS-1$ IPackage[] pkgs = fState.getReferencingPackages(fHandle, context); /* wrap packages in state */ for (int i = 0; i...
public IPackage[] getReferencingPackages(IImageContext context) throws NotPresentException { if (!isPresent()) throw new NotPresentException(Util.bind("element.notPresent"/*nonNLS*/)); IPackage[] pkgs = fState.getReferencingPackages(fHandle, context); /* wrap packages in state */ for (int i = 0; i < p...
public void updateContext() { String targetName = "" + _target; if (_target instanceof MElement) { MModelElement e = (MModelElement) _target; String ocl = ""; if (e instanceof MElementImpl) ocl = ((MElementImpl)e).getUMLClassName(); targetName = e.getName(); if (targetName.equals...
public void updateContext() { String targetName = "" + _target; if (_target instanceof MElement) { MModelElement e = (MModelElement) _target; String ocl = ""; if (e instanceof MElement) ocl = ((MElementImpl)e).getUMLClassName(); targetName = e.getName(); if (targetName.equals("")...
extends org.tigris.scarab.om.BaseTurbineUserPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.turb...
extends org.tigris.scarab.om.BaseTurbineUserPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.turb...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // initialize break and continue labels breakLabel = new Label(); continueLabel = new Label(); // process the element variable and collection flowInfo = this.elementVariable.analyseCode(scope, flowConte...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // initialize break and continue labels breakLabel = new Label(); continueLabel = new Label(); // process the element variable and collection flowInfo = this.elementVariable.analyseCode(scope, flowConte...
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 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("."); //$NON-NLS-1$ } } return buffer.toString(); }
public String toStringStatements(int tab) { if (this.statements == null) return ""; //$NON-NLS-1$ StringBuffer buffer = new StringBuffer(); for (int i = 0; i < statements.length; i++) { buffer.append(statements[i].toString(tab + 1)); if (statements[i] instanceof Block) { buffer.append("\n"); //$NON...
public String toStringStatements(int tab) { if (this.statements == null) return ""; //$NON-NLS-1$ StringBuffer buffer = new StringBuffer(); for (int i = 0; i < statements.length; i++) { buffer.append(statements[i].toString(tab + 1)); if (statements[i] instanceof Block || statements[i] instanceof EmptyS...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, boolean valueRequired) { switch (this.bits & RestrictiveFlagMASK) { case Binding.FIELD : // reading a field // check if reading a final blank field FieldBinding fieldBinding; if ((fieldBinding = (FieldBinding) ...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, boolean valueRequired) { switch (this.bits & RestrictiveFlagMASK) { case Binding.FIELD : // reading a field // check if reading a final blank field FieldBinding fieldBinding; if ((fieldBinding = (FieldBinding) ...
public static void log(Throwable e, String message) { Throwable nestedException; if (e instanceof JavaModelException && (nestedException = ((JavaModelException)e).getException()) != null) { e = nestedException; } IStatus status= new Status( IStatus.ERROR, JavaCore.getPlugin().getDescriptor().get...
public static void log(Throwable e, String message) { Throwable nestedException; if (e instanceof JavaModelException && (nestedException = ((JavaModelException)e).getException()) != null) { e = nestedException; } IStatus status= new Status( IStatus.ERROR, JavaCore.PLUGIN_ID, IStatus.ERROR,
public static final int ACCEPT = 1; /** Points to the next filter in the filter chain. @deprecated As of 1.2.11, use {@link #getNext} and {@link #setNext} instead */
public static final int ACCEPT = 1; /** Points to the next filter in the filter chain. @deprecated As of 1.2.12, use {@link #getNext} and {@link #setNext} instead */
private void maybeShowPopup(MouseEvent e) { if (e.isPopupTrigger()) { if (getView().countSelected() == 0) { getView().select(e.getPoint(), 0); } getPopupMenu().show(e.getComponent(), e.getX(), e.getY()); } } }
private void maybeShowPopup(MouseEvent e) { if (e.isPopupTrigger()) { if (getView().countSelected() <= 1) { getView().select(e.getPoint(), 0); } getPopupMenu().show(e.getComponent(), e.getX(), e.getY()); } } }
private ProjectBrowser(String appName, boolean doSplash) { super(appName); TheInstance = this; if (doSplash) { _splash = new SplashScreen("Loading ArgoUML...", "Splash"); _splash.getStatusBar().showStatus("Making Project Browser"); _splash.getStatusBar().s...
private ProjectBrowser(String appName, boolean doSplash) { super(appName); TheInstance = this; if (doSplash) { _splash = new SplashScreen("Loading ArgoUML...", "Splash"); _splash.getStatusBar().showStatus("Making Project Browser"); _splash.getStatusBar().s...
public static void main(String argv[]) { if(argv.length == 1) init(argv[0]); else usage("Wrong number of arguments."); NDC.push("some context"); test(); } static void usage(String msg) { System.err.println(msg); System.err.println("Usage: java " + SMTPMin.class.getName(...
public static void main(String argv[]) { if(argv.length == 1) init(argv[0]); else usage("Wrong number of arguments."); NDC.push("some context"); test(); } static void usage(String msg) { System.err.println(msg); System.err.println("Usage: java " + SMTPMin.class.getName(...
// abstract private methods cannot occur nor abstract static............ } if (isMethodUseDeprecated(binding, scope)) scope.problemReporter().deprecatedMethod(binding, this); return this.expressionType = binding.returnType; }
// abstract private methods cannot occur nor abstract static............ } if (isMethodUseDeprecated(binding, scope)) scope.problemReporter().deprecatedMethod(binding, this); return this.resolvedType = binding.returnType; }