buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public boolean isSimilar(IMethod method) { return this.areSimilarMethods( this.getElementName(), this.getParameterTypes(), method.getElementName(), method.getParameterTypes(), null); }
public boolean isSimilar(IMethod method) { return areSimilarMethods( this.getElementName(), this.getParameterTypes(), method.getElementName(), method.getParameterTypes(), null); }
public String getActiveAcceleratorConfigurationId() { return org.eclipse.ui.internal.commands.Manager.getInstance().getKeyMachine().getKeyConfiguration(); }
public String getActiveAcceleratorConfigurationId() { return org.eclipse.ui.internal.commands.Manager.getInstance().getKeyMachine().getConfiguration(); }
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = new SelectFolderDialog(getFrameMediator()); if (dialog.success()) { IMailFolder destFolder = dialog.getSelectedFolder(); IMailFolderCommandReference result = ((MailFrameMediator) getFrameMediator()) .getTableSelection(); res...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = new SelectFolderDialog(getFrameMediator()); if (dialog.success()) { IMailFolder destFolder = (IMailFolder) dialog.getSelectedFolder(); IMailFolderCommandReference result = ((MailFrameMediator) getFrameMediator()) .getTableSelec...
private char[] readIndexState() { try { return org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(savedIndexNamesFile, null); } catch (IOException ignored) { if (VERBOSE) Util.verbose("Failed to read saved index file names"); //$NON-NLS-1$ return new char[0]; } }
private char[] readIndexState() { try { return org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(savedIndexNamesFile, null); } catch (IOException ignored) { if (VERBOSE) Util.verbose("Failed to read saved index file names"); //$NON-NLS-1$ return CharOperation.NO_CHAR; } }
public AboutBox(Frame owner, boolean modal) { super(owner,modal); this.setTitle("About Argo/UML"); _splashPanel = new SplashPanel("Splash"); int imgWidth = _splashPanel.getImage().getIconWidth(); int imgHeight = _splashPanel.getImage().getIconHeight(); Dimension scrSize = Toolkit.getDefaultToo...
public AboutBox(Frame owner, boolean modal) { super(owner,modal); this.setTitle("About Argo/UML"); _splashPanel = new SplashPanel("Splash"); int imgWidth = _splashPanel.getImage().getIconWidth(); int imgHeight = _splashPanel.getImage().getIconHeight(); Dimension scrSize = Toolkit.getDefaultToo...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean affected = false; if (this.genericType == unresolvedType) { this.genericType = resolvedType; // no raw conversion affected = true; } else if (this.bound == unresolvedType) {...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean affected = false; if (this.genericType == unresolvedType) { this.genericType = resolvedType; // no raw conversion affected = true; } else if (this.bound == unresolvedType) {...
public boolean isTriggeringEvent(LoggingEvent event) { return event.level.isGreaterOrEqual(Level.ERROR); }
public boolean isTriggeringEvent(LoggingEvent event) { return event.getLevel().isGreaterOrEqual(Level.ERROR); }
public Context getContext(String name) { loghelper.log("getContext(String) is deprecated", new Throwable("trace"), Logger.DEBUG); return (Context)contexts.get(name); }
public Context getContext(String name) { // loghelper.log("getContext(String) is deprecated", new Throwable("trace"), Logger.DEBUG); return (Context)contexts.get(name); }
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(getId()); // TODO why is this here? and it should be using HandlerSubmissions directly.. if (this instanceof EditorSite) { EditorActionBuilder.ExternalContributor contribu...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(this); // TODO why is this here? and it should be using HandlerSubmissions directly.. if (this instanceof EditorSite) { EditorActionBuilder.ExternalContributor contributor...
public void handleEvent(Event event) { Shell shell = (Shell) event.widget; folder.setBounds(shell.getClientArea()); } }); // Register this detached view as a window (for key bindings). final IWorkbenchContextSupport contextSupport = getWor...
public void handleEvent(Event event) { Shell shell = (Shell) event.widget; folder.setBounds(shell.getClientArea()); } }); // Register this detached view as a window (for key bindings). final IWorkbenchContextSupport contextSupport = getWor...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(Util.bind("codeAssist.nu...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(Util.bind("codeAssist.nu...
private List getPreferenceSearchHistory() { List searchList = new ArrayList(); IDialogSettings settings = getDialogSettings(); String[] search = settings.getArray(SEARCHHISTORY); //$NON-NLS-1$ if (search != null) { for (int i = 0; i < search.length; i++) searchList.add(search[i]); } return searchL...
private List getPreferenceSearchHistory() { List searchList = new ArrayList(); IDialogSettings settings = getDialogSettings(); String[] search = settings.getArray(SEARCHHISTORY); if (search != null) { for (int i = 0; i < search.length; i++) searchList.add(search[i]); } return searchList; }
public int getNodeType() { return CONDITIONAL_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ConditionalExpression result = new ConditionalExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setExpres...
public int getNodeType() { return CONDITIONAL_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ConditionalExpression result = new ConditionalExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setExpre...
private @OM@.Attachment createAttachment(@OM@.Issue issueOM, Module module, Attachment attachment) throws Exception { @OM@.Attachment attachmentOM = @OM@.AttachmentManager.getInstance(); attachmentOM.setIssue(issueOM); attachmentOM.set...
private @OM@.Attachment createAttachment(@OM@.Issue issueOM, Module module, Attachment attachment) throws Exception { @OM@.Attachment attachmentOM = @OM@.AttachmentManager.getInstance(); attachmentOM.setIssue(issueOM); attachmentOM.set...
public int getNodeType() { return STRING_LITERAL; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { StringLiteral result = new StringLiteral(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setEscapedValue(getEscapedValue()...
public int getNodeType() { return STRING_LITERAL; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { StringLiteral result = new StringLiteral(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setEscapedValue(getEscapedValue(...
public Expression convert(QualifiedAllocationExpression expression) { if (expression.anonymousType != null) { return convert((AnonymousLocalTypeDeclaration) expression.anonymousType); } else { ClassInstanceCreation classInstanceCreation = this.ast.newClassInstanceCreation(); classInstanceCreation.setExpre...
public Expression convert(QualifiedAllocationExpression expression) { if (expression.anonymousType != null) { return convert(expression.anonymousType); } else { ClassInstanceCreation classInstanceCreation = this.ast.newClassInstanceCreation(); classInstanceCreation.setExpression(convert(expression.enclosi...
public DefaultCommandReference[] getSelection() { ColumbaLogger.log.info("folder="+folder); FolderCommandReference[] references = new FolderCommandReference[1]; references[0] = new FolderCommandReference((Folder) folder); return references; }
public DefaultCommandReference[] getSelection() { ColumbaLogger.log.info("folder="+folder); FolderCommandReference[] references = new FolderCommandReference[1]; references[0] = new FolderCommandReference(folder); return references; }
public void execute(IWorkerStatusController worker) throws Exception { // get references IMailFolderCommandReference r = (IMailFolderCommandReference) getReference(); imapFolder = (IMAPFolder) r.getSourceFolder(); // register for status events ((StatusObservableImpl) imapFolder.getObservable()).setWorker...
public void execute(IWorkerStatusController worker) throws Exception { // get references IMailFolderCommandReference r = (IMailFolderCommandReference) getReference(); imapFolder = (IMAPFolder) r.getSourceFolder(); // register for status events ((StatusObservableImpl) imapFolder.getObservable()).setWorker...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ ThrowStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescripto...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ ThrowStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescripto...
protected boolean isOkToCreateDelegate() { // test if the plugin has loaded String bundleId = configElement.getDeclaringExtension().getNamespace(); return BundleUtility.isActivated(bundleId); }
protected boolean isOkToCreateDelegate() { // test if the plugin has loaded String bundleId = configElement.getDeclaringExtension().getNamespace(); return BundleUtility.isActive(bundleId); }
public String format(LoggingEvent event) { if (sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } sbuf.append(Layout.LINE_SEP + "<tr>" + Layout.LINE_SEP); sbuf.append("<td>"); sbuf.append(event.timeStamp - event.getStartTime()); ...
public String format(LoggingEvent event) { if (sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } sbuf.append(Layout.LINE_SEP + "<tr>" + Layout.LINE_SEP); sbuf.append("<td>"); sbuf.append(event.timeStamp - LoggingEvent.getStartTime(...
protected void createErrorFor(IResource resource, String message) { try { IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); int severity = IMarker.SEVERITY_ERROR; if (message.equals(Util.bind("build.duplicateResource"))) if (JavaCore.WARNING.equals(javaBuilder.javaProject.get...
protected void createErrorFor(IResource resource, String message) { try { IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); int severity = IMarker.SEVERITY_ERROR; if (message.equals(Util.bind("build.duplicateResource"))) //$NON-NLS-1$ if (JavaCore.WARNING.equals(javaBuilder.j...
protected void initHeader(AbstractMessageFolder folder, Object[] uids) throws Exception { // get headerfields Header header = folder.getHeaderFields(uids[0], headerfields); // From which account is this mail? Integer accountUid = (Integer) folder.getAttribute(uids[0], "colum...
protected void initHeader(AbstractMessageFolder folder, Object[] uids) throws Exception { // get headerfields Header header = folder.getHeaderFields(uids[0], headerfields); // From which account is this mail? Integer accountUid = (Integer) folder.getAttribute(uids[0], "colum...
public void init(MessageView message, StatusBar statusBar) { super.init(); getContentPane().add(message, BorderLayout.CENTER); ViewItem viewItem = getFrameController().getViewItem(); if (viewItem.getBoolean("toolbars", "show_folderinfo") == true) toolbarPane.add(folderInfoPanel); }
public void init(MessageView message, StatusBar statusBar) { //super.init(); getContentPane().add(message, BorderLayout.CENTER); ViewItem viewItem = getFrameController().getViewItem(); if (viewItem.getBoolean("toolbars", "show_folderinfo") == true) toolbarPane.add(folderInfoPanel); }
public void menuAboutToShow(IMenuManager manager) { removePreviousMruWorkingSetActions(manager); addMruWorkingSetActions(manager); } }; menuManager.addMenuListener(menuListener); };
public void menuAboutToShow(IMenuManager manager) { removePreviousMruWorkingSetActions(manager); addMruWorkingSetActions(manager); } }; menuManager.addMenuListener(menuListener); }
public Rectangle getTabArea() { Rectangle bounds = control.getBounds(); Rectangle clientArea = control.getClientArea(); bounds.x = 0; bounds.y = 0; Geometry.expand(bounds, 0, 0, - (clientArea.height + clientArea.y), 0); return bounds; }...
public Rectangle getTabArea() { Rectangle bounds = control.getBounds(); Rectangle clientArea = control.getClientArea(); bounds.x = 0; bounds.y = 0; Geometry.expand(bounds, 0, 0, - (clientArea.height + clientArea.y), 0); return Geometry.toDi...
public void resolveStatements() { // ========= abort on fatal error ============= if (this.returnType != null && this.binding != null) { this.returnType.resolvedType = this.binding.returnType; // record the return type binding } // check if method with constructor name if (CharOperation.equals(this.sco...
public void resolveStatements() { // ========= abort on fatal error ============= if (this.returnType != null && this.binding != null) { this.returnType.resolvedType = this.binding.returnType; // record the return type binding } // check if method with constructor name if (CharOperation.equals(this.sco...
private void closeItems(TableItem items[]) { if (items.length == 0) { return; } // collect all instantiated editors that have been selected List selectedEditors = new ArrayList(); for (int i = 0; i < items.length; i++) { Adapter e = (Adapter) items[i].getData(); ...
private void closeItems(TableItem items[]) { if (items.length == 0) { return; } // collect all instantiated editors that have been selected List selectedEditors = new ArrayList(); for (int i = 0; i < items.length; i++) { Adapter e = (Adapter) items[i].getData(); ...
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals("CANCEL")) { result = false; setVisible(false); } else if (command.equals("CHOOSE")) { SelectAddressbookFolderDialog dialog = addressbookInterface.tree.getSelectAddressbookFolderDialog(); ...
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals("CANCEL")) { result = false; setVisible(false); } else if (command.equals("CHOOSE")) { SelectAddressbookFolderDialog dialog = addressbookInterface.tree.getSelectAddressbookFolderDialog(); ...
private static void startTypeIp(java.net.InetAddress a) throws ClusterException { byte aa[] = a.getAddress(); if (aa.length != 4) { throw new ClusterException( "Address size is " + aa.length + " instead of 4"); } if (aa[0] == 127) { throw new C...
private static void startTypeIp(java.net.InetAddress a) throws ClusterException { byte aa[] = a.getAddress(); if (aa.length != 4) { throw new ClusterException( "Address size is " + aa.length + " instead of 4"); } if (aa[0] == 127) { throw new C...
public String toString() { if (_version == null) return "{NotationNameImpl:" + _name + "}"; return "{NotationNameImpl:" + _name + " version " + _version + "}"; } /** Pre-populate the notation list with the internal notations. */ static { makeNotation("Default", null, null)...
public String toString() { if (_version == null) return "{NotationNameImpl:" + _name + "}"; return "{NotationNameImpl:" + _name + " version " + _version + "}"; } /** Pre-populate the notation list with the internal notations. */ static { makeNotation("Default", null, null)...
public PerspectiveDescriptor(File file) throws IOException, WorkbenchException { super(); InputStream stream = null; try { stream = new FileInputStream(file); InputStreamReader reader = new InputStreamReader(stream, "utf-8"); //$NON-NLS-1$ // Restore the layout state. IMemento memento = XMLMemento.createRea...
public PerspectiveDescriptor(File file) throws IOException, WorkbenchException { super(); InputStream stream = null; try { stream = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(stream, "utf-8")); //$NON-NLS-1$ // Restore the layout state. IMemento memento = XML...
protected void showMenu(PartPane pane) { pane.showViewMenu(); }
protected void showMenu(PartPane pane) { pane.showPaneMenu(); }
private String getBytesAsString(final byte[] bytes, final String lineSeparator, final int tabNumber) { StringBuffer buffer = new StringBuffer(); NumberFormat format = NumberFormat.getInstance(); format.setMaximumIntegerDigits(3); format.setMinimumIntegerDigits(3); final int length = bytes.length; if (lengt...
private String getBytesAsString(final byte[] bytes, final String lineSeparator, final int tabNumber) { StringBuffer buffer = new StringBuffer(); NumberFormat format = NumberFormat.getInstance(); format.setMaximumIntegerDigits(3); format.setMinimumIntegerDigits(3); final int length = bytes.length; if (lengt...
public boolean visit(StringLiteralConcatenation stringLiteral, BlockScope scope) { final int numberOfParens = (stringLiteral.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT; if (numberOfParens > 0) { manageOpeningParenthesizedExpression(stringLiteral, numberOfParens); } this.scribe.printCom...
public boolean visit(StringLiteralConcatenation stringLiteral, BlockScope scope) { final int numberOfParens = (stringLiteral.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT; if (numberOfParens > 0) { manageOpeningParenthesizedExpression(stringLiteral, numberOfParens); } this.scribe.printCom...
public Object eval( CallStack callstack, Interpreter interpreter) throws EvalError { BSHBlock tryBlock = ((BSHBlock)jjtGetChild(0)); Vector catchParams = new Vector(); Vector catchBlocks = new Vector(); int nchild = jjtGetNumChildren(); Node node = null; int i=1; while((i < nchild) && ((node = jjt...
public Object eval( CallStack callstack, Interpreter interpreter) throws EvalError { BSHBlock tryBlock = ((BSHBlock)jjtGetChild(0)); Vector catchParams = new Vector(); Vector catchBlocks = new Vector(); int nchild = jjtGetNumChildren(); Node node = null; int i=1; while((i < nchild) && ((node = jjt...
public ApplyFilterAction(FrameMediator frameMediator) { super(frameMediator, MailResourceLoader.getString("menu", "mainframe", "menu_folder_applyfilter")); // tooltip text putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu", "mainframe", ...
public ApplyFilterAction(FrameMediator frameMediator) { super(frameMediator, MailResourceLoader.getString("menu", "mainframe", "menu_folder_applyfilter")); // tooltip text putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu", "mainframe", ...
public ChClass() { 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 misinterperrted to mean something else?"); setNextCategory("Encoding"); addItem("Should {name} be its own class ...
public ChClass() { 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 o...
public CmdLineArgumentHandler(String[] args) { //this.mainInterface = mainInterface; ColumbaCmdLineArgumentParser cmdLineParser = new ColumbaCmdLineArgumentParser(); try { cmdLineParser.parse(args); } catch (CmdLineArgumentParser.UnknownOptionException e) { System.err.println(e.getMessage()); Col...
public CmdLineArgumentHandler(String[] args) { //this.mainInterface = mainInterface; ColumbaCmdLineArgumentParser cmdLineParser = new ColumbaCmdLineArgumentParser(); try { cmdLineParser.parse(args); } catch (CmdLineArgumentParser.UnknownOptionException e) { System.err.println(e.getMessage()); Col...
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { fastViewBar.update(true); } }); trimDropTarget = new TrimDropTarget(parent); DragUtil.addDragTarget(parent, trimDropTarget); createProgressIndicator(parent); }
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { fastViewBar.update(true); } }); trimDropTarget = new TrimDropTarget(parent, this); DragUtil.addDragTarget(parent, trimDropTarget); createProgressIndicator(parent); }
public update(InputStream in) throws IOException { Vector inputs = new Vector(); Vector istreams = new Vector(); query = new Message(); query.getHeader().setOpcode(Opcode.UPDATE); InputStreamReader isr = new InputStreamReader(in); BufferedReader br = new BufferedReader(isr); inputs.addElement(br); istreams.a...
public update(InputStream in) throws IOException { Vector inputs = new Vector(); Vector istreams = new Vector(); query = new Message(); query.getHeader().setOpcode(Opcode.UPDATE); InputStreamReader isr = new InputStreamReader(in); BufferedReader br = new BufferedReader(isr); inputs.addElement(br); istreams.a...
public FlowInfo copy() { // do not clone the DeadEnd if (this == DEAD_END) return this; // look for an unused preallocated object UnconditionalFlowInfo copy = new UnconditionalFlowInfo(); // copy slots copy.definiteInits = this.definiteInits; copy.potentialInits = this.potentialInits; copy.re...
public FlowInfo copy() { // do not clone the DeadEnd if (this == DEAD_END) return this; // look for an unused preallocated object UnconditionalFlowInfo copy = new UnconditionalFlowInfo(); // copy slots copy.definiteInits = this.definiteInits; copy.potentialInits = this.potentialInits; copy.re...
public IMAPResponse[] copy(String messageSet, String mailbox) throws Exception { Arguments args = new Arguments(); args.add(messageSet); args.add(mailbox); IMAPResponse[] responses = sendCommand("UID COPY", args); notifyResponseHandler(responses); IMAPResponse r = responses[responses.length - 1]; ...
public IMAPResponse[] copy(String messageSet, String mailbox) throws Exception { Arguments args = new Arguments(); args.add(new Atom(messageSet)); args.add(mailbox); IMAPResponse[] responses = sendCommand("UID COPY", args); notifyResponseHandler(responses); IMAPResponse r = responses[responses.length...
public MultiEditorPane() { System.out.println("making MultiEditorPane"); _tabPanels.addElement(new TabDiagram()); _tabPanels.addElement(new TabSrc()); _tabPanels.addElement(new TabTable()); _tabPanels.addElement(new TabUMLDisplay()); // debugging: _tabPanels.addElement(new TabHash()); ...
public MultiEditorPane() { System.out.println("making MultiEditorPane"); _tabPanels.addElement(new TabDiagram()); _tabPanels.addElement(new TabJavaSrc()); _tabPanels.addElement(new TabTable()); _tabPanels.addElement(new TabUMLDisplay()); // debugging: _tabPanels.addElement(new TabHash()); ...
protected void initialize() { subverticesList = new UMLCompositeStateSubvertexList(this, new UMLCompositeStateSubvertexListModel(this)); }
protected void initialize() { subverticesList = new UMLCompositeStateSubvertexList(this, new UMLCompositeStateSubvertexListModel()); }
public IContributionItem create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IContributionItem item = new SwitchToWindowMenu(window, getId(), false); return item; } };
public IContributionItem create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IContributionItem item = new SwitchToWindowMenu(window, getId(), true); return item; } };
public synchronized Remote get() throws NoMoreStubException { return get(null); }
public synchronized Remote get() throws NoMoreStubException { return get(emptyFilter); }
public TXTRecord(Name name, int dclass, long ttl, String string) { this(name, dclass, ttl, Collections.nCopies(1, string)); }
public TXTRecord(Name name, int dclass, long ttl, String string) { this(name, dclass, ttl, Collections.singletonList(string)); }
public void actionPerformed(ActionEvent evt) { // check for new messages MailCheckingManager.getInstance().checkAll(); try { // send all unsent messages found in Outbox Action sendAllAction; IExtension extension = PluginManager .getInstance().getHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_ACT...
public void actionPerformed(ActionEvent evt) { // check for new messages MailCheckingManager.getInstance().checkAll(); try { // send all unsent messages found in Outbox Action sendAllAction; IExtension extension = PluginManager .getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA...
public boolean execute() throws BuildException { attributes.log(Util.bind("ant.jdtadapter.info.usingJdtCompiler"), Project.MSG_VERBOSE); //$NON-NLS-1$ Commandline cmd = setupJavacCommand(); try { Class c = Class.forName(compilerClass); Constructor batchCompilerConstructor = c.getConstructor(new Class[] { ...
public boolean execute() throws BuildException { attributes.log(Util.bind("ant.jdtadapter.info.usingJdtCompiler"), Project.MSG_VERBOSE); //$NON-NLS-1$ Commandline cmd = setupJavacCommand(); try { Class c = Class.forName(compilerClass); Constructor batchCompilerConstructor = c.getConstructor(new Class[] { ...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof MethodDeclaration)) return IMPOSSIBLE_MATCH; MethodDeclaration method = (MethodDeclaration)node; if (resolve) { return this.matchLevel(method.binding); } else { // selector if (!this.matchesName(this.selector, method.selector)) ...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof MethodDeclaration)) return IMPOSSIBLE_MATCH; MethodDeclaration method = (MethodDeclaration)node; if (resolve) { return this.matchLevel(method.binding); } else { // selector if (!this.matchesName(this.selector, method.selector)) ...
public final ExecutionEvent createExecutionEvent(final Command command, final Event event) { return new ExecutionEvent(command, null, event, getCurrentState()); }
public final ExecutionEvent createExecutionEvent(final Command command, final Event event) { return new ExecutionEvent(command, Collections.EMPTY_MAP, event, getCurrentState()); }
public void setQualifier(Name qualifier) { if (qualifier == null) { throw new IllegalArgumentException(); } // a QualifiedName may occur inside a QualifiedName - must check cycles replaceChild((ASTNode) this.qualifier, (ASTNode) qualifier, true); this.qualifier = qualifier; }
public void setQualifier(Name qualifier) { if (qualifier == null) { throw new IllegalArgumentException(); } // a QualifiedName may occur inside a QualifiedName - must check cycles replaceChild(this.qualifier, qualifier, true); this.qualifier = qualifier; }
private final int jjMoveNfa_0(int startState, int curPos) { int[] nextStates; int startsAt = 0; jjnewStateCnt = 74; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { lon...
private final int jjMoveNfa_0(int startState, int curPos) { int[] nextStates; int startsAt = 0; jjnewStateCnt = 74; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { lon...
public boolean doesUserHaveRole( Principal principal, Set roleNames ) { Connection con = null; if (roleNames == null) return false; try { InitialContext initial = new InitialContext(); DataSource ds = (DataSource) initial.lookup( "SecurityDS" ); con = ds.getConnection(); ...
public boolean doesUserHaveRole( Principal principal, Set roleNames ) { Connection con = null; if (roleNames == null) return false; try { InitialContext initial = new InitialContext(); DataSource ds = (DataSource) initial.lookup( "java:/SecurityDS" ); con = ds.getConnection()...
public String toString() { return "Classpath for jar file " + zipFile; //$NON-NLS-1$ }
public String toString() { return "Classpath for jar file "/*nonNLS*/ + zipFile; }
public void record(IProblem problem, CompilationResult unitResult, ReferenceContext context) { unitResult.record(problem, context); // TODO: (jerome) clients are trapping problems either through factory or requestor... is result storing needed? requestor.acceptProblem(problem); } },
public void record(IProblem problem, CompilationResult unitResult, ReferenceContext context) { unitResult.record(problem, context); // TODO (jerome) clients are trapping problems either through factory or requestor... is result storing needed? requestor.acceptProblem(problem); } },
public SyntheticFieldBinding(char[] name, TypeBinding type, int modifiers, ReferenceBinding declaringClass, Constant constant, int index) { super(name, type, modifiers, declaringClass, constant); this.index = index; this.tagBits |= TagBits.AnnotationResolved; }
public SyntheticFieldBinding(char[] name, TypeBinding type, int modifiers, ReferenceBinding declaringClass, Constant constant, int index) { super(name, type, modifiers, declaringClass, constant); this.index = index; this.tagBits |= (TagBits.AnnotationResolved | TagBits.DeprecatedAnnotationResolved); }
private ProtocolCurrent() { try { threadCtx = new InheritableThreadLocal(); prodHashtable = new Hashtable(); icHashtable = new Hashtable(); //get rmi configuration hashtable Hashtable allRMIConfiguration = CarolConfiguration.getAllRMIConfiguration(); int nbProtocol = al...
private ProtocolCurrent() { try { threadCtx = new InheritableThreadLocal(); prodHashtable = new Hashtable(); icHashtable = new Hashtable(); //get rmi configuration hashtable Hashtable allRMIConfiguration = CarolConfiguration.getAllRMIConfiguration(); int nbProtocol = al...
public static IClasspathEntry getResolvedClasspathEntry(IClasspathEntry entry) { if (entry.getEntryKind() != IClasspathEntry.CPE_VARIABLE) return entry; IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot(); IPath resolvedPath = JavaCore.getResolvedVariablePath(entry.getPath()); if (re...
public static IClasspathEntry getResolvedClasspathEntry(IClasspathEntry entry) { if (entry.getEntryKind() != IClasspathEntry.CPE_VARIABLE) return entry; IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot(); IPath resolvedPath = JavaCore.getResolvedVariablePath(entry.getPath()); if (re...
public void place() { // Currently lacking wide support. if (position == POS_NOT_SET) { position = codeStream.position; codeStream.addLabel(this); int oldPosition = position; boolean optimizedBranch = false; // TURNED OFF since fail on 1F4IRD9 if (forwardReferenceCount != 0) { if (optimizedBranch = (for...
public void place() { // Currently lacking wide support. if (position == POS_NOT_SET) { position = codeStream.position; codeStream.addLabel(this); int oldPosition = position; boolean optimizedBranch = false; // TURNED OFF since fail on 1F4IRD9 if (forwardReferenceCount != 0) { if (optimizedBranch = (for...
public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) { // optimizing assignment like: i = i + 1 or i = 1 + i if (assignment.expression.isCompactableOperation()) { BinaryExpression operation = (BinaryExpression) assignment.expression; SingleN...
public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) { // optimizing assignment like: i = i + 1 or i = 1 + i if (assignment.expression.isCompactableOperation()) { BinaryExpression operation = (BinaryExpression) assignment.expression; SingleN...
private void reportDeclaration(FieldBinding fieldBinding, MatchLocator locator) throws CoreException { // ignore length field if (fieldBinding == ArrayBinding.LengthField) return; ReferenceBinding declaringClass = fieldBinding.declaringClass; IType type = locator.lookupType(declaringClass); if (type == null) ret...
private void reportDeclaration(FieldBinding fieldBinding, MatchLocator locator) throws CoreException { // ignore length field if (fieldBinding == ArrayBinding.LengthField) return; ReferenceBinding declaringClass = fieldBinding.declaringClass; IType type = locator.lookupType(declaringClass); if (type == null) ret...
public boolean shouldBeEnabled() { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); if (!super.shouldBeEnabled() || p == null) return false; MultiEditorPane mep = pb.getEditorPane(); return mep.getIndexOfNamedTab(_tabName) != -1; }
public boolean shouldBeEnabled() { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = ProjectManager.getManager().getCurrentProject(); if (!super.shouldBeEnabled() || p == null) return false; MultiEditorPane mep = pb.getEditorPane(); return mep.getIndexOfNamedTab(_tabName) != -1; }
public int getNodeType() { return LABELED_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { LabeledStatement result = new LabeledStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLabel( (SimpleName...
public int getNodeType() { return LABELED_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { LabeledStatement result = new LabeledStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLabel( (SimpleNam...
public PropPanelDataType() { super("DataType Properties",2); Class mclass = MDataType.class; addCaption("Name:",0,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0); addCaption("Stereotype:",1,0,0); JComboBox stereotypeBox = new UMLStereotyp...
public PropPanelDataType() { super("DataType Properties",2); Class mclass = MDataType.class; addCaption("Name:",0,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0); addCaption("Stereotype:",1,0,0); JComboBox stereotypeBox = new UMLStereotyp...
protected void seekTypesInSourcePackage(String name, IPackageFragment pkg, boolean partialMatch, int acceptFlags, IJavaElementRequestor requestor) { ICompilationUnit[] compilationUnits = null; try { compilationUnits = pkg.getCompilationUnits(); } catch (JavaModelException npe) { return; // the package is n...
protected void seekTypesInSourcePackage(String name, IPackageFragment pkg, boolean partialMatch, int acceptFlags, IJavaElementRequestor requestor) { ICompilationUnit[] compilationUnits = null; try { compilationUnits = pkg.getCompilationUnits(); } catch (JavaModelException npe) { return; // the package is n...
public TabDocumentation() { super("Documentation",2); addCaption(Argo.localize(BUNDLE, "docpane.label.author") + ":",1,0,0); addField(new UMLTextField(this,new UMLTaggedTextProperty("author")),1,0,0); //unknown where this information is stored; it does not go to myproject.argo (xml file) a...
public TabDocumentation() { super("tab.documentation",2); addCaption(Argo.localize(BUNDLE, "docpane.label.author") + ":",1,0,0); addField(new UMLTextField(this,new UMLTaggedTextProperty("author")),1,0,0); //unknown where this information is stored; it does not go to myproject.argo (xml file) ...
extends BaseAttachmentType 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...
extends BaseAttachmentType 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...
public MaximizePartAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("MaximizePartAction.text"), window); //$NON-NLS-1$ setToolTipText(WorkbenchMessages .getString("MaximizePartAction.toolTip")); //$NON-NLS-1$ // @issue missing action id updateState(...
public MaximizePartAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("MaximizePartAction.text"), window); //$NON-NLS-1$ setToolTipText(WorkbenchMessages .getString("MaximizePartAction.toolTip")); //$NON-NLS-1$ // @issue missing action id updateState(...
public int getNodeType() { return TYPE_DECLARATION_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { TypeDeclarationStatement result = new TypeDeclarationStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); re...
public int getNodeType() { return TYPE_DECLARATION_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { TypeDeclarationStatement result = new TypeDeclarationStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); re...
public String toString() { return "UnmodifiedBuilderType(" + fNewTSEntry.getType().getName() + ")"; }
public String toString() { return "UnmodifiedBuilderType("/*nonNLS*/ + fNewTSEntry.getType().getName() + ")"/*nonNLS*/; }
protected void sendStatus( int status, String message) throws IOException { statusSB.setLength(0); statusSB.append("Status: " ).append( status ).append("\r\n"); sout.write(statusSB.toString().getBytes()); }
protected void sendStatus( int status, String message) throws IOException { statusSB.setLength(0); statusSB.append("Status: " ).append( status ).append(" ").append(message).append("\r\n"); sout.write(statusSB.toString().getBytes()); }
public SystemMenuCloseOthers(IStackPresentationSite stackPresentation) { this.stackPresentation = stackPresentation; setText(WorkbenchMessages.getString("PartPane.closeOthers")); //$NON-NLS-1$ }
public SystemMenuCloseOthers(IStackPresentationSite stackPresentation) { this.stackPresentation = stackPresentation; setText(WorkbenchMessages.PartPane_closeOthers); }
public TXTRecord(Name _name, short _dclass, int _ttl, String _string) throws IOException { super(_name, Type.TXT, _dclass, _ttl); strings = new Vector(); strings.addElement(_string); } TXTRecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException
public TXTRecord(Name _name, short _dclass, int _ttl, String _string) throws IOException { super(_name, Type.TXT, _dclass, _ttl); strings = new Vector(); strings.addElement(_string); } TXTRecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in) throws IOException
protected boolean generateInfos(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException { if (getParent() instanceof JarPackageFragment) { // ignore .java files in jar throw newNotPresentException(); } else { // put the info now, because getting t...
protected boolean generateInfos(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException { if (getParent() instanceof JarPackageFragment) { // ignore .java files in jar throw newNotPresentException(); } else { // put the info now, because getting t...
public EncryptMessageAction(ComposerController composerController) { super( composerController, MailResourceLoader.getString( "menu", "composer", "menu_message_encrypt")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "composer", "menu_message_encrypt")); ...
public EncryptMessageAction(ComposerController composerController) { super( composerController, MailResourceLoader.getString( "menu", "composer", "menu_message_encrypt")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "composer", "menu_message_encrypt")); ...
public void testHierarchy1() { Hierarchy h = new Hierarchy(new RootCategory((Level) Level.ERROR)); Logger a0 = h.getLogger("a"); assertEquals("a", a0.getName()); assertNull(a0.getLevel()); assertSame(Level.ERROR, a0.getEffectiveLevel()); Logger a1 = h.getLogger("a"); assertSame(a0, a1); ...
public void testHierarchy1() { Hierarchy h = new Hierarchy(new RootLogger((Level) Level.ERROR)); Logger a0 = h.getLogger("a"); assertEquals("a", a0.getName()); assertNull(a0.getLevel()); assertSame(Level.ERROR, a0.getEffectiveLevel()); Logger a1 = h.getLogger("a"); assertSame(a0, a1); }...
public static void main(String[] argv) { if (argv.length == 2) { init(argv[0], argv[1]); } else { usage("Wrong number of arguments."); } test(); } static void usage(String msg) { System.err.println(msg); System.err.println( "Usage: java " + Shallow.class.getName() + "co...
public static void main(String[] argv) { if (argv.length == 2) { init(argv[0], argv[1]); } else { usage("Wrong number of arguments."); } test(); } static void usage(String msg) { System.err.println(msg); System.err.println( "Usage: java " + Shallow.class.getName() + "co...
static public Point getPointOnPerimeter(Rectangle rect, int direction) { return getPointOnPerimeter(rect, direction); }
static public Point getPointOnPerimeter(Rectangle rect, int direction) { return getPointOnPerimeter(rect, direction, 0, 0); }
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof ConstructorDeclaration)) return IMPOSSIBLE_MATCH; ConstructorDeclaration constructor = (ConstructorDeclaration)node; if (resolve) { return this.matchLevel(constructor.binding); } else { // constructor name is stored in selector field...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof ConstructorDeclaration)) return IMPOSSIBLE_MATCH; ConstructorDeclaration constructor = (ConstructorDeclaration)node; if (resolve) { return this.matchLevel(constructor.binding); } else { // constructor name is stored in selector field...
public boolean complainIfUnreachable(FlowInfo flowInfo, BlockScope scope, boolean didAlreadyComplain) { if ((flowInfo.reachMode() & FlowInfo.UNREACHABLE) != 0) { this.bits &= ~ASTNode.IsReachableMASK; boolean reported = flowInfo == FlowInfo.DEAD_END; if (!didAlreadyComplain && reported) { scope.proble...
public boolean complainIfUnreachable(FlowInfo flowInfo, BlockScope scope, boolean didAlreadyComplain) { if ((flowInfo.reachMode() & FlowInfo.UNREACHABLE) != 0) { this.bits &= ~ASTNode.IsReachable; boolean reported = flowInfo == FlowInfo.DEAD_END; if (!didAlreadyComplain && reported) { scope.problemRep...
public IBuffer createBuffer(ICompilationUnit workingCopy) { if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy); if (this.factory == null) return super.createBuffer(workingCopy); return this.factory.createBuffer(workingCopy); // TODO (jerome) change to use a org.ec...
public IBuffer createBuffer(ICompilationUnit workingCopy) { if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy); if (this.factory == null) return super.createBuffer(workingCopy); return this.factory.createBuffer(workingCopy); }
public synchronized void paint(Graphics g) { Dimension size = getSize(); if(offscreenImg == null) { offscreenImg = createImage(size.width,size.height); offscreenGfx = offscreenImg.getGraphics(); offscreenGfx.setFont(getFont()); } offscreenGfx.setColor(Color.gray); offscreenGfx.drawRect(0,0,size...
public synchronized void paint(Graphics g) { Dimension size = getSize(); if(offscreenImg == null) { offscreenImg = createImage(size.width,size.height); offscreenGfx = offscreenImg.getGraphics(); offscreenGfx.setFont(getFont()); } offscreenGfx.setColor(Color.gray); offscreenGfx.drawRect(0,0,size...
public boolean isMatch(String string, Set activityIds) { return isMatch(string, activityIds); }
public boolean isMatch(String string, Set activityIds) { return match(string, activityIds); }
public void doubleClick(MouseEvent e) { /* * does exactly the same thing as EditPropertiesAction when contact * table is focused * */ if (e.getButton()==MouseEvent.BUTTON1 && e.getClickCount() > 1) { // get selected contact/group card Object[] uids = mediator.getTable().ge...
public void doubleClick(MouseEvent e) { /* * does exactly the same thing as EditPropertiesAction when contact * table is focused * */ if (e.getButton()==MouseEvent.BUTTON1 && e.getClickCount() > 1) { // get selected contact/group card String[] uids = mediator.getTable().ge...
private void reportDeclaration(TypeBinding typeBinding, int maxType, MatchLocator locator) throws CoreException { IType type = locator.lookupType(typeBinding); if (type == null) return; // case of a secondary type IResource resource = type.getUnderlyingResource(); boolean isBinary = type.isBinary(); IBinaryType in...
private void reportDeclaration(TypeBinding typeBinding, int maxType, MatchLocator locator) throws CoreException { IType type = locator.lookupType(typeBinding); if (type == null) return; // case of a secondary type IResource resource = type.getUnderlyingResource(); boolean isBinary = type.isBinary(); IBinaryType in...
public String getSignature() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return info.getSignature(); }
public String getSignature() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return Signature.createMethodSignature(fParameterTypes, Signature.createTypeSignature(info.getReturnTypeName(), false)); }
public TypeBinding resolveType(BlockScope scope) { // specs p.368 constant = NotAConstant; LookupEnvironment env = scope.environment(); boolean use15specifics = env.options.sourceLevel >= ClassFileConstants.JDK1_5; TypeBinding conditionType = condition.resolveTypeExpecting(scope, BooleanBinding); if (va...
public TypeBinding resolveType(BlockScope scope) { // specs p.368 constant = NotAConstant; LookupEnvironment env = scope.environment(); boolean use15specifics = env.options.sourceLevel >= ClassFileConstants.JDK1_5; TypeBinding conditionType = condition.resolveTypeExpecting(scope, BooleanBinding); if (va...
public void configure (Element element) { DOMConfigurator configurator = new DOMConfigurator(); configurator.parse(element); }
public void configure (Element element) { DOMConfigurator configurator = new DOMConfigurator(); configurator.doConfigure(element, LogManager.getLoggerRepository()); }
protected void initializeDefaultPluginPreferences() { Preferences preferences = getPluginPreferences(); HashSet optionNames = JavaModelManager.OptionNames; // Compiler settings preferences.setDefault(COMPILER_LOCAL_VARIABLE_ATTR, GENERATE); optionNames.add(COMPILER_LOCAL_VARIABLE_ATTR); preferences....
protected void initializeDefaultPluginPreferences() { Preferences preferences = getPluginPreferences(); HashSet optionNames = JavaModelManager.OptionNames; // Compiler settings preferences.setDefault(COMPILER_LOCAL_VARIABLE_ATTR, GENERATE); optionNames.add(COMPILER_LOCAL_VARIABLE_ATTR); preferences....
public JMSClientNotificationListener( ObjectName pSender, NotificationListener pClientListener, Object pHandback, NotificationFilter pFilter, String pQueueJNDIName, String pServerName, MEJB pConnector ) throws JMSException, JMException, NamingException, ...
public JMSClientNotificationListener( ObjectName pSender, NotificationListener pClientListener, Object pHandback, NotificationFilter pFilter, String pQueueJNDIName, String pServerName, MEJB pConnector ) throws JMSException, JMException, NamingException, ...
public boolean performFinish() { //save our selection state mainPage.saveWidgetValues(); IWizard selectedWizard = mainPage.getSelectedNode().getWizard(); RoleManager.getInstance().enableRoles(selectedWizard.getClass().getName()); return true; }
public boolean performFinish() { //save our selection state mainPage.saveWidgetValues(); IWizard selectedWizard = mainPage.getSelectedNode().getWizard(); RoleManager.getInstance().enableActivities(selectedWizard.getClass().getName()); return true; }
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); FolderCommandAdapter adapter = new FolderCommandAdapter(r); // there can be only one reference for this command srcFolder = (Folder) adapter.getSourceFolderReferences()[0].getFolder()...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); FolderCommandAdapter adapter = new FolderCommandAdapter(r); // there can be only one reference for this command srcFolder = (Folder) adapter.getSourceFolderReferences()[0].getFolder()...
public void doConfigure(java.net.URL url, LoggerRepository hierarchy) { Category.getRoot().addAppender( new ConsoleAppender( new SimpleLayout(), ConsoleAppender.SYSTEM_OUT)); }
public void doConfigure(java.net.URL url, LoggerRepository hierarchy) { Logger.getRootLogger().addAppender( new ConsoleAppender( new SimpleLayout(), ConsoleAppender.SYSTEM_OUT)); }
protected boolean isRenamingMainType(IJavaElement element, IJavaElement dest) throws JavaModelException { if ((isRename() || getNewNameFor(element) != null) && dest.getElementType() == IJavaElement.COMPILATION_UNIT) { String typeName = dest.getElementName(); typeName = typeName.substring(0, typeName.length() - 5...
protected boolean isRenamingMainType(IJavaElement element, IJavaElement dest) throws JavaModelException { if ((isRename() || getNewNameFor(element) != null) && dest.getElementType() == IJavaElement.COMPILATION_UNIT) { String typeName = dest.getElementName(); typeName = typeName.substring(0, typeName.length() - 5...
public boolean startExternalEditor(AbstractEditorController EditCtrl) { /* * *20030906, karlpeder* Method signature changed to take * an AbstractEditorController (instead of an TextEditorView) as * parameter since the view is no longer directly available */ MimeHe...
public boolean startExternalEditor(AbstractEditorController EditCtrl) { /* * *20030906, karlpeder* Method signature changed to take * an AbstractEditorController (instead of an TextEditorView) as * parameter since the view is no longer directly available */ MimeHe...
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 boolean acceptIndexMatch(String documentPath, SearchPattern indexRecord, SearchParticipant participant) { SuperTypeReferencePattern record = (SuperTypeReferencePattern)indexRecord; pathRequestor.acceptPath(documentPath, record.enclosingTypeName == IIndexConstants.ONE_ZERO); char[] typeName = record.si...
public boolean acceptIndexMatch(String documentPath, SearchPattern indexRecord, SearchParticipant participant) { SuperTypeReferencePattern record = (SuperTypeReferencePattern)indexRecord; pathRequestor.acceptPath(documentPath, record.enclosingTypeName == IIndexConstants.ONE_ZERO); char[] typeName = record.si...
private void initializeIndexLocations() { IPath[] projectsAndJars = this.searchScope.enclosingProjectsAndJars(); IndexManager manager = JavaModelManager.getJavaModelManager().getIndexManager(); SimpleSet locations = new SimpleSet(); IJavaElement focus = MatchLocator.projectOrJarFocus(this.pattern); if (focus == nu...
private void initializeIndexLocations() { IPath[] projectsAndJars = this.searchScope.enclosingProjectsAndJars(); IndexManager manager = JavaModelManager.getIndexManager(); SimpleSet locations = new SimpleSet(); IJavaElement focus = MatchLocator.projectOrJarFocus(this.pattern); if (focus == null) { for (int i = 0...