buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public boolean exists() { return super.exists() && isOnClasspath(); } /* * Returns the exclusion patterns from the classpath entry associated with this root. */ char[][] getExclusionPatterns() { try { ClasspathEntry entry = (ClasspathEntry)getRawClasspathEntry(); if (entry == null) { return null; } el...
public boolean exists() { return super.exists() && isOnClasspath(); } /* * Returns the exclusion patterns from the classpath entry associated with this root. */ char[][] getExclusionPatterns() { try { ClasspathEntry entry = (ClasspathEntry)getRawClasspathEntry(); if (entry == null) { return null; } el...
public TypeBinding getOtherFieldBindings(BlockScope scope) { // At this point restrictiveFlag may ONLY have two potential value : FIELD LOCAL (i.e cast <<(VariableBinding) binding>> is valid) int length = this.tokens.length; FieldBinding field; if ((this.bits & Binding.FIELD) != 0) { field = (FieldBinding) this.b...
public TypeBinding getOtherFieldBindings(BlockScope scope) { // At this point restrictiveFlag may ONLY have two potential value : FIELD LOCAL (i.e cast <<(VariableBinding) binding>> is valid) int length = this.tokens.length; FieldBinding field; if ((this.bits & Binding.FIELD) != 0) { field = (FieldBinding) this.b...
public int nullStatus(FlowInfo flowInfo) { return FlowInfo.UNKNOWN; }
public int nullStatus(FlowInfo flowInfo) { return FlowInfo.NON_NULL; }
public String generate(Object o) { if (o instanceof Operation) return generateOperation((Operation) o); if (o instanceof Attribute) return generateAttribute((Attribute) o); if (o instanceof Parameter) return generateParameter((Parameter) o); if (o instanceof Package) return gen...
public String generate(Object o) { if (o instanceof Operation) return generateOperation((Operation) o); if (o instanceof Attribute) return generateAttribute((Attribute) o); if (o instanceof Parameter) return generateParameter((Parameter) o); if (o instanceof Package) return gen...
public X25Record(Name name, int dclass, long ttl, String address) { super(name, Type.X25, dclass, ttl); this.address = checkAndConvertAddress(address); if (this.address == null) { throw new IllegalArgumentException("invalid PSDN address " + address); } } void rrFromWire(DNSInput in) throws IOException {...
public X25Record(Name name, int dclass, long ttl, String address) { super(name, Type.X25, dclass, ttl); this.address = checkAndConvertAddress(address); if (this.address == null) { throw new IllegalArgumentException("invalid PSDN address " + address); } } void rrFromWire(DNSInput in) throws IOException {...
package org.apache.log4j.examples; package org.log4j.examples; import java.rmi.Remote; import java.rmi.RemoteException; /** NumberCruncher's factor positive integers. See <a href=doc-files/NumberCruncher.java>source</a> code for more details. @author Ceki G&uuml;lc&uuml; */ public interface NumberCrun...
package org.apache.log4j.examples; package org.apache.log4j.examples; import java.rmi.Remote; import java.rmi.RemoteException; /** NumberCruncher's factor positive integers. See <a href=doc-files/NumberCruncher.java>source</a> code for more details. @author Ceki G&uuml;lc&uuml; */ public interface Num...
public void testMain() { CheckResourceBundle.checkResourceBundle(this, new MenuResourceBundle()); }
public void testMain() { CheckResourceBundle.checkResourceBundle(this, "org.argouml.i18n.MenuResourceBundle"); }
public char[] getContents() { if (this.source != null) return this.source; if (this.openable instanceof ClassFile) { String fileName = getSourceFileName(); if (fileName == NO_SOURCE_FILE_NAME) return null; SourceMapper sourceMapper = this.openable.getSourceMapper(); IType type = ((ClassFile) this.openable)....
public char[] getContents() { if (this.source != null) return this.source; if (this.openable instanceof ClassFile) { String fileName = getSourceFileName(); if (fileName == NO_SOURCE_FILE_NAME) return CharOperation.NO_CHAR; SourceMapper sourceMapper = this.openable.getSourceMapper(); IType type = ((ClassFile...
public void exportObject(Remote obj) throws RemoteException { try { Method exportO = unicastClass.getMethod("exportObject", new Class [] { Remote.class, Integer.TYPE }); exportO.invoke(unicastClass, (new Object[] { obj , new Integer(port)} )); } catch (Exception e) { throw new RemoteException(e.to...
public void exportObject(Remote obj) throws RemoteException { try { Method exportO = unicastClass.getMethod("exportObject", new Class [] { Remote.class, Integer.TYPE }); exportO.invoke(unicastClass, (new Object[] { obj , new Integer(port)} )); } catch (Exception e) { throw new RemoteException(e.to...
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 static void main( String[] argv) { String configFile = null; if(argv.length == 1) configFile = argv[0]; else Usage("Wrong number of arguments."); //try { //DOMParser domParser = new DOMParser(); //domParser.setFeature("http://xml.org/sax/features/validation", tr...
public static void main( String[] argv) { String configFile = null; if(argv.length == 1) configFile = argv[0]; else Usage("Wrong number of arguments."); //try { //DOMParser domParser = new DOMParser(); //domParser.setFeature("http://xml.org/sax/features/validation", tr...
public PropPanelClass() { super("Class", ConfigLoader.getTabPropsOrientation()); Class mclass = MClass.class; addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip....
public PropPanelClass() { super("Class", ConfigLoader.getTabPropsOrientation()); Class mclass = MClass.class; addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip....
extends BaseTransaction package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils; i...
extends BaseTransaction package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils; i...
public SystemMenuClose(IStackPresentationSite site) { this.site = site; setText(WorkbenchMessages.getString("PartPane.close")); //$NON-NLS-1$ }
public SystemMenuClose(IStackPresentationSite site) { this.site = site; setText(WorkbenchMessages.PartPane_close); }
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrok...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrok...
public PropPanelFinalState() { super("Final State",_finalStateIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.na...
public PropPanelFinalState() { super("Final State",_finalStateIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.na...
public void send(String str) throws Exception { inputStream.println(str); inputStream.flush(); //out.close(); }
public void send(String str) throws Exception { inputStream.println(str); inputStream.flush(); inputStream.close(); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] references = (FolderCommandReference[]) getFrameMediator() .getSelectionManager() ...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] references = (FolderCommandReference[]) getFrameMediator() .getSelectionManager() ...
public void resolve(BlockScope scope) { TypeBinding type = condition.resolveTypeExpecting(scope, BooleanBinding); condition.implicitWidening(type, type); if (action != null) action.resolve(scope); }
public void resolve(BlockScope scope) { TypeBinding type = condition.resolveTypeExpecting(scope, BooleanBinding); condition.computeConversion(scope, type, type); if (action != null) action.resolve(scope); }
public boolean trySave (boolean overwrite) { URL url = ProjectManager.getManager().getCurrentProject().getURL(); return trySave(overwrite, new File(url.getFile())); }
public boolean trySave (boolean overwrite) { URL url = ProjectManager.getManager().getCurrentProject().getURL(); return url == null ? false : trySave(overwrite, new File(url.getFile())); }
public static String id() { return "@version@"; }
public static String id() { return "3.7"; }
protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException { // check whether the class file can be opened IStatus status = validateClassFile(); if (!status.isOK()) throw newJavaModelException(status); if (underlyingResour...
protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException { // check whether the class file can be opened IStatus status = validateClassFile(); if (!status.isOK()) throw newJavaModelException(status); if (underlyingResour...
public int getNodeType() { return METHOD_REF; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { MethodRef result = new MethodRef(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Name) ASTNode.copySubtree(targe...
public int getNodeType() { return METHOD_REF; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { MethodRef result = new MethodRef(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Name) ASTNode.copySubtree(targ...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof MessageSend)) return IMPOSSIBLE_MATCH; MessageSend messageSend = (MessageSend)node; if (resolve) { return this.matchLevel(messageSend.binding, messageSend); } else { // selector if (this.selector != null && !this.matchesName(this.se...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof MessageSend)) return IMPOSSIBLE_MATCH; MessageSend messageSend = (MessageSend)node; if (resolve) { return this.matchLevel(messageSend.binding, messageSend); } else { // selector if (this.selector != null && !this.matchesName(this.se...
public synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { Class c= findLoadedClass(name); if (c != null) return c; // // Delegate the loading of excluded classes to the // standard class loader. // if (isExcluded(name)) { try { c= findSystemClass(na...
public synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { Class c= findLoadedClass(name); if (c != null) return c; // // Delegate the loading of excluded classes to the // standard class loader. // if (isExcluded(name)) { try { c= findSystemClass(na...
public void createControl(Composite parent, ITheme currentTheme) { this.theme = currentTheme; folder = new CTabFolder(parent, SWT.BORDER); folder.setUnselectedCloseVisible(false); folder.setEnabled(false); folder.setMaximizeVisible(true); folder.setMinimizeVisible(tru...
public void createControl(Composite parent, ITheme currentTheme) { this.theme = currentTheme; folder = new CTabFolder(parent, SWT.BORDER); folder.setUnselectedCloseVisible(false); folder.setEnabled(false); folder.setMaximizeVisible(true); folder.setMinimizeVisible(tru...
public Name getName() { if (this.typeName == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.typeName == null) { preLazyInit(); this.typeName = new SimpleName(this.ast); postLazyInit(this.typeName, NAME_PROPERTY); } } } return this.typeName;...
public Name getName() { if (this.typeName == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeName == null) { preLazyInit(); this.typeName = new SimpleName(this.ast); postLazyInit(this.typeName, NAME_PROPERTY); } } } return this.typeName; }
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. scope = new BlockScope(upperScope); TypeBinding type = expression.resolveType(scope); if (type == null) return; switch (type.id) { case (T_boolean) : case (T_char) : case (T_float) : case (T_double) ...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. scope = new BlockScope(upperScope); TypeBinding type = expression.resolveType(scope); if (type == null) return; switch (type.id) { case (T_boolean) : case (T_char) : case (T_float) : case (T_double) ...
public ClosePerspectiveAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("ClosePerspectiveAction.text")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("org.eclips...
public ClosePerspectiveAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("ClosePerspectiveAction.text")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("org.eclips...
public void setTarget(Object target) { if (_target == target) return; int nextTab = -1; int currentTab = _tabs.getSelectedIndex(); int tabCount = _tabs.getTabCount(); _target = target; for (int i = 0; i < tabCount; i++) { Component tab = _tabs....
public void setTarget(Object target) { if (_target == target) return; int nextTab = -1; int currentTab = _tabs.getSelectedIndex(); int tabCount = _tabs.getTabCount(); _target = target; for (int i = 0; i < tabCount; i++) { Component tab = _tabs....
private void loadContributors() { PropertyPagesRegistryReader reader = new PropertyPagesRegistryReader(this); reader.registerPropertyPages(Platform.getPluginRegistry()); }
private void loadContributors() { PropertyPagesRegistryReader reader = new PropertyPagesRegistryReader(this); reader.registerPropertyPages(Platform.getExtensionRegistry()); }
public void applyPatternBindings() { applyPatternBindings(getObjectIds()); } /** * Apply pattern bindings to a collection of objects within this manager. * * @param objectIds * a collection containing <code>IObjectContributionRecords</code> * @since 3.0 */ void applyPatternBindings(Collec...
public void applyPatternBindings() { applyPatternBindings(getObjectIds()); } /** * Apply pattern bindings to a collection of objects within this manager. * * @param objectIds * a collection containing <code>IObjectContributionRecords</code> * @since 3.0 */ void applyPatternBindings(Collec...
public void removeProfile(String profile) { Profile p = getProfileForName(profile); String[] folders = new String[] { "mail", "addressbook", "chat", "log" }; String[] files = new String[] { "options.xml", "external_tools.xml" }; File location = p.getLocation(); // delete all directories for (int i = 0; ...
public void removeProfile(String profile) { Profile p = getProfileForName(profile); String[] folders = new String[] { "mail", "addressbook", "chat", "log" }; String[] files = new String[] { "options.xml", "external_tools.xml" }; File location = p.getLocation(); // delete all directories for (int i = 0; ...
protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws CoreException { if (sourceFile == null || problems == null || problems.length == 0) return; String missingClassFile = null; IResource resource = sourceFile.resource; HashSet managedMarkerTypes = JavaModelManager.getJavaMod...
protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws CoreException { if (sourceFile == null || problems == null || problems.length == 0) return; String missingClassFile = null; IResource resource = sourceFile.resource; HashSet managedMarkerTypes = JavaModelManager.getJavaMod...
private void fromXFR(ZoneTransferIn xfrin) throws IOException, ZoneTransferException { data = new HashMap(); type = SECONDARY; if (xfrin.getType() != Type.AXFR) throw new IllegalArgumentException("zones can only be " + "created from AXFRs"); origin = xfrin.getName(); List records = xfrin.run(); for (I...
private void fromXFR(ZoneTransferIn xfrin) throws IOException, ZoneTransferException { data = new HashMap(); type = SECONDARY; if (!xfrin.isAXFR()) throw new IllegalArgumentException("zones can only be " + "created from AXFRs"); origin = xfrin.getName(); List records = xfrin.run(); for (Iterator it = ...
public void synchronizeHeaderlist() throws Exception, IOException, CommandCancelledException, IMAPException { // Check if the mailbox has changed MailboxStatus status = getServer().getStatus(this); if( status.getMessages() == 0 ) { headerList.clear(); return; } List localUids = new LinkedList(Ar...
public void synchronizeHeaderlist() throws Exception, IOException, CommandCancelledException, IMAPException { // Check if the mailbox has changed MailboxStatus status = getServer().getStatus(this); if( status.getMessages() == 0 ) { headerList.clear(); return; } List localUids = new LinkedList(Ar...
private void loadHtmlIntoView(String text, boolean ignoreCharset) throws IOException { // clear existing text Document doc = view.getDocument(); try { // delete old contents doc.remove(0, doc.getLength()); // if no text is specified, we are done now if ((text == null) || (text.equals(""))) { ...
private void loadHtmlIntoView(String text, boolean ignoreCharset) throws IOException { // clear existing text Document doc = view.getDocument(); try { // delete old contents doc.remove(0, doc.getLength()); // if no text is specified, we are done now if ((text == null) || (text.equals(""))) { ...
public char[] getImport(int lineNumber) { int importStartLine = this.lineNumberOffset - 2 - this.imports.length; return this.imports[lineNumber - importStartLine]; }
public char[] getImport(int lineNumber) { int importStartLine = this.lineNumberOffset - 1 - this.imports.length; return this.imports[lineNumber - importStartLine]; }
protected void findSourceFiles(IResourceDelta sourceDelta, int sourceFolderSegmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); IPath location = resource.getLocation(); swi...
protected void findSourceFiles(IResourceDelta sourceDelta, int sourceFolderSegmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); IPath location = resource.getLocation(); swi...
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 TypeBinding resolveType(BlockScope scope) { if ((this.bits & ParenthesizedMASK) != 0) { scope.problemReporter().invalidParenthesizedExpression(this); return null; } super.resolveType(scope); if (currentCompatibleType == null) return null; // error case if (scope.isJavaLangObject(currentComp...
public TypeBinding resolveType(BlockScope scope) { if ((this.bits & ParenthesizedMASK) != 0) { scope.problemReporter().invalidParenthesizedExpression(this); return null; } super.resolveType(scope); if (currentCompatibleType == null) return null; // error case if (currentCompatibleType.id == T_Obje...
public CascadeDeleteStrategy(JDBCCMRFieldBridge cmrField) { this.cmrField = cmrField; entity = cmrField.getEntity(); relatedManager = cmrField.getRelatedManager();
public CascadeDeleteStrategy(JDBCCMRFieldBridge cmrField) { this.cmrField = cmrField; entity = (JDBCEntityBridge)cmrField.getEntity(); relatedManager = cmrField.getRelatedManager();
private boolean hasOutputLocationChanged() { return !outputFolder.getLocation().toString().equalsIgnoreCase(lastState.outputLocationString); }
private boolean hasOutputLocationChanged() { return !outputFolder.getLocation().toString().equals(lastState.outputLocationString); }
protected void elementRemoved(Openable element) { if (element.isOpen()) { close(element); } removeFromParentInfo(element); int elementType = element.getElementType(); switch (elementType) { case IJavaElement.JAVA_MODEL : JavaModelManager.getJavaModelManager().getIndexManager().reset(); break;...
protected void elementRemoved(Openable element) { if (element.isOpen()) { close(element); } removeFromParentInfo(element); int elementType = element.getElementType(); switch (elementType) { case IJavaElement.JAVA_MODEL : JavaModelManager.getIndexManager().reset(); break; case IJavaElement....
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(this.tabString(tab)); buffer.append("import "); //$NON-NLS-1$ toStringName(buffer); if (info == null) { buffer.append(" (not open)"); //$NON-NLS-1$ } }
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); buffer.append("import "); //$NON-NLS-1$ toStringName(buffer); if (info == null) { buffer.append(" (not open)"); //$NON-NLS-1$ } }
public int match(ASTNode node, MatchingNodeSet nodeSet) { int declarationsLevel = IMPOSSIBLE_MATCH; if (this.pattern.findReferences) { if (node instanceof ImportReference) { // With static import, we can have static field reference in import reference ImportReference importRef = (ImportReference) node; int...
public int match(ASTNode node, MatchingNodeSet nodeSet) { int declarationsLevel = IMPOSSIBLE_MATCH; if (this.pattern.findReferences) { if (node instanceof ImportReference) { // With static import, we can have static field reference in import reference ImportReference importRef = (ImportReference) node; int...
public void load() throws Exception { ColumbaLogger.log.info("loading header-cache=" + headerFile); headerList = new HeaderList(); ObjectInputStream p = openInputStream(); int capacity = 0 ; if (p.available() > 0) capacity = p.readInt(); ColumbaLogger.log.info("capacity=" + capacity); if (getO...
public void load() throws Exception { ColumbaLogger.log.info("loading header-cache=" + headerFile); headerList = new HeaderList(); ObjectInputStream p = openInputStream(); int capacity = 0 ; if (p.available() > 0) capacity = p.readInt(); ColumbaLogger.log.info("capacity=" + capacity); if (getO...
public int getNodeType() { return FOR_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ForStatement result = new ForStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadingComment(...
public int getNodeType() { return FOR_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ForStatement result = new ForStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.i...
public static void transform(String in, String out, Filter[] filters) throws FileNotFoundException, IOException, UnexpectedFormatException { Perl5Util util = new Perl5Util(); ...
public static void transform(String in, String out, Filter[] filters) throws FileNotFoundException, IOException, UnexpectedFormatException { Perl5Util util = new Perl5Util(); ...
public static Map getDefaultOptions() { Map defaultOptions = new Hashtable(); defaultOptions.put( CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.DO_NOT_GENERATE); defaultOptions.put( CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.GENERATE); defaultOptions.put( Compil...
public static Map getDefaultOptions() { Map defaultOptions = new Hashtable(); defaultOptions.put( CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.DO_NOT_GENERATE); defaultOptions.put( CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.GENERATE); defaultOptions.put( Compil...
public static String string(int i) { String s = opcodes.getString(i); return (s != null) ? s : new Integer(i).toString(); }
public static String string(int i) { String s = opcodes.getString(i); return (s != null) ? s : Integer.toString(i); }
public void setMinimized(boolean minimized) { // 'Smart' minimize; move the stack to the trim Perspective persp = getPage().getActivePerspective(); IPreferenceStore preferenceStore = PrefUtil.getAPIPreferenceStore(); boolean useNewMinMax = preferenceStore.getBoolean(IWorkbenchPreferenceCon...
public void setMinimized(boolean minimized) { // 'Smart' minimize; move the stack to the trim Perspective persp = getPage().getActivePerspective(); IPreferenceStore preferenceStore = PrefUtil.getAPIPreferenceStore(); boolean useNewMinMax = preferenceStore.getBoolean(IWorkbenchPreferenceCon...
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); ...
protected void prepareDeltas(IJavaElement sourceElement, IJavaElement destinationElement, boolean isMove) { if (org.eclipse.jdt.internal.core.Util.isExcluded(destinationElement)) return; IJavaProject destProject = destinationElement.getJavaProject(); if (isMove) { IJavaProject sourceProject = sourceElement.ge...
protected void prepareDeltas(IJavaElement sourceElement, IJavaElement destinationElement, boolean isMove) { if (org.eclipse.jdt.internal.core.Util.isExcluded(sourceElement) || org.eclipse.jdt.internal.core.Util.isExcluded(destinationElement)) return; IJavaProject destProject = destinationElement.getJavaProject(); ...
public void indexDocument(SearchDocument document, IPath indexPath) { // TODO must verify that the document + indexPath match, when this is not called from scheduleDocumentIndexing removeAllIndexEntries(document); // in case the document was already indexed String documentPath = document.getPath(); if (org.ec...
public void indexDocument(SearchDocument document, IPath indexPath) { // TODO must verify that the document + indexPath match, when this is not called from scheduleDocumentIndexing document.removeAllIndexEntries(); // in case the document was already indexed String documentPath = document.getPath(); if (org.e...
public static String id() { return "4.2"; }
public static String id() { return "4.3"; }
public void add(ColumbaHeader header) throws Exception { ColumbaHeader strippedHeader = new ColumbaHeader(); for( int i=0; i < CachedHeaderfields.POP3_HEADERFIELDS.length; i++) { strippedHeader.set(CachedHeaderfields.POP3_HEADERFIELDS[i], header.get(CachedHeaderfields.POP3_HEADERFIELDS[i])); } headerList...
public void add(ColumbaHeader header) { ColumbaHeader strippedHeader = new ColumbaHeader(); for( int i=0; i < CachedHeaderfields.POP3_HEADERFIELDS.length; i++) { strippedHeader.set(CachedHeaderfields.POP3_HEADERFIELDS[i], header.get(CachedHeaderfields.POP3_HEADERFIELDS[i])); } headerList.add(strippedHea...
protected void generateInfos(Object info, HashMap newElements, IProgressMonitor pm) throws JavaModelException { Openable openableParent = (Openable)getOpenableParent(); if (openableParent != null) { JavaElementInfo openableParentInfo = (JavaElementInfo) JavaModelManager.getJavaModelManager().getInfo((IJavaElement) ...
protected void generateInfos(Object info, HashMap newElements, IProgressMonitor pm) throws JavaModelException { Openable openableParent = (Openable)getOpenableParent(); if (openableParent != null) { JavaElementInfo openableParentInfo = (JavaElementInfo) JavaModelManager.getJavaModelManager().getInfo(openableParent)...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, boolean valueRequired) { switch (bits & RestrictiveFlagMASK) { case FIELD : // reading a field // check if reading a final blank field FieldBinding fieldBinding; if ((fieldBinding = (FieldBinding) binding).isFi...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, boolean valueRequired) { switch (bits & RestrictiveFlagMASK) { case FIELD : // reading a field // check if reading a final blank field FieldBinding fieldBinding; if ((fieldBinding = (FieldBinding) binding).isFi...
public int getNodeType() { return SYNCHRONIZED_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SynchronizedStatement result = new SynchronizedStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadin...
public int getNodeType() { return SYNCHRONIZED_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SynchronizedStatement result = new SynchronizedStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadi...
protected void updateIndex(Openable element, IResourceDelta delta) { try { if (indexManager == null) return; switch (element.getElementType()) { case IJavaElement.JAVA_PROJECT : switch (delta.getKind()) { case IResourceDelta.ADDED : case IResourceDelta.OPEN : indexManager.indexAll(ele...
protected void updateIndex(Openable element, IResourceDelta delta) { try { if (indexManager == null) return; switch (element.getElementType()) { case IJavaElement.JAVA_PROJECT : switch (delta.getKind()) { case IResourceDelta.ADDED : case IResourceDelta.OPEN : indexManager.indexAll(ele...
public StickyViewDescriptor(IConfigurationElement element) throws CoreException { this.configurationElement = element; id = configurationElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); if (id == null) throw new CoreException(new Status(IStatus.ERROR, element ...
public StickyViewDescriptor(IConfigurationElement element) throws CoreException { this.configurationElement = element; id = configurationElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); if (id == null) throw new CoreException(new Status(IStatus.ERROR, element ...
public List getStrings() { return strings; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (strings == null) return; Iterator it = strings.iterator(); while (it.hasNext()) { String s = (String) it.next(); out.writeString(s); } }
public List getStrings() { return strings; } void rrToWire(DataByteOutputStream out, Compression c) { if (strings == null) return; Iterator it = strings.iterator(); while (it.hasNext()) { String s = (String) it.next(); out.writeString(s); } }
public TypeBinding resolveType(BlockScope scope) { constant = Constant.NotAConstant; TypeBinding arrayTb = receiver.resolveType(scope); if (arrayTb == null) return null; if (!arrayTb.isArrayType()) { scope.problemReporter().referenceMustBeArrayTypeAt(arrayTb, this); return null; } TypeBinding pos...
public TypeBinding resolveType(BlockScope scope) { constant = Constant.NotAConstant; TypeBinding arrayTb = receiver.resolveType(scope); if (arrayTb == null) return null; if (!arrayTb.isArrayType()) { scope.problemReporter().referenceMustBeArrayTypeAt(arrayTb, this); return null; } TypeBinding pos...
public static String id() { return "4.5-SNAPSHOT-20080626-0650"; }
public static String id() { return "4.5-SNAPSHOT-20080715-1721"; }
public void addPages() { super.addPages(); mainPage = new WizardNewFileCreationPage("newFilePage1", getSelection());//$NON-NLS-1$ mainPage.setTitle(ResourceMessages.getString("FileResource.pageTitle")); //$NON-NLS-1$ mainPage.setDescription(ResourceMessages.getString("FileResource.description")); //$NON-NLS-1$ ad...
public void addPages() { super.addPages(); mainPage = new WizardNewFileCreationPage("newFilePage1", getSelection());//$NON-NLS-1$ mainPage.setTitle(ResourceMessages.getString("FileResource.pageTitle")); //$NON-NLS-1$ mainPage.setDescription(ResourceMessages.getString("FileResource.description")); //$NON-NLS-1$ ad...
protected static String[] readReadableNameTable(String filename) throws java.io.IOException { String[] result = new String[name.length];
protected static String[] readReadableNameTable(String filename) { String[] result = new String[name.length];
public ErrorInfo(IStatus status, Job job) { errorStatus = status; this.job = job; timestamp = System.currentTimeMillis(); } /* (non-Javadoc) * @see org.eclipse.ui.internal.progress.JobTreeElement#getParent() */ Object getParent() { return null; } /* (n...
public ErrorInfo(IStatus status, Job job) { errorStatus = status; this.job = job; timestamp = System.currentTimeMillis(); } /* (non-Javadoc) * @see org.eclipse.ui.internal.progress.JobTreeElement#getParent() */ Object getParent() { return null; } /* (n...
public IAnnotation[] getAnnotations() throws JavaModelException { IBinaryType info = (IBinaryType) getElementInfo(); IBinaryAnnotation[] binaryAnnotations = info.getAnnotations(); return getAnnotations(binaryAnnotations); }
public IAnnotation[] getAnnotations() throws JavaModelException { IBinaryType info = (IBinaryType) getElementInfo(); IBinaryAnnotation[] binaryAnnotations = info.getAnnotations(); return getAnnotations(binaryAnnotations, info.getTagBits()); }
public static String id() { return "4.5-SNAPSHOT-20080617-1818"; }
public static String id() { return "4.5-SNAPSHOT-20080626-0650"; }
this.binding = privateBinding; } } else { if (this.binding.declaringClass == null) { this.binding.declaringClass = allocatedType; } scope.problemReporter().invalidConstructor(this, this.binding); return this.resolvedType; } } if (isMethodUseDeprecated(this.binding, scope)) { scope.pro...
this.binding = privateBinding; } } else { if (this.binding.declaringClass == null) { this.binding.declaringClass = allocatedType; } scope.problemReporter().invalidConstructor(this, this.binding); return this.resolvedType; } } if (isMethodUseDeprecated(this.binding, scope)) { scope.pro...
public void reportImport(ImportReference reference, int accuracy) throws CoreException { // create defining import handle IJavaElement importHandle = this.createImportHandle(reference); // accept reference this.pattern.matchReportReference(reference, importHandle, accuracy, this); }
public void reportImport(ImportReference reference, int accuracy) throws CoreException { // create defining import handle IJavaElement importHandle = this.createImportHandle(reference); // accept reference this.pattern.matchReportImportRef(reference, null, importHandle, accuracy, this); }
private ArrayList getChildren(){ if(RoleManager.getInstance().filterRoles){ RoleManager manager = RoleManager.getInstance(); ArrayList filtered = new ArrayList(); Iterator childIterator = children.iterator(); while(childIterator.hasNext()){ IPerspectiveDescriptor next = (IPerspectiveDescriptor) child...
private ArrayList getChildren(){ if(RoleManager.getInstance().isFiltering()){ RoleManager manager = RoleManager.getInstance(); ArrayList filtered = new ArrayList(); Iterator childIterator = children.iterator(); while(childIterator.hasNext()){ IPerspectiveDescriptor next = (IPerspectiveDescriptor) chi...
public ProgressMonitorFocusJobDialog(Shell parentShell) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); setCancelable(true); }
public ProgressMonitorFocusJobDialog(Shell parentShell) { super(parentShell == null ? ProgressManagerUtil.getNonModalShell() : parentShell); setCancelable(true); }
public void run(EachTestNotifier context) throws Throwable { context.fireTestIgnored(); } }
public void run(EachTestNotifier context) { context.fireTestIgnored(); } }
protected void initToolBar() { cat.debug("making deployment toolbar"); _toolBar = new ToolBar(); _toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); //_toolBar.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); _toolBar.add(_actionSelect); _toolBar.add(_actionBroom); _toolBar....
protected void initToolBar() { cat.debug("making deployment toolbar"); _toolBar = new ToolBar(); _toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); //_toolBar.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); _toolBar.add(_actionSelect); _toolBar.add(_actionBroom); _toolBar....
private static AbstractMethodDeclaration convert(IMethod method, IType type, CompilationResult compilationResult) throws JavaModelException { AbstractMethodDeclaration methodDeclaration; if (method.isConstructor()) { ConstructorDeclaration decl = new ConstructorDeclaration(compilationResult); decl.isDefaul...
private static AbstractMethodDeclaration convert(IMethod method, IType type, CompilationResult compilationResult) throws JavaModelException { AbstractMethodDeclaration methodDeclaration; if (method.isConstructor()) { ConstructorDeclaration decl = new ConstructorDeclaration(compilationResult); decl.bits &= ...
private void pushFile(File file, String encoding) throws ParseException, FileNotFoundException { // Default encoding if needed: if (encoding == null) encoding = System.getProperty("file.encoding", "8859_1"); // Register the file, and read its content: int fileid = registerSourceFile(file.g...
private void pushFile(File file, String encoding) throws ParseException, FileNotFoundException { // Default encoding if needed: if (encoding == null) encoding = System.getProperty("file.encoding", "8859_1"); // Register the file, and read its content: int fileid = registerSourceFile(file.g...
protected void executeOperation() throws JavaModelException { CompilationUnit workingCopy = getWorkingCopy(); int useCount = JavaModelManager.getJavaModelManager().discardPerWorkingCopyInfo(workingCopy); if (useCount == 0) { if (!workingCopy.isPrimary()) { // report removed java delta for a non-primary...
protected void executeOperation() throws JavaModelException { CompilationUnit workingCopy = getWorkingCopy(); int useCount = JavaModelManager.getJavaModelManager().discardPerWorkingCopyInfo(workingCopy); if (useCount == 0) { if (!workingCopy.isPrimary()) { // report removed java delta for a non-primary...
public interface IContextBindingDefinition extends Comparable { /******************************************************************************* * 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 Comm...
public interface IContextBindingDefinition extends Comparable { /******************************************************************************* * 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 Comm...
protected void updateProblemCounts(IProblem[] newProblems) { for (int i = 0, l = newProblems.length; i < l; i++) if (newProblems[i].getID() != IProblem.Task) if (newProblems[i].isError()) newErrorCount++; else newWarningCount++; }
protected void updateProblemCounts(IProblem[] newProblems) { for (int i = 0, l = newProblems.length; i < l; i++) if (newProblems[i].getID() != IProblem.Task)//TODO: (kent) aren't tasks filtered out from problems here? if (newProblems[i].isError()) newErrorCount++; else newWarningCount++; }
protected SourceElementParser getParser(Map settings) { return new SourceElementParser(this, new DefaultProblemFactory(), new CompilerOptions(settings)); }
protected SourceElementParser getParser(Map settings) { return new SourceElementParser(this, new DefaultProblemFactory(), new CompilerOptions(settings), false/*don't report local declarations*/, true/*optimize string literals*/); }
private URL getMoreInfoURL(AboutBundleData bundleInfo, boolean makeLocal) { Bundle bundle = Platform.getBundle(bundleInfo.getId()); if (bundle == null) return null; URL aboutUrl = Platform.find(bundle, baseNLPath.append(PLUGININFO), null); if (!makeLocal) { r...
private URL getMoreInfoURL(AboutBundleData bundleInfo, boolean makeLocal) { Bundle bundle = Platform.getBundle(bundleInfo.getId()); if (bundle == null) return null; URL aboutUrl = Platform.find(bundle, baseNLPath.append(PLUGININFO), null); if (!makeLocal) { r...
public static void init() { // try { java.lang.Class modelCls = Model.class; java.lang.Class classCls = uci.uml.Foundation.Core.Class.class; java.lang.Class classifierCls = Classifier.class; java.lang.Class interfaceCls = Interface.class; java.lang.Class attrCls = Attribute.class; ...
public static void init() { // try { java.lang.Class modelCls = Model.class; java.lang.Class classCls = MMClass.class; java.lang.Class classifierCls = Classifier.class; java.lang.Class interfaceCls = Interface.class; java.lang.Class attrCls = Attribute.class; java.lang.Class op...
protected State(JavaBuilder javaBuilder) { this.knownPackageNames = null; this.previousStructuralBuildTime = -1; this.structurallyChangedTypes = null; this.javaProjectName = javaBuilder.currentProject.getName(); this.sourceLocations = javaBuilder.nameEnvironment.sourceLocations; this.binaryLocations = javaBuilder...
protected State(JavaBuilder javaBuilder) { this.knownPackageNames = null; this.previousStructuralBuildTime = -1; this.structurallyChangedTypes = null; this.javaProjectName = javaBuilder.currentProject.getName(); this.sourceLocations = javaBuilder.nameEnvironment.sourceLocations; this.binaryLocations = javaBuilder...
public void addSearchToHistory() throws Exception { VirtualFolder searchFolder = (VirtualFolder) MailInterface.treeModel.getFolder(106); // only create new subfolders if we used the default "Search Folder" if (!searchFolder.equals(this)) { return; } // we only w...
public void addSearchToHistory() throws Exception { VirtualFolder searchFolder = (VirtualFolder) MailInterface.treeModel.getFolder(106); // only create new subfolders if we used the default "Search Folder" if (!searchFolder.equals(this)) { return; } // we only w...
public void set(Map settings) { final Object allocationExpressionArgumentsAlignmentOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALLOCATION_EXPRESSION_ARGUMENTS_ALIGNMENT); if (allocationExpressionArgumentsAlignmentOption != null) { this.allocation_expression_arguments_alignment = Integer.parseI...
public void set(Map settings) { final Object allocationExpressionArgumentsAlignmentOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALLOCATION_EXPRESSION_ARGUMENTS_ALIGNMENT); if (allocationExpressionArgumentsAlignmentOption != null) { this.allocation_expression_arguments_alignment = Integer.parseI...
public void actionPerformed(ActionEvent evt) { /* * *20030620, karlpeder* Action has been implemented */ // get selected stuff FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()). getTableSelection(); // add command for execution CreateFilterOnMessageCommand c =...
public void actionPerformed(ActionEvent evt) { /* * *20030620, karlpeder* Action has been implemented */ // get selected stuff FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()). getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = ...
public Boolean hasAttachments() { boolean hasAttachments = false; MimeType mimeType = new MimeHeader(header).getMimeType(); hasAttachments = !mimeType.getType().equals("text") && !mimeType.getSubtype().equals("alternative"); return new Boolean(hasAttachments); }
public Boolean hasAttachments() { boolean hasAttachments = false; MimeType mimeType = new MimeHeader(header).getMimeType(); hasAttachments = !mimeType.getType().equals("text") && !mimeType.getSubtype().equals("alternative"); return Boolean.valueOf(hasAttachments); }
public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUn...
public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUn...
public SaveAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("SaveAction.text"), window); //$NON-NLS-1$ setText(WorkbenchMessages.getString("SaveAction.text")); //$NON-NLS-1$ setToolTipText(WorkbenchMessages.getString("SaveAction.toolTip")); //$NON-NLS-1$ setId("sav...
public SaveAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("SaveAction.text"), window); //$NON-NLS-1$ setText(WorkbenchMessages.getString("SaveAction.text")); //$NON-NLS-1$ setToolTipText(WorkbenchMessages.getString("SaveAction.toolTip")); //$NON-NLS-1$ setId("sav...
public EmptyFolderAction(AbstractFrameController frameController) { super( frameController, MailResourceLoader.getString( "menu", "mainframe", "menu_folder_emptyfolder")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "mainframe", "menu_folder_emptyfolder")); ...
public EmptyFolderAction(AbstractFrameController frameController) { super( frameController, MailResourceLoader.getString( "menu", "mainframe", "menu_folder_emptyfolder")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "mainframe", "menu_folder_emptyfolder")); ...
public boolean setMimePartTree(MimeTree collection) { String contentType; String contentSubtype; String text = new String(); boolean output = false; removeAll(); model.setCollection(collection); List displayedMimeParts = model.getDisplayedMimeParts(); ...
public boolean setMimePartTree(MimeTree collection) { String contentType; String contentSubtype; String text = ""; boolean output = false; removeAll(); model.setCollection(collection); List displayedMimeParts = model.getDisplayedMimeParts(); // Dis...
public FontData[] getValue() { if (value == null) return null; if (parsedValue == null) { parsedValue = JFaceResources.getFontRegistry().bestDataArray( StringConverter.asFontDataArray(value), Workbench.getInstance().getDisplay()); ...
public FontData[] getValue() { if (value == null) return null; if (parsedValue == null) { parsedValue = JFaceResources.getFontRegistry().filterData( StringConverter.asFontDataArray(value), Workbench.getInstance().getDisplay()); ...
private static final SLocation createLocation(final String barType, final String path, final LegacyLocationInfo locationInfo, final char mnemonic, final String imageStyle) { final LeafLocationElement leafElement = new SBar(barType, path); final LocationElement locationElement; if (locationInfo == null) { ...
private static final SLocation createLocation(final String barType, final String path, final LegacyLocationInfo locationInfo, final char mnemonic, final String imageStyle) { final LeafLocationElement leafElement = new SBar(barType, path); final LocationElement locationElement; if (locationInfo == null) { ...
public void contextInit(Context ctx) throws TomcatException { if( ctx.getDebug() > 0 ) ctx.log("XmlReader - init " + ctx.getPath() + " " + ctx.getDocBase() ); ContextManager cm=ctx.getContextManager(); try { // Default init setDefaults( ctx ); // We may read a "default" web.xml from INSTALL/co...
public void contextInit(Context ctx) throws TomcatException { if( ctx.getDebug() > 0 ) ctx.log("XmlReader - init " + ctx.getPath() + " " + ctx.getDocBase() ); ContextManager cm=ctx.getContextManager(); try { // Default init setDefaults( ctx ); // We may read a "default" web.xml from INSTALL/co...
public AboutDialog(View view) { super(view,jEdit.getProperty("about.title"),true); JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); content.add(BorderLayout.CENTER,new AboutPanel()); JPanel buttonPanel = new JPanel(); buttonPan...
public AboutDialog(View view) { super(view,jEdit.getProperty("about.title"),true); JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); content.add(BorderLayout.CENTER,new AboutPanel()); JPanel buttonPanel = new JPanel(); buttonPan...
private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner t...
private void generateInnerClassHandles(IType type, IBinaryType typeInfo, ArrayList childrenHandles) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of an inner t...
public String format(LoggingEvent event) { // Reset buf buf.setLength(0); dateFormat(buf, event); if(this.threadPrinting) { buf.append('['); buf.append(event.getThreadName()); buf.append("] "); } buf.append(event.level.toString()); buf.append(' '); if(this.c...
public String format(LoggingEvent event) { // Reset buf buf.setLength(0); dateFormat(buf, event); if(this.threadPrinting) { buf.append('['); buf.append(event.getThreadName()); buf.append("] "); } buf.append(event.level.toString()); buf.append(' '); if(this.c...
protected void saveClasspathIfNecessary() throws JavaModelException { if (!this.canChangeResource || !this.needSave) return; IClasspathEntry[] classpathForSave; JavaProject project = getProject(); if (this.newRawPath == ReuseClasspath || this.newRawPath == UpdateClasspath){ classpathForSave = projec...
protected void saveClasspathIfNecessary() throws JavaModelException { if (!this.canChangeResource || !this.needSave) return; IClasspathEntry[] classpathForSave; JavaProject project = getProject(); if (this.newRawPath == ReuseClasspath || this.newRawPath == UpdateClasspath){ classpathForSave = projec...