buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public TypeBinding convertToRawType(TypeBinding type) { if (type.isArrayType()) { TypeBinding leafComponentType = type.leafComponentType(); if (leafComponentType.isGenericType()) return createArrayType(environment().createRawType((ReferenceBinding) leafComponentType, null), type.dimensions()); ...
public TypeBinding convertToRawType(TypeBinding type) { if (type.isArrayType()) { TypeBinding leafComponentType = type.leafComponentType(); if (leafComponentType.isGenericType()) return createArrayType(environment().createRawType((ReferenceBinding) leafComponentType, null), type.dimensions()); ...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update cycle marker */ IMarker cycleMarker = javaProject.getCycleMarker(); if (cycleMarker != null) { int severity = JavaCore.ERROR.equals(javaProject.get...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update cycle marker */ IMarker cycleMarker = javaProject.getCycleMarker(); if (cycleMarker != null) { int severity = JavaCore.ERROR.equals(javaProject.get...
public File getLogFile(String filename); }
public File getActiveLogFile(String filename); }
public void actionPerformed(ActionEvent e) { ColumbaLogger.log.info("not yet implemented"); } }; manageAction.setEnabled(false); restartTimer(); }
public void actionPerformed(ActionEvent e) { ColumbaLogger.log.fine("not yet implemented"); } }; manageAction.setEnabled(false); restartTimer(); }
public TypeBinding resolveType(BlockScope scope) { // for code gen, harm the restrictiveFlag this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); if ((this.codegenBinding = this.binding = scope.getBinding(token, bits & RestrictiveFlagMASK, this, true /*resolve*/)).isValidBinding()) {...
public TypeBinding resolveType(BlockScope scope) { // for code gen, harm the restrictiveFlag this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); if ((this.codegenBinding = this.binding = scope.getBinding(token, bits & RestrictiveFlagMASK, this, true /*resolve*/)).isValidBinding()) {...
private void quickPrioritize(CategorizedProblem[] problemList, int left, int right) { if (left >= right) return; // sort the problems by their priority... starting with the highest priority int original_left = left; int original_right = right; int mid = computePriority(problemList[(left + right) / 2]); do { wh...
private void quickPrioritize(CategorizedProblem[] problemList, int left, int right) { if (left >= right) return; // sort the problems by their priority... starting with the highest priority int original_left = left; int original_right = right; int mid = computePriority(problemList[left + (right - left) / 2]); do...
public void launchWizard() { DataModel data = new DataModel(); Step[] steps; if (MailConfig.getAccountList().count() == 0) { steps = new Step[]{ new WelcomeStep(), new IdentityStep(data), new IncomingServerStep(data), ...
public void launchWizard() { DataModel data = new DataModel(); Step[] steps; if (MailConfig.getAccountList().count() == 0) { steps = new Step[]{ new WelcomeStep(), new IdentityStep(data), new IncomingServerStep(data), ...
protected void derefPart(LayoutPart toDeref) { EditorPresentation.derefPart(toDeref); }
protected void derefPart(LayoutPart toDeref) { EditorAreaHelper.derefPart(toDeref); }
public void run() { IViewDescriptor desc = viewReg.find(ref.getId()); if (desc == null) { result[0] = new Status( IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, ...
public void run() { IViewDescriptor desc = viewReg.find(ref.getId()); if (desc == null) { result[0] = new Status( IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, ...
DSAKey dsakey = (DSAKey) privateKey; signature = DSASignature.create(dsakey.getParams(), signature); } SIGRecord r = new SIGRecord(new Name("."), DClass.ANY, 0, 0, algorithm, 0, timeExpires, timeSigned, footprint, name, signature); m.addRecord(r, Section.ADDITIONAL); }
DSAKey dsakey = (DSAKey) privateKey; signature = DSASignature.create(dsakey.getParams(), signature); } SIGRecord r = new SIGRecord(Name.root, DClass.ANY, 0, 0, algorithm, 0, timeExpires, timeSigned, footprint, name, signature); m.addRecord(r, Section.ADDITIONAL); }
private void writeRow(TSVPrinter printer, MITList mitlist, ScarabLocalizationTool l10n, List rmuas, QueryResult queryResult) throws Exception { if (mitlist != null) { if (!mitlist.isSingleModule()) { printer.print(queryResult.getModule...
private void writeRow(TSVPrinter printer, MITList mitlist, ScarabLocalizationTool l10n, List rmuas, QueryResult queryResult) throws Exception { if (mitlist != null) { if (!mitlist.isSingleModule()) { printer.print(queryResult.getModule...
public void record(IProblem problem, CompilationResult unitResult) { unitResult.record(problem); requestor.acceptProblem(problem); } }, false, options.getAssertMode()); this.requestor = requestor; typeNames = new char[4][]; superTypeNames = new char[4][]; nestedTypeIndex = 0; }
public void record(IProblem problem, CompilationResult unitResult) { unitResult.record(problem); requestor.acceptProblem(problem); } }, false, options.assertMode); this.requestor = requestor; typeNames = new char[4][]; superTypeNames = new char[4][]; nestedTypeIndex = 0; }
public PropPanelSimpleState(String name, ImageIcon icon, Orientation orientation) { super(name, icon, ConfigLoader.getTabPropsOrientation()); addField(Translator.localize("label.name"), getNameTextField()); addField(Translator.localize("label.stereotype"), ...
public PropPanelSimpleState(String name, ImageIcon icon, Orientation orientation) { super(name, icon, ConfigLoader.getTabPropsOrientation()); addField(Translator.localize("label.name"), getNameTextField()); addField(Translator.localize("label.stereotype"), ...
private Composite createActionSetsPage(Composite parent) { GridData data; Composite actionSetsComposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); actionSetsComposite.setLayout(layout); // Select... label Label label = new Label(actio...
private Composite createActionSetsPage(Composite parent) { GridData data; Composite actionSetsComposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); actionSetsComposite.setLayout(layout); // Select... label Label label = new Label(actio...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. this.scope = new BlockScope(upperScope); BlockScope tryScope = new BlockScope(scope); BlockScope finallyScope = null; if (finallyBlock != null && finallyBlock.statements != null) { finallyScope = new Bl...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. this.scope = new BlockScope(upperScope); BlockScope tryScope = new BlockScope(scope); BlockScope finallyScope = null; if (finallyBlock != null && finallyBlock.statements != null) { finallyScope = new Bl...
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && (this.pattern.shouldCountParameter() || ((node.bits & ASTNode.Ins...
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && (!this.pattern.varargs || ((node.bits & ASTNode.InsideJavadoc) !=...
protected void processElement(IJavaElement element) throws JavaModelException { ICompilationUnit cu = (ICompilationUnit) element; // keep track of the import statements - if all are removed, delete // the import container (i.e. report it in the delta) int numberOfImports = cu.getImports().length; IBuffer...
protected void processElement(IJavaElement element) throws JavaModelException { ICompilationUnit cu = (ICompilationUnit) element; // keep track of the import statements - if all are removed, delete // the import container (i.e. report it in the delta) int numberOfImports = cu.getImports().length; IBuffer...
public int getNodeType() { return PRIMITIVE_TYPE; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { PrimitiveType result = new PrimitiveType(target);
public int getNodeType() { return PRIMITIVE_TYPE; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { PrimitiveType result = new PrimitiveType(target);
public ToDoByOffender() { super("By Offender"); addSubTreeModel(new GoListToOffenderToItem()); }
public ToDoByOffender() { super("todo.perspective.offender"); addSubTreeModel(new GoListToOffenderToItem()); }
@Test public void successCausesExitCodeOf0() throws Exception { runClass("org.junit.tests.JUnitCoreTest$Succeed", 0); } private void runClass(String className, int returnCode) throws IOException, InterruptedException {
@Test public void successCausesExitCodeOf0() throws Exception { runClass("org.junit.tests.running.core.JUnitCoreTest$Succeed", 0); } private void runClass(String className, int returnCode) throws IOException, InterruptedException {
private void initialize() { nameField = new UMLTextField2(this, new UMLModelElementNameDocument()); stereotypeBox = new UMLComboBox2(stereotypeComboBoxModel, ActionSetModelElementStereotype.SINGLETON); namespaceComboBox = new UMLComboBox2(namespaceComboBoxModel, ActionSetModelElementNamespac...
private void initialize() { nameField = new UMLTextField2(new UMLModelElementNameDocument()); stereotypeBox = new UMLComboBox2(stereotypeComboBoxModel, ActionSetModelElementStereotype.SINGLETON); namespaceComboBox = new UMLComboBox2(namespaceComboBoxModel, ActionSetModelElementNamespace.SING...
public SelectionNodeFound() { this(null); // we found a problem in the selection node }
public SelectionNodeFound() { this(null, false); // we found a problem in the selection node }
public static boolean hasHook( Object obj, String methodN ) { try { Method myMethods[]=obj.getClass().getMethods(); for( int i=0; i< myMethods.length; i++ ) { if( methodN.equals ( myMethods[i].getName() )) { // check if it's overriden Class declaring=myMethods[i].getDeclaringClass(); ...
public static boolean hasHook( Object obj, String methodN ) { try { Method myMethods[]=obj.getClass().getMethods(); for( int i=0; i< myMethods.length; i++ ) { if( methodN.equals ( myMethods[i].getName() )) { // check if it's overriden Class declaring=myMethods[i].getDeclaringClass(); ...
public void initializeRoots() { // recompute root infos only if necessary HashMap newRoots = null; HashMap newOtherRoots = null; HashMap newSourceAttachments = null; if (this.rootsAreStale) { Thread currentThread = Thread.currentThread(); boolean addedCurrentThread = false; try { // if ree...
public void initializeRoots() { // recompute root infos only if necessary HashMap newRoots = null; HashMap newOtherRoots = null; HashMap newSourceAttachments = null; if (this.rootsAreStale) { Thread currentThread = Thread.currentThread(); boolean addedCurrentThread = false; try { // if ree...
public MultiEditorPane(StatusBar sb) { Argo.log.info("making MultiEditorPane"); ConfigLoader.loadTabs(_tabPanels, "multi", sb, Horizontal.getInstance()); setLayout(new BorderLayout()); add(_tabs, BorderLayout.CENTER); _tabs.addChangeListener(this); for (int i = 0; i < _tabPanels.size(); i++)...
public MultiEditorPane(StatusBar sb) { Argo.log.info("making MultiEditorPane"); ConfigLoader.loadTabs(_tabPanels, "multi", sb, Horizontal.getInstance()); setLayout(new BorderLayout()); add(_tabs, BorderLayout.CENTER); // _tabs.addChangeListener(this); for (int i = 0; i < _tabPanels.size(); i...
public CloseAllSavedAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("CloseAllSavedAction.text"), window); //$NON-NLS-1$ setToolTipText(WorkbenchMessages .getString("CloseAllSavedAction.toolTip")); //$NON-NLS-1$ // @issue Should create a ID in IWorkbenchAct...
public CloseAllSavedAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("CloseAllSavedAction.text"), window); //$NON-NLS-1$ setToolTipText(WorkbenchMessages .getString("CloseAllSavedAction.toolTip")); //$NON-NLS-1$ // @issue Should create a ID in IWorkbenchAct...
public void notifySourceElementRequestor(AbstractMethodDeclaration methodDeclaration) { // range check boolean isInRange = scanner.initialPosition <= methodDeclaration.declarationSourceStart && scanner.eofPosition >= methodDeclaration.declarationSourceEnd; if (methodDeclaration.isClinit()) { this.visitI...
public void notifySourceElementRequestor(AbstractMethodDeclaration methodDeclaration) { // range check boolean isInRange = scanner.initialPosition <= methodDeclaration.declarationSourceStart && scanner.eofPosition >= methodDeclaration.declarationSourceEnd; if (methodDeclaration.isClinit()) { this.visitI...
public int getNodeType() { return BREAK_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { BreakStatement result = new BreakStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); re...
public int getNodeType() { return BREAK_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { BreakStatement result = new BreakStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); r...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isVal...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isVal...
public TypeBinding resolveType(BlockScope blockScope) { return internalResolveType(blockScope); } /* (non-Javadoc) * @see org.eclipse.jdt.internal.compiler.ast.Expression#resolveType(org.eclipse.jdt.internal.compiler.lookup.ClassScope) * We need to override to handle package references */ public TypeBindin...
public TypeBinding resolveType(BlockScope blockScope, boolean checkBounds) { return internalResolveType(blockScope); } /* (non-Javadoc) * @see org.eclipse.jdt.internal.compiler.ast.Expression#resolveType(org.eclipse.jdt.internal.compiler.lookup.ClassScope) * We need to override to handle package references ...
public String getLabel(Object o) { return ProgressMessages.getString("PendingUpdateAdapter.PendingLabel"); //$NON-NLS-1$ }
public String getLabel(Object o) { return ProgressMessages.PendingUpdateAdapter_PendingLabel; }
public void drawBackground(Graphics g) { Rectangle r = displayBox(); g.fillRoundRect(r.x, r.y, r.width, r.height, fArcWidth, fArcHeight); }
public void drawBackground(Graphics g) { Rectangle r = displayBox(); g.fillRoundRect(r.x, r.y, r.width-1, r.height-1, fArcWidth, fArcHeight); }
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(this.tabString(tab)); buffer.append("<import container>"); //$NON-NLS-1$ if (info == null) { buffer.append(" (not open)"); //$NON-NLS-1$ } }
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); buffer.append("<import container>"); //$NON-NLS-1$ if (info == null) { buffer.append(" (not open)"); //$NON-NLS-1$ } }
public void drawBackground(Graphics g) { Rectangle r = displayBox(); g.fillOval(r.x, r.y, r.width, r.height); }
public void drawBackground(Graphics g) { Rectangle r = displayBox(); g.fillOval(r.x, r.y, r.width-1, r.height-1); }
public void setEnabledActivityIds(Set enabledActivityIds) { enabledActivityIds = Util.safeCopy(enabledActivityIds, String.class); Set requiredActivityIds = new HashSet(enabledActivityIds); getRequiredActivityIds(enabledActivityIds, requiredActivityIds); enabledActivityIds = requiredActivityIds; boolean activ...
public void setEnabledActivityIds(Set enabledActivityIds) { enabledActivityIds = Util.safeCopy(enabledActivityIds, String.class); Set requiredActivityIds = new HashSet(enabledActivityIds); getRequiredActivityIds(enabledActivityIds, requiredActivityIds); enabledActivityIds = requiredActivityIds; boolean activ...
protected boolean canModifyRoots() { // changing the classpath can modify roots return true; } /* * The resolved classpath of the given project may have changed: * - generate a delta * - trigger indexing * - update project references * - create resolved classpath markers */ protected void classpat...
protected boolean canModifyRoots() { // changing the classpath can modify roots return true; } /* * The resolved classpath of the given project may have changed: * - generate a delta * - trigger indexing * - update project references * - create resolved classpath markers */ protected void classpat...
public abstract void initialize(IPath containerPath, IJavaProject project) throws CoreException; }
public abstract void initialize(IPath containerPath, IJavaProject project) throws JavaModelException; }
public void actionPerformed(ActionEvent evt) { // Select INBOX FolderCommandReference[] refs = new FolderCommandReference[1]; refs[0] = new FolderCommandReference(MainInterface.treeModel.getFolder(101)); getFrameController().getSelectionManager().setSelection("mail.foldertree", refs); // Fetch Messages...
public void actionPerformed(ActionEvent evt) { // Select INBOX FolderCommandReference[] refs = new FolderCommandReference[1]; refs[0] = new FolderCommandReference(MainInterface.treeModel.getFolder(101)); getFrameController().getSelectionManager().setSelection("mail.tree", refs); // Fetch Messages ...
public void update(boolean force) { boolean DEBUG= false; if (isDirty() || force) { if (statusLineExist()) { statusLine.setRedraw(false); // if (DEBUG) System.out.println("update:"); if (false) { // non-incremental update Control ws[]= statusLine.getChildren(); for (int i= 0; i < ws.length;...
public void update(boolean force) { //boolean DEBUG= false; if (isDirty() || force) { if (statusLineExist()) { statusLine.setRedraw(false); // if (DEBUG) System.out.println("update:"); if (false) { // non-incremental update Control ws[]= statusLine.getChildren(); for (int i= 0; i < ws.lengt...
public boolean performConcurrentJob( IJob searchJob, int waitingPolicy, IProgressMonitor progress) { if (VERBOSE) JobManager.verbose("STARTING concurrent job - " + searchJob); //$NON-NLS-1$ if (!searchJob.isReadyToRun()) { if (VERBOSE) JobManager.verbose("ABORTED concurrent job - " + searchJob)...
public boolean performConcurrentJob( IJob searchJob, int waitingPolicy, IProgressMonitor progress) { if (VERBOSE) JobManager.verbose("STARTING concurrent job - " + searchJob); //$NON-NLS-1$ if (!searchJob.isReadyToRun()) { if (VERBOSE) JobManager.verbose("ABORTED concurrent job - " + searchJob)...
protected IType lookupBinaryHandle(IBinaryType typeInfo) { int flag; String qualifiedName; switch (TypeDeclaration.kind(typeInfo.getModifiers())) { case TypeDeclaration.CLASS_DECL : flag = NameLookup.ACCEPT_CLASSES; break; case TypeDeclaration.INTERFACE_DECL : flag = NameLookup.ACCEPT_INTERFACE...
protected IType lookupBinaryHandle(IBinaryType typeInfo) { int flag; String qualifiedName; switch (TypeDeclaration.kind(typeInfo.getModifiers())) { case TypeDeclaration.CLASS_DECL : flag = NameLookup.ACCEPT_CLASSES; break; case TypeDeclaration.INTERFACE_DECL : flag = NameLookup.ACCEPT_INTERFACE...
public void receiveEventBatch(String identifier, List eventBatchEntrys); }
public void receiveEventBatch(String identifier, List eventBatchEntries); }
public MethodBinding findMethod( ReferenceBinding receiverType, char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite) { ReferenceBinding currentType = receiverType; MethodBinding matchingMethod = null; ObjectVector found = new ObjectVector(); compilationUnitScope().recordTypeRe...
public MethodBinding findMethod( ReferenceBinding receiverType, char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite) { ReferenceBinding currentType = receiverType; MethodBinding matchingMethod = null; ObjectVector found = new ObjectVector(); compilationUnitScope().recordTypeRe...
public void close() throws Exception { ois.close(); istream.close(); } }
public void close() throws IOException { ois.close(); istream.close(); } }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // TODO: fix previous-message action /* if ( r.length>0 ) { FolderCommandReference ref = r[0]; TableCon...
public void actionPerformed(ActionEvent evt) { FolderCommandReference r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // TODO: fix previous-message action /* if ( r.length>0 ) { FolderCommandReference ref = r[0]; TableContr...
protected boolean canModifyRoots() { // changing the classpath can modify roots return true; } /* * The resolved classpath of the given project may have changed: * - generate a delta * - trigger indexing * - update project references * - create resolved classpath markers */ protected void classpat...
protected boolean canModifyRoots() { // changing the classpath can modify roots return true; } /* * The resolved classpath of the given project may have changed: * - generate a delta * - trigger indexing * - update project references * - create resolved classpath markers */ protected void classpat...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true, JavaBuilder.PreferredClasspaths, Java...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true/*ignore*/, true/*marker*/, null/*preferred c...
private ActionStateDiagram() { super("StateDiagram"); }
private ActionStateDiagram() { super("action.state-diagram"); }
protected void executeOperation() throws JavaModelException { try { beginTask(Util.bind("workingCopy.commit"), 2); //$NON-NLS-1$ WorkingCopy copy = (WorkingCopy)getCompilationUnit(); ICompilationUnit original = (ICompilationUnit) copy.getOriginalElement(); // creates the delta builder (this rememb...
protected void executeOperation() throws JavaModelException { try { beginTask(Util.bind("workingCopy.commit"), 2); //$NON-NLS-1$ WorkingCopy copy = (WorkingCopy)getCompilationUnit(); ICompilationUnit original = (ICompilationUnit) copy.getOriginalElement(); // creates the delta builder (this rememb...
public static String getLineSeparator(String text, IJavaProject project) { String lineSeparator = null; // line delimiter in given text if (text != null) { lineSeparator = findLineSeparator(text.toCharArray()); if (lineSeparator != null) return lineSeparator; } // line delimiter in project pr...
public static String getLineSeparator(String text, IJavaProject project) { String lineSeparator = null; // line delimiter in given text if (text != null && text.length() != 0) { lineSeparator = findLineSeparator(text.toCharArray()); if (lineSeparator != null) return lineSeparator; } // line d...
private void internalAnalyseCode(FlowContext flowContext, FlowInfo flowInfo) { if ((this.binding.isPrivate()/* || (this.binding.tagBits & (TagBits.IsAnonymousType|TagBits.IsLocalType)) == TagBits.IsLocalType*/) && !this.binding.isUsed()) { if (!scope.referenceCompilationUnit().compilationResult.hasSyntaxError) {...
private void internalAnalyseCode(FlowContext flowContext, FlowInfo flowInfo) { if ((this.binding.isPrivate()/* || (this.binding.tagBits & (TagBits.IsAnonymousType|TagBits.IsLocalType)) == TagBits.IsLocalType*/) && !this.binding.isUsed()) { if (!scope.referenceCompilationUnit().compilationResult.hasSyntaxError) {...
public void setInfo(PartInfo info) { TabItem widget = (TabItem) getWidget(); if (!Util.equals(widget.getText(), info.name)) { widget.setText(info.name); } String oldToolTip = Util.safeString(widget.getToolTipText()); if (!Util.equals(info.toolTip...
public void setInfo(PartInfo info) { TabItem widget = (TabItem) getWidget(); if (!Util.equals(widget.getText(), info.name)) { widget.setText(info.name); } String oldToolTip = Util.safeString(widget.getToolTipText()); if (!Util.equals(info.toolTip...
protected void layoutComponents() { // Create a FormLayout instance. FormLayout layout = new FormLayout( "10dlu, 10dlu, max(100;default), 3dlu, fill:max(150dlu;default):grow, 3dlu, fill:max(150dlu;default):grow", // 2 columns ""); // rows are added dynamically (no need to define them // here) De...
protected void layoutComponents() { // Create a FormLayout instance. FormLayout layout = new FormLayout( "10dlu, 10dlu, max(100;default), 3dlu, max(150dlu;default):grow, 3dlu", // 2 columns ""); // rows are added dynamically (no need to define them // here) DefaultFormBuilder builder = new Defau...
public boolean checkUnsafeCast(Scope scope, TypeBinding castType, TypeBinding expressionType, TypeBinding match, boolean isNarrowing) { if (match == castType) { if (!isNarrowing && castType == this.resolvedType.leafComponentType()) { // do not tag as unnecessary when recursing through upper bounds tagAsUnnece...
public boolean checkUnsafeCast(Scope scope, TypeBinding castType, TypeBinding expressionType, TypeBinding match, boolean isNarrowing) { if (match == castType) { if (!isNarrowing && castType == this.resolvedType.leafComponentType()) { // do not tag as unnecessary when recursing through upper bounds tagAsUnnece...
public static void createProblemType( TypeDeclaration typeDeclaration, CompilationResult unitResult) { SourceTypeBinding typeBinding = typeDeclaration.binding; ClassFile classFile = new ClassFile(typeBinding, null, true); // TODO: handle cases where a field cannot be generated (name too long) // TODO: han...
public static void createProblemType( TypeDeclaration typeDeclaration, CompilationResult unitResult) { SourceTypeBinding typeBinding = typeDeclaration.binding; ClassFile classFile = new ClassFile(typeBinding, null, true); // TODO: handle cases where a field cannot be generated (name too long) // TODO: han...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!checkAccess(scope.methodScope())) return null; SourceTypeBinding enclosingTb = scope.enclosingSourceType(); if (scope.isJavaLangObject(enclosingTb)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; } ...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!checkAccess(scope.methodScope())) return null; SourceTypeBinding enclosingTb = scope.enclosingSourceType(); if (scope.isJavaLangObject(enclosingTb)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; } ...
public void build(boolean computeSubtypes) throws JavaModelException, CoreException { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { // optimize access to zip files while building hierarchy manager.cacheZipFiles(); if (computeSubtypes) { // Note by construction there always is ...
public void build(boolean computeSubtypes) throws JavaModelException, CoreException { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { // optimize access to zip files while building hierarchy manager.cacheZipFiles(); if (computeSubtypes) { // Note by construction there always is ...
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 String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered block:\n"); //$NON-NLS-1$ result.append(blockDeclaration.toString(tab + 1)); if (this.statements != null) { for (int i = 0; i < this.statementCount; i++) { result.append("\n"); //$NON-NLS-1$ re...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered block:\n"); //$NON-NLS-1$ blockDeclaration.print(tab + 1, result); if (this.statements != null) { for (int i = 0; i < this.statementCount; i++) { result.append("\n"); //$NON-NLS-1$ result.appen...
public void consumeTypeVariable(char[] typeVariableName) { TypeVariableBinding[] typeVariableBindings = this.typeBinding.typeVariables(); for (int i = 0, length = typeVariableBindings.length; i < length; i++) { TypeVariableBinding typeVariableBinding = typeVariableBindings[i]; if (CharOperation.equals(type...
public void consumeTypeVariable(char[] typeVariableName) { TypeVariableBinding[] typeVariableBindings = this.methodBinding != null ? this.methodBinding.typeVariables() : this.typeBinding.typeVariables(); for (int i = 0, length = typeVariableBindings.length; i < length; i++) { TypeVariableBinding typeVariableB...
public void generateEmulatedReadAccessForField(FieldBinding fieldBinding) { CodeSnippetCodeStream localCodeStream = (CodeSnippetCodeStream) this; localCodeStream.generateEmulationForField(fieldBinding); // swap the field with the receiver this.swap(); localCodeStream.invokeJavaLangReflectFieldGetter(fieldBinding....
public void generateEmulatedReadAccessForField(FieldBinding fieldBinding) { CodeSnippetCodeStream localCodeStream = (CodeSnippetCodeStream) this; localCodeStream.generateEmulationForField(fieldBinding); // swap the field with the receiver this.swap(); localCodeStream.invokeJavaLangReflectFieldGetter(fieldBinding....
protected void addAffectedSourceFiles() { if (qualifiedStrings.isEmpty() && simpleStrings.isEmpty()) return; // the qualifiedStrings are of the form 'p1/p1' & the simpleStrings are just 'X' char[][][] qualifiedNames = ReferenceCollection.internQualifiedNames(qualifiedStrings); // if a well known qualified name was...
protected void addAffectedSourceFiles() { if (qualifiedStrings.isEmpty() && simpleStrings.isEmpty()) return; // the qualifiedStrings are of the form 'p1/p1' & the simpleStrings are just 'X' char[][][] qualifiedNames = ReferenceCollection.internQualifiedNames(qualifiedStrings); // if a well known qualified name was...
public void moveEditor(IEditorPart part, int position) { EditorPane pane = (EditorPane) ((EditorSite) part.getSite()).getPane(); //TODO commented this out during presentations works //pane.getWorkbook().reorderTab(pane, position); }
public void moveEditor(IEditorPart part, int position) { /*EditorPane pane = (EditorPane)*/ ((EditorSite) part.getSite()).getPane(); //TODO commented this out during presentations works //pane.getWorkbook().reorderTab(pane, position); }
public void deleteMessage(Object uid) throws IOException, POP3Exception, CommandCancelledException { try { store.deleteMessage(uid); headerCache.remove(uid); // set dirty flag setCacheChanged(true); } catch (POP3Exception e) { if( e.getResponse().i...
public void deleteMessage(Object uid) throws IOException, POP3Exception, CommandCancelledException { try { store.deleteMessage(uid); headerCache.remove(uid); // set dirty flag setCacheChanged(true); } catch (POP3Exception e) { if( e.getResponse() !...
protected void computeAllPackages(IResourceDelta delta, IPackageFragmentRoot[] oldRoots, IPackageFragmentRoot[] newRoots) { int status = delta.getKind(); IPath path = delta.getFullPath(); IResource rootResource = null; switch (delta.getKind()) { case IResourceDelta.ADDED : /* Look for this package only in the ...
protected void computeAllPackages(IResourceDelta delta, IPackageFragmentRoot[] oldRoots, IPackageFragmentRoot[] newRoots) { int status = delta.getKind(); IPath path = delta.getFullPath(); IResource rootResource = null; switch (delta.getKind()) { case IResourceDelta.ADDED : /* Look for this package only in the ...
public Folder createFolder(int folderId) { return new TempFolder(FolderTestHelper.homeDirectory + "/folders/" + folderId); } }
public MessageFolder createFolder(int folderId) { return new TempFolder(FolderTestHelper.homeDirectory + "/folders/" + folderId); } }
public void record(IProblem problem, CompilationResult unitResult, ReferenceContext context) { unitResult.record(problem, context); // TODO: clients are trapping problems either through factory or requestor... is result storing is 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 IMemento createChild(String type, String id) { Element child = factory.createElement(type); child.setAttribute(TAG_ID, id); element.appendChild(child); return new XMLMemento(factory, child); }
public IMemento createChild(String type, String id) { Element child = factory.createElement(type); child.setAttribute(TAG_ID, id == null ? "" : id); //$NON-NLS-1$ element.appendChild(child); return new XMLMemento(factory, child); }
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.isAssignableFr...
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.isAssignableFr...
public void setEncoding(String value) { encoding = value; } /** Set the {@link ErrorHandler} for this FileAppender and also the underlying {@link QuietWriter} if any. */
public void setEncoding(String value) { encoding = value; } /** Set the {@link ErrorHandler} for this WriterAppender and also the underlying {@link QuietWriter} if any. */
private SimpleName memberName = null; /** * Creates a new AST node for a member reference owned by the given * AST. By default, the method reference is for a member with an * unspecified, but legal, name; and no qualifier. * <p> * N.B. This constructor is package-private; all subclasses must be * decl...
private SimpleName memberName = null; /** * Creates a new AST node for a member reference owned by the given * AST. By default, the method reference is for a member with an * unspecified, but legal, name; and no qualifier. * <p> * N.B. This constructor is package-private; all subclasses must be * decl...
private void groupSelected(final WorkbenchPreferenceGroup group) { lastGroupId = group.getId(); currentGroup = group; getTreeViewer().setInput(group); Object selection = group.getLastSelection(); if (selection == null) selection = group.getGroupsAndNodes()[0]; getTreeViewer().setSelection(new Structur...
private void groupSelected(final WorkbenchPreferenceGroup group) { lastGroupId = group.getId(); currentGroup = group; getTreeViewer().setInput(group); Object selection = group.getLastSelection(); if (selection == null) selection = group.getPreferenceNodes()[0]; getTreeViewer().setSelection(new Structu...
protected String problemsMessage() { int numNew = newErrorCount + newWarningCount; int numFixed = fixedErrorCount + fixedWarningCount; if (numNew == 0 && numFixed == 0) return ""; //$NON-NLS-1$ if (numFixed == 0) return '(' + (numNew == 1 ? Util.bind("build.oneProblemFound", String.valueOf(numNew)) //$NON-NLS-...
protected String problemsMessage() { int numNew = newErrorCount + newWarningCount; int numFixed = fixedErrorCount + fixedWarningCount; if (numNew == 0 && numFixed == 0) return ""; //$NON-NLS-1$ if (numFixed == 0) return '(' + (numNew == 1 ? Util.bind("build.oneProblemFound", String.valueOf(numNew)) //$NON-NLS-...
private Class getCommonResourceClass(List objects) { if (objects == null || objects.size() == 0) { return null; } Class resourceClass = ObjectContributorManager.getResourceClass(); if (resourceClass == null) { // resources plug-in not loaded - no resources. period. return null; } List testList = ...
private Class getCommonResourceClass(List objects) { if (objects == null || objects.size() == 0) { return null; } Class resourceClass = LegacyResourceSupport.getResourceClass(); if (resourceClass == null) { // resources plug-in not loaded - no resources. period. return null; } List testList = new...
public IImportDeclaration[] getImports() throws JavaModelException { IImportContainer container= getImportContainer(); JavaModelManager manager = JavaModelManager.getJavaModelManager(); Object info = manager.getInfo(container); if (info == null) { if (manager.getInfo(this) != null) // CU was opened, but no imp...
public IImportDeclaration[] getImports() throws JavaModelException { IImportContainer container= getImportContainer(); JavaModelManager manager = JavaModelManager.getJavaModelManager(); Object info = manager.getInfo(container); if (info == null) { if (manager.getInfo(this) != null) // CU was opened, but no imp...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { LocalVariableBinding local = this.expression.localVariableBinding(); if (local != null && (local.type.tagBits & TagBits.IsBaseType) == 0) { flowContext.recordUsingNullReference(currentScope, local, this.exp...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { LocalVariableBinding local = this.expression.localVariableBinding(); if (local != null && (local.type.tagBits & TagBits.IsBaseType) == 0) { flowContext.recordUsingNullReference(currentScope, local, this.exp...
protected boolean isOnClasspath() { IJavaProject project = this.getJavaProject(); if (this.getElementType() == IJavaElement.JAVA_PROJECT){ return true; } IPath path = this.getPath(); try { // special permission granted to project binary output (when using old builder) if (!JavaModelManager.USING_NEW_BUI...
protected boolean isOnClasspath() { IJavaProject project = this.getJavaProject(); if (this.getElementType() == IJavaElement.JAVA_PROJECT){ return true; } IPath path = this.getPath(); try { // special permission granted to project binary output (when using old builder) if (!JavaModelManager.USING_NEW_BUI...
public void preferenceChange(PreferenceChangeEvent event) { String propertyName = event.getKey(); if (IPreferenceConstants.ENABLED_DECORATORS.equals(propertyName)) { DecoratorManager manager = WorkbenchPlugin.getDefault() .getDecoratorManager(); manager.applyDecoratorsPreference(); manager.clearCach...
public void preferenceChange(PreferenceChangeEvent event) { String propertyName = event.getKey(); if (IPreferenceConstants.ENABLED_DECORATORS.equals(propertyName)) { DecoratorManager manager = WorkbenchPlugin.getDefault() .getDecoratorManager(); manager.applyDecoratorsPreference(); manager.clearCach...
public char[][] fullExclusionPatternChars() { if (this.fullCharExclusionPatterns == UNINIT_PATTERNS) { int length = this.exclusionPatterns.length; this.fullCharExclusionPatterns = new char[length][]; IPath prefixPath = path.removeTrailingSeparator(); for (int i = 0; i < length; i++) { this.fullCharE...
public char[][] fullExclusionPatternChars() { if (this.fullCharExclusionPatterns == UNINIT_PATTERNS) { int length = this.exclusionPatterns.length; this.fullCharExclusionPatterns = new char[length][]; IPath prefixPath = this.path.removeTrailingSeparator(); for (int i = 0; i < length; i++) { this.full...
public void generateCode(ClassFile enclosingClassFile) { if (this.hasBeenGenerated) return; this.hasBeenGenerated = true; if (this.ignoreFurtherInvestigation) { if (this.binding == null) return; CodeSnippetClassFile.createProblemType(this, this.scope.referenceCompilationUnit().compilationResult); return; ...
public void generateCode(ClassFile enclosingClassFile) { if (this.hasBeenGenerated) return; this.hasBeenGenerated = true; if (this.ignoreFurtherInvestigation) { if (this.binding == null) return; CodeSnippetClassFile.createProblemType(this, this.scope.referenceCompilationUnit().compilationResult); return; ...
public void update(boolean changed) { Control reference = null; int side = fastViewBar.getSide(); fastViewBar.getControl().setLayoutData( new TrimLayoutData(side != SWT.BOTTOM, SWT.DEFAULT, ...
public void update(boolean changed) { Control reference = null; int side = fastViewBar.getSide(); fastViewBar.getControl().setLayoutData( new TrimLayoutData(false, SWT.DEFAULT, SW...
public String format(LoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if(buf.capacity() > UPPER_LIMIT) { buf = new StringBuffer(DEFAULT_SIZE); } else { buf.setLength(0); } ...
public String format(LoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if(buf.capacity() > UPPER_LIMIT) { buf = new StringBuffer(DEFAULT_SIZE); } else { buf.setLength(0); } ...
public void generateOuterAccess(Object[] mappingSequence, ASTNode invocationSite, Binding target, Scope scope) { if (mappingSequence == null) { if (target instanceof LocalVariableBinding) { scope.problemReporter().needImplementation(); //TODO (philippe) should improve local emulation failure reporting } else { ...
public void generateOuterAccess(Object[] mappingSequence, ASTNode invocationSite, Binding target, Scope scope) { if (mappingSequence == null) { if (target instanceof LocalVariableBinding) { scope.problemReporter().needImplementation(invocationSite); //TODO (philippe) should improve local emulation failure reporti...
public void readPopupContributors(ObjectActionContributorManager mng) { setManager(mng); IExtensionRegistry registry = Platform.getExtensionRegistry(); readRegistry(registry, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_POPUP_MENU); }
public void readPopupContributors(ObjectActionContributorManager mng) { setManager(mng); IExtensionRegistry registry = Platform.getExtensionRegistry(); readRegistry(registry, PlatformUI.PLUGIN_ID, IWorkbenchRegistryConstants.PL_POPUP_MENU); }
public void setIdentifier(String identifier) { if (identifier == null) { throw new IllegalArgumentException(); } Scanner scanner = this.getAST().scanner; char[] source = identifier.toCharArray(); scanner.setSourceBuffer(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNe...
public void setIdentifier(String identifier) { if (identifier == null) { throw new IllegalArgumentException(); } Scanner scanner = getAST().scanner; char[] source = identifier.toCharArray(); scanner.setSourceBuffer(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNextTok...
return isEqual(wildcardBinding.bound, wildcardBinding2.bound, checkTypeVariables) /******************************************************************************* * Copyright (c) 2004, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the ...
return isEqual(wildcardBinding.bound, wildcardBinding2.bound, checkTypeVariables) /******************************************************************************* * Copyright (c) 2004, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the ...
public void setOwner(Object own) { Object oldOwner = getOwner(); super.setOwner(own); if (!own.equals(oldOwner) && oldOwner instanceof MAssociation) { ((MAssociation)oldOwner).remove(); } if (own instanceof MAssociation) { MAssociation newAsc = (MAssociation)own; for (int i = 0; i < new...
public void setOwner(Object own) { Object oldOwner = getOwner(); super.setOwner(own); if (oldOwner != null && !oldOwner.equals(own) && oldOwner instanceof MAssociation) { ((MAssociation)oldOwner).remove(); } if (own instanceof MAssociation) { MAssociation newAsc = (MAssociation)own; for...
private TypeBinding internalResolveType(Scope scope) { // Answer the signature return type // Base type promotion this.constant = NotAConstant; if (this.receiver == null) { this.actualReceiverType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { this.actualReceiverType = thi...
private TypeBinding internalResolveType(Scope scope) { // Answer the signature return type // Base type promotion this.constant = NotAConstant; if (this.receiver == null) { this.actualReceiverType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { this.actualReceiverType = thi...
public void removePart(LayoutPart part) { // Reparent the part back to the main window Composite parent = mainLayout.getParent(); part.reparent(parent); // Replace part with a placeholder ILayoutContainer container = part.getContainer(); if (container != null) { ...
public void removePart(LayoutPart part) { // Reparent the part back to the main window Composite parent = mainLayout.getParent(); part.reparent(parent); // Replace part with a placeholder ILayoutContainer container = part.getContainer(); if (container != null) { ...
protected void getHandleMemento(StringBuffer buff) { ((JavaElement)getParent()).getHandleMemento(buff); buff.append(getHandleMementoDelimiter()); buff.append(this.name); buff.append(JEM_COUNT); buff.append(this.declarationSourceStart); buff.append(JEM_COUNT); buff.append(this.declarationSourceEnd); buf...
protected void getHandleMemento(StringBuffer buff) { ((JavaElement)getParent()).getHandleMemento(buff); buff.append(getHandleMementoDelimiter()); buff.append(this.name); buff.append(JEM_COUNT); buff.append(this.declarationSourceStart); buff.append(JEM_COUNT); buff.append(this.declarationSourceEnd); buf...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); constant ...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); constant ...
public void createControl(Composite parent) { initializeDialogUnits(parent); Font wizardFont = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL...
public void createControl(Composite parent) { initializeDialogUnits(parent); Font wizardFont = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL...
public IMemberValuePair getDefaultValue() throws JavaModelException { SourceMethodInfo sourceMethodInfo = (SourceMethodInfo) getElementInfo(); if (sourceMethodInfo.isAnnotationMethod()) { return ((SourceAnnotationMethodInfo) sourceMethodInfo).defaultValue; } return null; }
public IMemberValuePair getDefaultValue() throws JavaModelException { SourceMethodElementInfo sourceMethodInfo = (SourceMethodElementInfo) getElementInfo(); if (sourceMethodInfo.isAnnotationMethod()) { return ((SourceAnnotationMethodInfo) sourceMethodInfo).defaultValue; } return null; }
public void testError() throws Exception { runner.run(ErrorTest.class); assertTrue(results.toString().startsWith(convert(".E\nTime: "))); assertTrue(results.toString().indexOf(convert("\nThere was 1 failure:\n1) error(org.junit.tests.TextListenerTest$ErrorTest)\njava.lang.Exception")) != -1); }
public void testError() throws Exception { runner.run(ErrorTest.class); assertTrue(results.toString().startsWith(convert(".E\nTime: "))); assertTrue(results.toString().indexOf(convert("\nThere was 1 failure:\n1) error(org.junit.tests.listening.TextListenerTest$ErrorTest)\njava.lang.Exception")) != -1); }
public void valueChanged(TreeSelectionEvent e) { for (int i = 0; i < e.getPaths().length; i++) { if (e.getPaths()[i].getLastPathComponent() instanceof MessageNode) { MessageNode message = (MessageNode) e.getPaths()[i].getLastPathComponent(); if (e.isAddedPath(i)) { ColumbaLogger.log.debug( "Mes...
public void valueChanged(TreeSelectionEvent e) { for (int i = 0; i < e.getPaths().length; i++) { if (e.getPaths()[i].getLastPathComponent() instanceof MessageNode) { MessageNode message = (MessageNode) e.getPaths()[i].getLastPathComponent(); if (e.isAddedPath(i)) { ColumbaLogger.log.debug( "Mes...
public String getPluginId() { return getConfigurationElement().getNamespace(); }
public String getPluginId() { return null; }
public void actionPerformed(ActionEvent evt) { frameController.getView().showToolbar(); }
public void actionPerformed(ActionEvent evt) { frameMediator.getView().showToolbar(); }
public void process(CompilationUnitDeclaration unit, int i) throws CoreException { MatchingNodeSet matchingNodeSet = null; try { this.currentPotentialMatch = this.matchesToProcess[i]; if (this.currentPotentialMatch == null) return; matchingNodeSet = this.currentPotentialMatch.matchingNodeSet; if (u...
public void process(CompilationUnitDeclaration unit, int i) throws CoreException { MatchingNodeSet matchingNodeSet = null; try { this.currentPotentialMatch = this.matchesToProcess[i]; if (this.currentPotentialMatch == null) return; matchingNodeSet = this.currentPotentialMatch.matchingNodeSet; if (u...
public static Filter createEmptyFilter() { XmlElement filter = new XmlElement("filter"); filter.addAttribute("description", "new filter"); filter.addAttribute("enabled","true"); XmlElement rules = new XmlElement("rules"); rules.addAttribute("condition", "match_all"); XmlElement criteria = new XmlElement("c...
public static Filter createEmptyFilter() { XmlElement filter = new XmlElement("filter"); filter.addAttribute("description", "new filter"); filter.addAttribute("enabled","true"); XmlElement rules = new XmlElement("rules"); rules.addAttribute("condition", "matchall"); XmlElement criteria = new XmlElement("cr...
public DetachedWindow(WorkbenchPage workbenchPage) { super(workbenchPage.getWorkbenchWindow().getShell()); setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.RESIZE ); this.page = workbenchPage; folder = new PartTabFolder(page, false); }
public DetachedWindow(WorkbenchPage workbenchPage) { super(null); setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.RESIZE ); this.page = workbenchPage; folder = new PartTabFolder(page, false); }