buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public PreferenceManager getPreferenceManager() { if (preferenceManager == null) { preferenceManager = new WorkbenchPreferenceManager( PREFERENCE_PAGE_CATEGORY_SEPARATOR); //Get the pages from the registry PreferencePageRegistryReader registryReader =...
public PreferenceManager getPreferenceManager() { if (preferenceManager == null) { preferenceManager = new WorkbenchPreferenceManager( PREFERENCE_PAGE_CATEGORY_SEPARATOR); //Get the pages from the registry PreferencePageRegistryReader registryReader =...
public SortedMap getActionMap() { return Collections.unmodifiableSortedMap(actionMap); } void addAction(Action action) throws IllegalArgumentException { if (action == null) throw new IllegalArgumentException(); actionMap.put(action.getId(), action); }
public SortedMap getActionMap() { return Collections.unmodifiableSortedMap(actionMap); } void addAction(Action action) throws IllegalArgumentException { if (action == null) throw new IllegalArgumentException(); actionMap.put(action.getLabel().getId(), action); }
protected String getMainTaskName() { return Util.bind("operation.deleteResourceProgress"); //$NON-NLS-1$ }
protected String getMainTaskName() { return Util.bind("operation.deleteResourceProgress"/*nonNLS*/); }
import org.apache.torque.om.Persistent; package org.tigris.scarab.om; import org.apache.turbine.services.db.om.Persistent; /** * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directo...
import org.apache.torque.om.Persistent; package org.tigris.scarab.om; import org.apache.torque.om.Persistent; /** * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory. */ publi...
private void initializeCommandsAndContexts() { commandManager = CommandManager.getInstance(); contextManager = ContextManager.getInstance(); addWindowListener(windowListener); updateCommandsAndContexts(); } void updateCommandsAndContexts() { IWorkbenchWindow activeWorkbenchWindow = getActiveWorkbenchWindo...
private void initializeCommandsAndContexts() { commandManager = CommandManager.getInstance(); contextManager = ContextManager.getInstance(); addWindowListener(windowListener); updateCommandsAndContexts(); } void updateCommandsAndContexts() { IWorkbenchWindow activeWorkbenchWindow = getActiveWorkbenchWindo...
public void updateFromParserState(){ // if parent is null then recovery already occured in diet parser. if(this.bodyStartsAtHeaderEnd() && this.parent != null){ Parser parser = this.parser(); /* might want to recover arguments or thrown exceptions */ if (parser.listLength > 0 && parser.astLengthPtr > 0){ // awa...
public void updateFromParserState(){ // if parent is null then recovery already occured in diet parser. if(this.bodyStartsAtHeaderEnd() && this.parent != null){ Parser parser = this.parser(); /* might want to recover arguments or thrown exceptions */ if (parser.listLength > 0 && parser.astLengthPtr > 0){ // awa...
synchronized private static void initialize() { if (initialized) return; initialized = true; if (res == null) { try { setResolver(new ExtendedResolver()); } catch (UnknownHostException uhe) { System.err.println("Failed to initialize resolver"); System.exit(-1); } } if (!searchPathSet) searchPa...
synchronized private static void initialize() { if (initialized) return; initialized = true; if (res == null) { try { setResolver(new ExtendedResolver()); } catch (UnknownHostException uhe) { System.err.println("Failed to initialize resolver"); System.exit(-1); } } if (!searchPathSet) searchPa...
private String byteString(byte [] array, int pos) { StringBuffer sb = new StringBuffer(); int len = array[pos++]; for (int i = pos; i < pos + len; i++) { short b = (short)(array[i] & 0xFF); if (b <= 0x20 || b >= 0x7f) { sb.append('\\'); sb.append(byteFormat.format(b)); } else if (b == '"' || b == '(' |...
private String byteString(byte [] array, int pos) { StringBuffer sb = new StringBuffer(); int len = array[pos++]; for (int i = pos; i < pos + len; i++) { int b = array[i] & 0xFF; if (b <= 0x20 || b >= 0x7f) { sb.append('\\'); sb.append(byteFormat.format(b)); } else if (b == '"' || b == '(' || b == ')' ...
public Name getAlg() { return alg; }
public Name getAlgorithm() { return alg; }
public CloseAllAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("CloseAllAction.text"), window); //$NON-NLS-1$ setToolTipText(WorkbenchMessages.getString("CloseAllAction.toolTip")); //$NON-NLS-1$ setEnabled(false); setId("closeAll"); //$NON-NLS-1$ updateSta...
public CloseAllAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("CloseAllAction.text"), window); //$NON-NLS-1$ setToolTipText(WorkbenchMessages.getString("CloseAllAction.toolTip")); //$NON-NLS-1$ setEnabled(false); setId("closeAll"); //$NON-NLS-1$ updateSta...
private boolean findProperty() { String s, prop; List lserver = new ArrayList(0); List lsearch = new ArrayList(0); StringTokenizer st; prop = System.getProperty("dns.server"); if (prop != null) { st = new StringTokenizer(prop, ","); while (st.hasMoreTokens()) addServer(st.nextToken(), lserver); } prop ...
private boolean findProperty() { String prop; List lserver = new ArrayList(0); List lsearch = new ArrayList(0); StringTokenizer st; prop = System.getProperty("dns.server"); if (prop != null) { st = new StringTokenizer(prop, ","); while (st.hasMoreTokens()) addServer(st.nextToken(), lserver); } prop = S...
protected char[] getClassName() { return CharOperation.concat(CODE_SNIPPET_CLASS_NAME_PREFIX, Integer.toString(EvaluationContext.CODE_SNIPPET_COUNTER + 1).toCharArray()); } /** * @see Evaluator. */ Compiler getCompiler(ICompilerRequestor compilerRequestor) { Compiler compiler = null; if (!DEVELOPMENT_MODE) { // ...
protected char[] getClassName() { return CharOperation.concat(CODE_SNIPPET_CLASS_NAME_PREFIX, Integer.toString(EvaluationContext.CODE_SNIPPET_COUNTER + 1).toCharArray()); } /** * @see Evaluator. */ Compiler getCompiler(ICompilerRequestor compilerRequestor) { Compiler compiler = null; if (!DEVELOPMENT_MODE) { // ...
public JobTreeElement[] getRootElements(boolean debug) { synchronized (jobs) { Iterator iterator = jobs.keySet().iterator(); Collection result = new ArrayList(); while (iterator.hasNext()) { Job next = (Job) iterator.next(); if (!isNonDispl...
public JobTreeElement[] getRootElements(boolean debug) { synchronized (jobs) { Iterator iterator = jobs.keySet().iterator(); Collection result = new HashSet(); while (iterator.hasNext()) { Job next = (Job) iterator.next(); if (!isNonDisplay...
private ArrayList getShowInIdsFromRegistry() { PerspectiveExtensionReader reader = new PerspectiveExtensionReader(); reader.setIncludeOnlyTags(new String[] { PerspectiveExtensionReader.TAG_SHOW_IN_PART }); PageLayout layout = new PageLayout(); reader.extendLayout(descriptor.getId(), layout); return layout.getShowI...
private ArrayList getShowInIdsFromRegistry() { PerspectiveExtensionReader reader = new PerspectiveExtensionReader(); reader.setIncludeOnlyTags(new String[] { PerspectiveExtensionReader.TAG_SHOW_IN_PART }); PageLayout layout = new PageLayout(); reader.extendLayout(descriptor.getOriginalId(), layout); return layout....
protected void applySearch(AbstractMessageFolder parent, Filter filter) throws Exception { AbstractMessageFolder folder = parent; Object[] resultUids = folder.searchMessages(filter); String[] headerfields = CachedHeaderfields.getCachedHeaderfields(); if (resultUids != null) { for (int i = 0; i < result...
protected void applySearch(AbstractMessageFolder parent, Filter filter) throws Exception { AbstractMessageFolder folder = parent; Object[] resultUids = folder.searchMessages(filter); String[] headerfields = CachedHeaderfields.getDefaultHeaderfields(); if (resultUids != null) { for (int i = 0; i < resul...
public String toString() { return "TypeNode(" + fType.getFileName() + ")"; }
public String toString() { return "TypeNode("/*nonNLS*/ + fType.getFileName() + ")"/*nonNLS*/; }
public CompletionOnKeyword2(char[] token, long pos, char[][] possibleKeywords) { super(new char[][]{token}, new long[]{pos}, false); this.token = token; this.pos = pos; this.possibleKeywords = possibleKeywords; }
public CompletionOnKeyword2(char[] token, long pos, char[][] possibleKeywords) { super(new char[][]{token}, new long[]{pos}, false, AccDefault); this.token = token; this.pos = pos; this.possibleKeywords = possibleKeywords; }
public URL[] getURLs(ClassLoader cl,int depth){ int c=0; do{ while( cl instanceof DependClassLoader && cl!=null) cl=((DependClassLoader)cl).getParentLoader(); if (depth==c) return ((SimpleClassLoader)cl).getURLs(); c++; cl=((SimpleClassLoader)cl...
public URL[] getURLs(ClassLoader cl,int depth){ int c=0; do{ while( cl instanceof DependClassLoader && cl!=null) cl=((DependClassLoader)cl).getParentLoader(); if (depth==c) return ((SimpleClassLoader)cl).getURLs(); c++; cl=((SimpleClassLoader)cl...
public void generateSyntheticFieldInitializationsIfNecessary( MethodScope methodScope, CodeStream codeStream, ReferenceBinding declaringClass) { if (!declaringClass.isNestedType()) return; NestedTypeBinding nestedType = (NestedTypeBinding) declaringClass; SyntheticArgumentBinding[] syntheticArgs = ...
public void generateSyntheticFieldInitializationsIfNecessary( MethodScope methodScope, CodeStream codeStream, ReferenceBinding declaringClass) { if (!declaringClass.isNestedType()) return; NestedTypeBinding nestedType = (NestedTypeBinding) declaringClass; SyntheticArgumentBinding[] syntheticArgs = ...
private void resolveThrowsTags(MethodScope methScope, boolean reportMissing) { AbstractMethodDeclaration md = methScope.referenceMethod(); int throwsTagsLength = this.exceptionReferences == null ? 0 : this.exceptionReferences.length; // If no referenced method (field initializer for example) then report a probl...
private void resolveThrowsTags(MethodScope methScope, boolean reportMissing) { AbstractMethodDeclaration md = methScope.referenceMethod(); int throwsTagsLength = this.exceptionReferences == null ? 0 : this.exceptionReferences.length; // If no referenced method (field initializer for example) then report a probl...
public String toStringExpression(){ return "<SelectOnSuper:"+super.toStringExpression()+">"; //$NON-NLS-2$ //$NON-NLS-1$ }
public String toStringExpression(){ return "<SelectOnSuper:"/*nonNLS*/+super.toStringExpression()+">"/*nonNLS*/; }
private void buildMenusAndToolbarsFor(ActionSetDescriptor actionSetDesc) { String id = actionSetDesc.getId(); ActionSetActionBars bars = new ActionSetActionBars( customizeWorkbenchActionBars, id); PluginActionSetBuilder builder = new PluginActionSetBuilder(); PluginAc...
private void buildMenusAndToolbarsFor(ActionSetDescriptor actionSetDesc) { String id = actionSetDesc.getId(); ActionSetActionBars bars = new ActionSetActionBars( customizeWorkbenchActionBars, id); PluginActionSetBuilder builder = new PluginActionSetBuilder(); PluginAc...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true); /* Update cycle marker */ IMarker...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true); /* Update cycle marker */ IMarker...
public ShowHelpAction(IFrameMediator frameMediator) { super(frameMediator, GlobalResourceLoader.getString(null, null, "menu_help_help")); // small icon for menu putValue(SMALL_ICON, ImageLoader.getImageIcon("stock_help_16.png")); }
public ShowHelpAction(IFrameMediator frameMediator) { super(frameMediator, GlobalResourceLoader.getString(null, null, "menu_help_help")); // small icon for menu putValue(SMALL_ICON, ImageLoader.getSmallIcon("help-browser.png")); }
private void addAdditional2(Message response, int section) { Enumeration e = response.getSection(section); while (e.hasMoreElements()) { Record r = (Record) e.nextElement(); try { Method m = r.getClass().getMethod("getTarget", null); Name glueName = (Name) m.invoke(r, null); addGlue(response, glueName); ...
private void addAdditional2(Message response, int section) { Enumeration e = response.getSection(section); while (e.hasMoreElements()) { Record r = (Record) e.nextElement(); try { Method m = r.getClass().getMethod("getTarget", null); Name glueName = (Name) m.invoke(r, null); addGlue(response, glueName); ...
public OpenPreferencesAction() { this(((Workbench)PlatformUI.getWorkbench()).getActiveWorkbenchWindow()); }
public OpenPreferencesAction() { this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()); }
public boolean visit(IResourceProxy proxy) throws CoreException { if (proxy.getType() == IResource.FOLDER) { IPath path = proxy.requestFullPath(); if (prefixesOneOf(path, nestedFolders)) { if (equalsOneOf(path, nestedFolders)) { // nested source folder return false; } ...
public boolean visit(IResourceProxy proxy) throws CoreException { if (proxy.getType() == IResource.FOLDER) { IPath path = proxy.requestFullPath(); if (prefixesOneOf(path, nestedFolders)) { if (equalsOneOf(path, nestedFolders)) { // nested source folder return false; } ...
private void checkSocketFactory() throws TomcatException { if(secure) { try { // The SSL setup code has been moved into // SSLImplementation since SocketFactory doesn't // provide a wide enough interface sslImplementation=SSLImplementation.getInstance (sslImplementationName); ...
private void checkSocketFactory() throws TomcatException { if(secure) { try { // The SSL setup code has been moved into // SSLImplementation since SocketFactory doesn't // provide a wide enough interface sslImplementation=SSLImplementation.getInstance (sslImplementationName); ...
public void parseTypeMemberDeclarations( char[] contents, int start, int end) { boolean old = diet; try { diet = true; /* automaton initialization */ initialize(); goForClassBodyDeclarations(); /* scanner initialization */ scanner.setSource(contents); scanner.recordLineSeparator = false; scan...
public void parseTypeMemberDeclarations( char[] contents, int start, int end) { boolean old = diet; try { diet = true; /* automaton initialization */ initialize(); goForClassBodyDeclarations(); /* scanner initialization */ scanner.setSource(contents); scanner.recordLineSeparator = false; scan...
public CompletionOnFieldName(char[] name, int sourceStart, int sourceEnd) { super(CharOperation.concat(name, FAKENAMESUFFIX), sourceStart, sourceEnd); //$NON-NLS-1$ this.realName = name; }
public CompletionOnFieldName(char[] name, int sourceStart, int sourceEnd) { super(CharOperation.concat(name, FAKENAMESUFFIX), sourceStart, sourceEnd); this.realName = name; }
public short getFootprint() { if (footprint >= 0) return (short)footprint; int foot = 0; DataByteOutputStream out = new DataByteOutputStream(); try { rrToWire(out, null); } catch (IOException e) {} byte [] rdata = out.toByteArray(); if (alg == DNSSEC.RSA) { int d1 = rdata[rdata.length - 3] & 0xFF; i...
public short getFootprint() { if (footprint >= 0) return (short)footprint; int foot = 0; DataByteOutputStream out = new DataByteOutputStream(); try { rrToWire(out, null); } catch (IOException e) {} byte [] rdata = out.toByteArray(); if (alg == DNSSEC.RSAMD5) { int d1 = rdata[rdata.length - 3] & 0xFF; ...
public InetAddress getAddress() { return address; } byte [] rrToWire(Compression c) { if (address == null) return null; else return address.getAddress(); }
public InetAddress getAddress() { return address; } byte [] rrToWire(Compression c, int index) { if (address == null) return null; else return address.getAddress(); }
private static void digestSIG(DataByteOutputStream out, SIGRecord sig) { out.writeShort(sig.getTypeCovered()); out.writeByte(sig.getAlgorithm()); out.writeByte(sig.getLabels()); out.writeInt(sig.getOrigTTL()); out.writeInt((int) (sig.getExpire().getTime() / 1000)); out.writeInt((int) (sig.getTimeSigned().getTime(...
private static void digestSIG(DataByteOutputStream out, SIGRecord sig) { out.writeShort(sig.getTypeCovered()); out.writeByte(sig.getAlgorithm()); out.writeByte(sig.getLabels()); out.writeUnsignedInt(sig.getOrigTTL()); out.writeInt((int) (sig.getExpire().getTime() / 1000)); out.writeInt((int) (sig.getTimeSigned()....
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()).getTreeSelection(); //Folder folder = (Folder) r[0].getFolder(); MainInterface.processor.addOp(new ApplyFilterCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTreeSelection(); //Folder folder = (Folder) r[0].getFolder(); MainInterface.processor.addOp(new ApplyFilterCommand(r)); }
public IToolBarManager2 createToolBarManager() { return new ToolBarManager2(SWT.FLAT | SWT.RIGHT | SWT.WRAP); }
public IToolBarManager2 createToolBarManager() { return new ToolBarManager2(SWT.FLAT | SWT.RIGHT); }
private void revalidateSearch() { VirtualHeader h; // Analyze the Filter Filter filter = (Filter) getFilter().clone(); FilterRule rule = filter.getFilterRule(); for( int i=0;i <rule.count(); i++) { FilterCriteria c = rule.get(i); if( ! c.getTypeString().equalsIgnoreCase("flags")) { rule.remove(i...
private void revalidateSearch() { VirtualHeader h; // Analyze the Filter Filter filter = (Filter) getFilter().clone(); FilterRule rule = filter.getFilterRule(); for( int i=0;i <rule.count(); i++) { FilterCriteria c = rule.get(i); if( ! c.getTypeString().equalsIgnoreCase("flags")) { rule.remove(i...
public void apply(Message m, TSIGRecord old) throws IOException { Date timeSigned = new Date(); short fudge = 300; hmacSigner h = new hmacSigner(key); Name alg = new Name(HMAC); try { if (old != null) { DataByteOutputStream dbs = new DataByteOutputStream(); dbs.writeShort((short)old.getSignature().length...
public void apply(Message m, TSIGRecord old) throws IOException { Date timeSigned = new Date(); short fudge = 300; hmacSigner h = new hmacSigner(key); Name alg = new Name(HMAC); try { if (old != null) { DataByteOutputStream dbs = new DataByteOutputStream(); dbs.writeShort((short)old.getSignature().length...
public void initializeDefaultPreferences() { // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().getMap(); // compiler defaults // Override some compiler defaults defaultOptionsMap.put(J...
public void initializeDefaultPreferences() { // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().getMap(); // compiler defaults // Override some compiler defaults defaultOptionsMap.put(J...
* N.B. This method is package-private, so that the implementations * of this method in each of the concrete AST node types do not * clutter up the API doc. * </p> * * @param apiLevel the API level; one of the <code>AST.LEVEL_&ast;</code> constants * @return a list of property descriptors (element type: ...
* N.B. This method is package-private, so that the implementations * of this method in each of the concrete AST node types do not * clutter up the API doc. * </p> * * @param apiLevel the API level; one of the <code>AST.LEVEL_&ast;</code> constants * @return a list of property descriptors (element type: ...
private IStatus openErrorDialog(String title, String msg, final ErrorInfo errorInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); //Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) { return Status.CANCEL_STATUS; } ...
private IStatus openErrorDialog(String title, String msg, final ErrorInfo errorInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); //Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) { return Status.CANCEL_STATUS; } ...
public void actionPerformed(ActionEvent evt) { URLController c = new URLController(); try { c.open(new URL("http://www.sourceforge.net/projects/columba/bugs")); } catch (MalformedURLException mue) { } }
public void actionPerformed(ActionEvent evt) { URLController c = new URLController(); try { c.open(new URL("http://columba.sourceforge.net/phpBB2/viewforum.php?f=15")); } catch (MalformedURLException mue) { } }
public static IResource[] getGeneratedResources(IRegion region, boolean includesNonJavaResources) { if (region == null) throw new IllegalArgumentException("region cannot be null"); //$NON-NLS-1$ IJavaElement[] elements = region.getElements(); HashMap projectsStates = new HashMap(); ArrayList collector = new Ar...
public static IResource[] getGeneratedResources(IRegion region, boolean includesNonJavaResources) { if (region == null) throw new IllegalArgumentException("region cannot be null"); //$NON-NLS-1$ IJavaElement[] elements = region.getElements(); HashMap projectsStates = new HashMap(); ArrayList collector = new Ar...
public void restartTimer() { // recreate name of menuitem createName(); DefaultItem item = null; if (accountItem.isPopAccount()) { XmlElement e = accountItem.getRoot().getElement("popserver"); item = new DefaultItem(e); } else { XmlElement e = accountItem.getRoot().getElement("imapserver"); ite...
public void restartTimer() { // recreate name of menuitem createName(); DefaultItem item = null; if (accountItem.isPopAccount()) { XmlElement e = accountItem.getRoot().getElement("popserver"); item = new DefaultItem(e); } else { XmlElement e = accountItem.getRoot().getElement("imapserver"); ite...
ICompoundCommandHandlerService getCompoundCommandHandlerService(); package org.eclipse.ui.commands; /** * An instance of this interface provides support for managing commands at the * <code>IWorkbenchPage</code> level. * <p> * This interface is not intended to be extended or implemented by clients. * </p> * <p>...
ICompoundCommandHandlerService getCompoundCommandHandlerService(); package org.eclipse.ui.commands; /** * An instance of this interface provides support for managing commands at the * <code>IWorkbenchPage</code> level. * <p> * This interface is not intended to be extended or implemented by clients. * </p> * <p>...
public static RemoteKey getRemoteKey() { return rk; } static { try { spaceID = new UID(); rk = new RemoteKey(spaceID, InetAddress.getLocalHost()); } catch (Exception e) { e.printStackTrace(); } }
public static RemoteKey getRemoteKey() { return rk; } static { try { spaceID = new UID(); rk = new RemoteKey(spaceID, InetAddress.getLocalHost().getAddress()); } catch (Exception e) { e.printStackTrace(); } }
public void processConnection(TcpConnection connection, Object[] thData) { try { // XXX - Add workarounds for the fact that the underlying // serverSocket.accept() call can now time out. This whole // architecture needs some serious review. if (connection == null) return; Socket ...
public void processConnection(TcpConnection connection, Object[] thData) { try { // XXX - Add workarounds for the fact that the underlying // serverSocket.accept() call can now time out. This whole // architecture needs some serious review. if (connection == null) return; Socket ...
public String convert(LoggingEvent event) { String n = getFullyQualifiedName(event); if(precision <= 0) return n; else { int len = n.length(); // We substract 1 from 'len' when assigning to 'end' to avoid out of // bounds exception in return r.substring(end+1, len). This can happen if //...
public String convert(LoggingEvent event) { String n = getFullyQualifiedName(event); if(precision <= 0) return n; else { int len = n.length(); // We substract 1 from 'len' when assigning to 'end' to avoid out of // bounds exception in return r.substring(end+1, len). This can happen if //...
public PropPanelCallEvent() { super("Call event", null, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-st...
public PropPanelCallEvent() { super("Call event", null, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-st...
public GoFilteredChildren(String name, TreeModelPrereqs tm, Predicate pred) { _name = name; _tm = tm; _pred = pred; }
public GoFilteredChildren(String name, TreeModelPrereqs tm, Predicate pred) { _name = Localizer.localize ("Tree", name); _tm = tm; _pred = pred; }
public String toString() { return "ClasspathDirectory " + path; }
public String toString() { return "ClasspathDirectory "/*nonNLS*/ + path; }
public ChLink() { setNextCategory("Naming"); addItem("Does the name '{name}' clearly describe the class?"); addItem("Is '{name}' a noun or noun phrase?"); addItem("Could the name '{name}' be misinterpreted to mean something else?"); setNextCategory("Encoding"); addItem("Should {name} be its own class or...
public ChLink() { setNextCategory("Naming"); addItem("Does the name '{name}' clearly describe the class?"); addItem("Is '{name}' a noun or noun phrase?"); addItem("Could the name '{name}' be misinterpreted to mean something else?"); setNextCategory("Encoding"); addItem("Should {name} be its own class or...
protected CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, MatchLocator locator, IFile file, CompilationUnit compilationUnit) { MatchSet originalMatchSet = this.matchSet; CompilationUnitDeclaration unit = null; try { this.matchSet = new MatchSet(locator); CompilationResult compilationResult = ne...
protected CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, MatchLocator locator, IFile file, CompilationUnit compilationUnit) { MatchSet originalMatchSet = this.matchSet; CompilationUnitDeclaration unit = null; try { this.matchSet = new MatchSet(locator); CompilationResult compilationResult = ne...
public void run(IProgressMonitor monitor) throws CoreException { JavaModelManager manager = JavaModelManager.getJavaModelManager(); DeltaProcessor deltaProcessor = manager.getDeltaProcessor(); int previousDeltaCount = deltaProcessor.javaModelDeltas.size(); try { progressMonitor = monitor; pushOperation(t...
public void run(IProgressMonitor monitor) throws CoreException { JavaModelManager manager = JavaModelManager.getJavaModelManager(); DeltaProcessor deltaProcessor = manager.getDeltaProcessor(); int previousDeltaCount = deltaProcessor.javaModelDeltas.size(); try { progressMonitor = monitor; pushOperation(t...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { CompilationResult result = new CompilationResult(sourceTypes[0].getFileName(), 1, 1, this.options.maxProblemsPerUnit); // need to hold onto this CompilationUnitDeclaration unit = SourceTypeConverter.buildCompilationUnit( sou...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { CompilationResult result = new CompilationResult(sourceTypes[0].getFileName(), 1, 1, this.options.maxProblemsPerUnit); // need to hold onto this CompilationUnitDeclaration unit = SourceTypeConverter.buildCompilationUnit( sou...
public SourceElementParser parser; /*
private String containerRelativePath; SourceElementParser parser; /*
protected void updateTasksFor(SourceFile sourceFile, CompilationResult result) throws CoreException { IMarker[] markers = JavaBuilder.getTasksFor(sourceFile.resource); CategorizedProblem[] tasks = result.getTasks(); if (tasks == null && markers.length == 0) return; JavaBuilder.removeTasksFor(sourceFile.resource); ...
protected void updateTasksFor(SourceFile sourceFile, CompilationResult result) throws CoreException { IMarker[] markers = JavaBuilder.getTasksFor(sourceFile.resource); CategorizedProblem[] tasks = result.getTasks(); if (tasks == null && markers.length == 0) return; JavaBuilder.removeTasksFor(sourceFile.resource); ...
private boolean isWorthBuilding() throws CoreException { boolean abortBuilds = JavaCore.ABORT.equals(javaProject.getOption(JavaCore.CORE_JAVA_BUILD_INVALID_CLASSPATH, true)); if (!abortBuilds) return true; // Abort build only if there are classpath errors if (isClasspathBroken(javaProject.getRawClasspath(), curr...
private boolean isWorthBuilding() throws CoreException { boolean abortBuilds = JavaCore.ABORT.equals(javaProject.getOption(JavaCore.CORE_JAVA_BUILD_INVALID_CLASSPATH, true)); if (!abortBuilds) return true; // Abort build only if there are classpath errors if (isClasspathBroken(javaProject.getRawClasspath(), curr...
public void testFilter() { assertEquals(fFiltered, BaseTestRunner.filterStack(fUnfiltered)); }
public void testFilter() { assertEquals(fFiltered, BaseTestRunner.getFilteredTrace(fUnfiltered)); }
public MenuPluginHandler() { super("menu",null); menuPlugins=new Vector(); }
public MenuPluginHandler() { super("org.columba.core.menu",null); menuPlugins=new Vector(); }
protected boolean computeChildren(OpenableElementInfo info) { JarPackageFragmentInfo jInfo= (JarPackageFragmentInfo)info; if (jInfo.fEntryNames != null){ ArrayList vChildren = new ArrayList(); for (Iterator iter = jInfo.fEntryNames.iterator(); iter.hasNext();) { String child = (String) iter.next(); IClassFi...
protected boolean computeChildren(OpenableElementInfo info) { JarPackageFragmentInfo jInfo= (JarPackageFragmentInfo)info; if (jInfo.fEntryNames != null){ ArrayList vChildren = new ArrayList(); for (Iterator iter = jInfo.fEntryNames.iterator(); iter.hasNext();) { String child = (String) iter.next(); IClassFi...
public FilterCompoundCommand(Filter filter, IFolder sourceFolder, Object[] uids) throws Exception { super(); // get plugin handler for filter actions IExtensionHandler pluginHandler = PluginManager .getInstance().getHandler("org.columba.mail.filteraction"); // get list of all filter actions FilterA...
public FilterCompoundCommand(Filter filter, IFolder sourceFolder, Object[] uids) throws Exception { super(); // get plugin handler for filter actions IExtensionHandler pluginHandler = PluginManager .getInstance().getExtensionHandler("org.columba.mail.filteraction"); // get list of all filter actions ...
public String getMainTaskName(){ return Util.bind("operation.createTypeProgress"/*nonNLS*/); }
public String getMainTaskName(){ return Util.bind("operation.createTypeProgress"); //$NON-NLS-1$ }
import org.eclipse.ui.internal.components.framework.IServiceProvider; /******************************************************************************* * Copyright (c) 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclip...
import org.eclipse.ui.internal.components.framework.IServiceProvider; /******************************************************************************* * Copyright (c) 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclip...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record variable initialization if any if (!flowInfo.isDeadEnd() && !flowInfo.isFakeReachable()) { bits |= IsLocalDeclarationReachableMASK; // only set if actually reached } if (initialization == nul...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record variable initialization if any if (flowInfo != FlowInfo.DeadEnd && !flowInfo.isFakeReachable()) { bits |= IsLocalDeclarationReachableMASK; // only set if actually reached } if (initialization...
public ColumnOptionsPlugin(MailFrameMediator mediator) { super("columns", mediator); }
public ColumnOptionsPlugin(MailFrameMediator mediator) { super("columns", "ColumnOptions", mediator); }
public byte [] toWireCanonical(int section) throws IOException { DataByteOutputStream out = new DataByteOutputStream(); toWireCanonical(out); return out.toByteArray(); }
public byte [] toWireCanonical() throws IOException { DataByteOutputStream out = new DataByteOutputStream(); toWireCanonical(out); return out.toByteArray(); }
private boolean getUpdateValue(IStructuredSelection selection) { if (selection.size() > 1) return false; if (!super.updateSelection(selection)) return false; List resources = getSelectedResources(); if(resources.size() != 1) return false; return true; } /* (non-Javadoc) * Method declared on WorkspaceAc...
private boolean getUpdateValue(IStructuredSelection selection) { if (selection.size() > 1) return false; if (!super.updateSelection(selection)) return false; List resources = getSelectedResources(); if(resources.size() != 1) return false; return true; } /* (non-Javadoc) * Method declared on WorkspaceAc...
public Object getConstant() throws JavaModelException { Object constant = null; SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); if (info.initializationSource == null) { return null; } String constantSource = new String(info.initializationSource); String signature = info.getTypeSign...
public Object getConstant() throws JavaModelException { Object constant = null; SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); if (info.initializationSource == null) { return null; } String constantSource = new String(info.initializationSource); String signature = info.getTypeSign...
protected Object convertArg(String val, Class type) { if(val == null) return null; String v = val.trim(); if (String.class.isAssignableFrom(type)) { return val; } else if (Integer.TYPE.isAssignableFrom(type)) { return new Integer(v); } else if (Long.TYPE.isAssignableFrom(type)...
protected Object convertArg(String val, Class type) { if(val == null) return null; String v = val.trim(); if (String.class.isAssignableFrom(type)) { return val; } else if (Integer.TYPE.isAssignableFrom(type)) { return new Integer(v); } else if (Long.TYPE.isAssignableFrom(type)...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(); if (this instanceof EditorSite) { EditorActionBuilder.ExternalContributor contributor = (EditorActionBuilder.ExternalContributor) ((EditorSite) this).getExtensionActionBarCon...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(getActionService(), getContextService()); if (this instanceof EditorSite) { EditorActionBuilder.ExternalContributor contributor = (EditorActionBuilder.ExternalContributor) ((Edi...
public void body(String text) throws Exception { Category cat = Category.getInstance(org.tigris.scarab.util.xml.DBImport.class); cat.debug("(" + state + ") activity attribute name body: " + text); super.body(text); }
public void body(String text) throws Exception { Category cat = Category.getInstance(org.tigris.scarab.util.xml.DBImport.class); cat.debug("(" + state + ") activity attribute name body: " + text); super.digesterPush(text); }
public void execute(Worker worker) throws Exception { FetchNewMessagesCommand command = new FetchNewMessagesCommand( getReferences()); POP3CommandReference[] r = (POP3CommandReference[]) getReferences(FIRST_EXECUTION); server = r[0].getServer(); command.log("Authenticating...", worker); int totalM...
public void execute(Worker worker) throws Exception { FetchNewMessagesCommand command = new FetchNewMessagesCommand( getReferences()); POP3CommandReference[] r = (POP3CommandReference[]) getReferences(FIRST_EXECUTION); server = r[0].getServer(); command.log("Authenticating...", worker); int totalM...
public void actionPerformed(ActionEvent evt) { // get selected stuff FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = new CreateFilterOnMessageCommand(r, CreateFil...
public void actionPerformed(ActionEvent evt) { // get selected stuff FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = new CreateFilterOnMessageCommand(getFrameMediator(), r, ...
protected static Record rrFromWire(NS_CNAME_PTRRecord rec, DataByteInputStream in) throws IOException
protected static Record rrFromWire(NS_CNAME_PTRRecord rec, DNSInput in) throws IOException
public ViewReference(ViewFactory factory, String id, String secondaryId, IMemento memento) { super(); this.factory = factory; ViewDescriptor desc = (ViewDescriptor) this.factory.viewReg.find(id); ImageDescriptor iDesc = null; String title = null; if (desc != null) { ...
public ViewReference(ViewFactory factory, String id, String secondaryId, IMemento memento) { super(); this.factory = factory; ViewDescriptor desc = (ViewDescriptor) this.factory.viewReg.find(id); ImageDescriptor iDesc = null; String title = null; if (desc != null) { ...
public interface IContextDefinition 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 Common Publ...
public interface IContextDefinition 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 Common Publ...
public TypeBinding resolveType(BlockScope scope) { TypeBinding binding = super.resolveType(scope); if (binding == null || !binding.isValidBinding()) throw new SelectionNodeFound(); else throw new SelectionNodeFound(this, binding); }
public TypeBinding resolveType(BlockScope scope) { TypeBinding binding = super.resolveType(scope); if (binding == null || !binding.isValidBinding()) throw new SelectionNodeFound(); else throw new SelectionNodeFound(binding); }
protected void addAffectedSourceFiles(char[] secondaryTypeName) { // the secondary type search can have too many false hits if we addAffectedSource files using all the qualified type names // of each secondary type... so look for the dependents 1 file at a time int index = CharOperation.lastIndexOf('/', secondaryTyp...
protected void addAffectedSourceFiles(char[] secondaryTypeName) { // the secondary type search can have too many false hits if we addAffectedSource files using all the qualified type names // of each secondary type... so look for the dependents 1 file at a time int index = CharOperation.lastIndexOf('/', secondaryTyp...
public static char[] getResourceContentsAsCharArray(IFile file) throws JavaModelException { InputStream stream= null; try { stream = new BufferedInputStream(file.getContents(true)); } catch (CoreException e) { throw new JavaModelException(e); } try { String encoding = JavaCore.create(file.getProject()).getOp...
public static char[] getResourceContentsAsCharArray(IFile file) throws JavaModelException { InputStream stream= null; try { stream = new BufferedInputStream(file.getContents(true)); } catch (CoreException e) { throw new JavaModelException(e, IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST); } try { String e...
public boolean search(IIndex index) { if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException(); if (index == null) return COMPLETE; ReadWriteMonitor monitor = indexManager.getMonitorFor(index); if (monitor == null) return COMPLETE; // index got deleted since acquired ...
public boolean search(IIndex index) { if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException(); if (index == null) return COMPLETE; ReadWriteMonitor monitor = indexManager.getMonitorFor(index); if (monitor == null) return COMPLETE; // index got deleted since acquired ...
void contextChanged(IContextEvent contextEvent); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public Licen...
void contextChanged(IContextEvent contextEvent); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public Licen...
public void build(boolean computeSubtypes) { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { // optimize access to zip files while building hierarchy manager.cacheZipFiles(); if (computeSubtypes) { // Note by construction there always is a focus type here IType focusType = ge...
public void build(boolean computeSubtypes) { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { // optimize access to zip files while building hierarchy manager.cacheZipFiles(); if (computeSubtypes) { // Note by construction there always is a focus type here IType focusType = ge...
public void logServlet( String msg , Throwable t ) { if (firstLog == true) { csLog = Logger.getLogger("servlet_log"); if( csLog!= null ) { csLog.setCustomOutput("true"); csLog.setVerbosityLevel(Logger.INFORMATION); firstLog = false; } } if (csLog != null) { csLog.log("<l:context path=\"...
public void logServlet( String msg , Throwable t ) { if (firstLog == true) { csLog = Logger.getLogger("servlet_log"); if( csLog!= null ) { csLog.setCustomOutput("true"); csLog.setVerbosityLevel(Logger.INFORMATION); firstLog = false; } } if (csLog != null) { csLog.log("<l:context path=\"...
private List filteredEditors() { IObjectActivityManager objectManager = getObjectActivityManager(); if(objectManager == null) return editors; ArrayList filtered = new ArrayList(editors); filtered.retainAll(objectManager.getActiveObjects()); return filtered; }
private List filteredEditors() { IObjectActivityManager objectManager = getObjectActivityManager(); if(objectManager == null) return editors; ArrayList filtered = new ArrayList(editors); filtered.retainAll(objectManager.getEnabledObjects()); return filtered; }
public void showMessage(MimePart bodyPart) throws Exception { boolean htmlViewer = false; // Which Charset shall we use ? String charset; if (activeCharset.equals("auto")) charset = bodyPart.getHeader().getContentParameter("charset"); else charset = activeCharset; Decoder decoder = CoderR...
public void showMessage(MimePart bodyPart) throws Exception { boolean htmlViewer = false; // Which Charset shall we use ? String charset; if (activeCharset.equals("auto")) charset = bodyPart.getHeader().getContentParameter("charset"); else charset = activeCharset; Decoder decoder = CoderR...
public void init() { // init addressbook plugin handlers // PluginManager.getInstance().addHandlers( // "org/columba/addressbook/plugin/pluginhandler.xml"); /* try { InputStream is = this.getClass().getResourceAsStream( "/org/columba/addressbook/action/action.xml"); PluginManager.getInstance().getH...
public void init() { // init addressbook plugin handlers // PluginManager.getInstance().addHandlers( // "org/columba/addressbook/plugin/pluginhandler.xml"); /* try { InputStream is = this.getClass().getResourceAsStream( "/org/columba/addressbook/action/action.xml"); PluginManager.getInstance().getH...
public void addClassDiagram(MPackage target, String name) { Project p = ProjectBrowser.TheInstance.getProject(); MNamespace ns = (MNamespace) target; try { Diagram d = new UMLClassDiagram(ns); d.setName(getDiagramName(name)); p.addMember(d); ProjectBrowser.TheInstance.getNavPane().addToHistor...
public void addClassDiagram(MPackage target, String name) { Project p = ProjectBrowser.TheInstance.getProject(); MNamespace ns = (MNamespace) target; try { ArgoDiagram d = new UMLClassDiagram(ns); d.setName(getDiagramName(name)); p.addMember(d); ProjectBrowser.TheInstance.getNavPane().addToHi...
public String toString() { return Localizer.localize ("Tree", "Link->Stimuli"); }
public String toString() { return Localizer.localize ("Tree", "misc.link.stimuli"); }
public int getNextToken() throws InvalidInputException { this.wasAcr = false; if (diet) { jumpOverMethodBody(); diet = false; return currentPosition > source.length ? TokenNameEOF : TokenNameRBRACE; } try { while (true) { //loop for jumping over comments withoutUnicodePtr = 0; //start with a new toke...
public int getNextToken() throws InvalidInputException { this.wasAcr = false; if (diet) { jumpOverMethodBody(); diet = false; return currentPosition > source.length ? TokenNameEOF : TokenNameRBRACE; } try { while (true) { //loop for jumping over comments withoutUnicodePtr = 0; //start with a new toke...
public int getNodeType() { return PARENTHESIZED_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ParenthesizedExpression result = new ParenthesizedExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.set...
public int getNodeType() { return PARENTHESIZED_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ParenthesizedExpression result = new ParenthesizedExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.se...
public void execute(Worker worker) throws Exception { ColumbaLogger.log.debug("reference=" + getReferences(Command.UNDOABLE_OPERATION)); FolderCommandReference[] r = (FolderCommandReference[]) getReferences(Command.FIRST_EXECUTION); if (r == null) { return; ...
public void execute(Worker worker) throws Exception { ColumbaLogger.log.info("reference=" + getReferences(Command.UNDOABLE_OPERATION)); FolderCommandReference[] r = (FolderCommandReference[]) getReferences(Command.FIRST_EXECUTION); if (r == null) { return; }...
public NewProjectAction() { this(((Workbench)PlatformUI.getWorkbench()).getActiveWorkbenchWindow()); }
public NewProjectAction() { this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()); }
private void prepareContextData() throws Exception { // create empty value value = mediator.getSemanticContext().createValue(); // from email address from = (Address) srcFolder.getAttribute(uid, "columba.from"); // parse name = NameParser.getInstance().parseDisplayName(from.toString()); subject = (Str...
private void prepareContextData() throws Exception { // create empty value value = mediator.getSemanticContext().createValue(); // from email address from = (Address) srcFolder.getAttribute(uid, "columba.from"); // parse name = NameParser.getInstance().parseDisplayName(from.getDisplayName()); subject ...
public void update(Scribe scribe, int sourceRestart){ this.outputColumn = scribe.column; this.outputLine = scribe.line; this.inputOffset = sourceRestart; this.outputIndentationLevel = scribe.indentationLevel; this.lastNumberOfNewLines = scribe.lastNumberOfNewLines; this.needSpace = scribe.needSpace; this...
public void update(Scribe scribe, int sourceRestart){ this.outputColumn = scribe.column; this.outputLine = scribe.line; this.inputOffset = sourceRestart; this.outputIndentationLevel = scribe.indentationLevel; this.lastNumberOfNewLines = scribe.lastNumberOfNewLines; this.needSpace = scribe.needSpace; this...
public IStatus runInUIThread(IProgressMonitor updateMonitor) { //Cancel the job if the tree viewer got closed if (treeViewer.getControl().isDisposed()) { return Status.CANCEL_STATUS; } treeViewer.add(parent, children); return Status.OK...
public IStatus runInUIThread(IProgressMonitor updateMonitor) { //Cancel the job if the tree viewer got closed if (treeViewer.getControl().isDisposed() || updateMonitor.isCanceled()) { return Status.CANCEL_STATUS; } treeViewer.add(parent, children); ...
public IJavaElement getPrimaryElement(boolean checkOwner) { if (checkOwner) { CompilationUnit cu = (CompilationUnit)getAncestor(COMPILATION_UNIT); if (cu.owner == DefaultWorkingCopyOwner.PRIMARY) return this; } IJavaElement parent =fParent.getPrimaryElement(false); return ((IType)parent).getField(fName); }
public IJavaElement getPrimaryElement(boolean checkOwner) { if (checkOwner) { CompilationUnit cu = (CompilationUnit)getAncestor(COMPILATION_UNIT); if (cu.isPrimary()) return this; } IJavaElement parent =fParent.getPrimaryElement(false); return ((IType)parent).getField(fName); }
public static final ViewPane createView( ViewFactory factory, String viewId, String theme) throws PartInitException { WorkbenchPartReference ref = (WorkbenchPartReference) factory.createView( viewId); ViewPane newPart = (ViewPane) ref.getPane(); if (newPart == null) { WorkbenchPage page = (Wo...
public static final ViewPane createView( ViewFactory factory, String viewId, String theme) throws PartInitException { WorkbenchPartReference ref = (WorkbenchPartReference) factory.createView( viewId); ViewPane newPart = (ViewPane) ref.getPane(); if (newPart == null) { WorkbenchPage page = (Wo...
public void showDialog(String message, String password, boolean save) { /* * JLabel hostLabel = new JLabel(MessageFormat.format(MailResourceLoader * .getString("dialog", "password", "enter_password"), new Object[] { * user, host })); */ JLabel hostLabel = new JLabel(message); passwordField = new JP...
public void showDialog(String message, String password, boolean save) { /* * JLabel hostLabel = new JLabel(MessageFormat.format(MailResourceLoader * .getString("dialog", "password", "enter_password"), new Object[] { * user, host })); */ JLabel hostLabel = new JLabel(message); passwordField = new JP...
public String getType() { int lastDot= file.getPath().lastIndexOf('.'); if (lastDot == -1) return ""; return file.getPath().substring(lastDot + 1); }
public String getType() { int lastDot= file.getPath().lastIndexOf('.'); if (lastDot == -1) return ""/*nonNLS*/; return file.getPath().substring(lastDot + 1); }
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaEle...
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaEle...