buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private LHS doProperty( Object obj, CallStack callstack, Interpreter interpreter) throws EvalError, ReflectError { if(obj == Primitive.VOID) throw new EvalError("Attempt to access property on a void type", this); else if(obj instanceof Primitive) throw new EvalError("Attempt to access property on a pr...
private LHS doProperty( Object obj, CallStack callstack, Interpreter interpreter) throws EvalError, ReflectError { if(obj == Primitive.VOID) throw new EvalError("Attempt to access property on a void type", this); else if(obj instanceof Primitive) throw new EvalError("Attempt to access property on a pr...
public SignMessageAction(ComposerController composerController) { super(composerController, MailResourceLoader.getString("menu", "composer", "menu_message_sign")); this.composerController = composerController; // tooltip text putValue(SHORT_DESCRIPTION, MailResourceL...
public SignMessageAction(ComposerController composerController) { super(composerController, MailResourceLoader.getString("menu", "composer", "menu_message_sign")); this.composerController = composerController; // tooltip text putValue(SHORT_DESCRIPTION, MailResourceL...
public MethodDeclaration convert(AbstractMethodDeclaration methodDeclaration) { MethodDeclaration methodDecl = this.ast.newMethodDeclaration(); /** * http://dev.eclipse.org/bugs/show_bug.cgi?id=13233 * This handles cases where the parser built nodes with invalid modifiers. */ try { // if Modifier.VOL...
public MethodDeclaration convert(AbstractMethodDeclaration methodDeclaration) { MethodDeclaration methodDecl = this.ast.newMethodDeclaration(); /** * http://dev.eclipse.org/bugs/show_bug.cgi?id=13233 * This handles cases where the parser built nodes with invalid modifiers. */ try { // if Modifier.VOL...
public void delete( ScarabUser user ) throws Exception { ModuleEntity module = getModule(); ScarabSecurity security = SecurityFactory.getInstance(); if (security.hasPermission(ScarabSecurity.ITEM__APPROVE, user, module) ...
public void delete( ScarabUser user ) throws Exception { ModuleEntity module = getModule(); ScarabSecurity security = SecurityFactory.getInstance(); if (security.hasPermission(ScarabSecurity.ITEM__APPROVE, user, module) ...
public void tableChanged(TableModelChangedEvent event) throws Exception { if (MainInterface.DEBUG) { ColumbaLogger.log.info("event=" + event); } FolderTreeNode folder = event.getSrcFolder(); if (folder == null) { if (event.getEventType() == TableModelChangedEvent.UPDATE) getHeaderTableModel().updat...
public void tableChanged(TableModelChangedEvent event) throws Exception { if (MainInterface.DEBUG) { ColumbaLogger.log.info("event=" + event); } FolderTreeNode folder = event.getSrcFolder(); if (folder == null) { if (event.getEventType() == TableModelChangedEvent.UPDATE) getHeaderTableModel().updat...
public AbstractFolder getTrashFolder() { AbstractFolder ret = findChildWithUID(accountItem .getSpecialFoldersItem().getInteger("trash"), true); // has the imap account no trash folder using the default trash folder if (ret == null) { ret = FolderTreeModel.getInstance().getTrashFolder(); } return ret...
public AbstractFolder getTrashFolder() { AbstractFolder ret = findChildWithUID(accountItem .getSpecialFoldersItem().getInteger("trash"), true); // has the imap account no trash folder using the default trash folder if (ret == null) { ret = (AbstractFolder) FolderTreeModel.getInstance().getTrashFolder(); ...
private void checkAndSetModifiersForVariable(LocalVariableBinding varBinding) { int modifiers = varBinding.modifiers; if ((modifiers & ExtraCompilerModifiers.AccAlternateModifierProblem) != 0 && varBinding.declaration != null){ problemReporter().duplicateModifierForVariable(varBinding.declaration, this instanc...
private void checkAndSetModifiersForVariable(LocalVariableBinding varBinding) { int modifiers = varBinding.modifiers; if ((modifiers & ExtraCompilerModifiers.AccAlternateModifierProblem) != 0 && varBinding.declaration != null){ problemReporter().duplicateModifierForVariable(varBinding.declaration, this instanc...
public static Request aClass(Class<?> clazz) { return new ClassRequest(clazz); } /** * Create a <code>Request</code> that, when processed, will run all the tests * in a set of classes. * @param collectionName a name to identify this suite of tests * @param classes the classes containing the tests * @ret...
public static Request aClass(Class<?> clazz) { return new ClassRequest(clazz); } /** * Create a <code>Request</code> that, when processed, will run all the tests * in a set of classes. * @param collectionName a name to identify this suite of tests * @param classes the classes containing the tests * @ret...
private BindingResolver bindingResolver; static Object buildDOMValue(final Object internalObject, BindingResolver resolver) { if (internalObject == null) return null; if (internalObject instanceof Constant) { Constant constant = (Constant) internalObject; switch (constant.typeID()) { case TypeIds....
private BindingResolver bindingResolver; static Object buildDOMValue(final Object internalObject, BindingResolver resolver) { if (internalObject == null) return null; if (internalObject instanceof Constant) { Constant constant = (Constant) internalObject; switch (constant.typeID()) { case TypeIds....
public byte [] getSignature() { return signature; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (signature == null) return; out.writeShort(covered); out.writeByte(alg); out.writeByte(labels); out.writeInt(origttl); out.writeInt((int)(expire.getTime() / 1000)); out.writeInt...
public byte [] getSignature() { return signature; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (signature == null) return; out.writeShort(covered); out.writeByte(alg); out.writeByte(labels); out.writeInt(origttl); out.writeInt((int)(expire.getTime() / 1000)); out.writeInt...
private void checkArgumentsSize() { TypeBinding[] parameters = this.binding.parameters; int size = 1; // an abstact method or a native method cannot be static for (int i = 0, max = parameters.length; i < max; i++) { TypeBinding parameter = parameters[i]; if (parameter == LongBinding || parameter == DoubleB...
private void checkArgumentsSize() { TypeBinding[] parameters = this.binding.parameters; int size = 1; // an abstact method or a native method cannot be static for (int i = 0, max = parameters.length; i < max; i++) { TypeBinding parameter = parameters[i]; if (parameter == TypeBinding.LONG || parameter == Ty...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding genericType, int rank) { TypeBinding boundType = null; if (this.bound != null) { boundType = scope.kind == Scope.CLASS_SCOPE ? this.bound.resolveType((ClassScope)scope) : this.bound.resolveType((BlockScope)scope); ...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding genericType, int rank) { TypeBinding boundType = null; if (this.bound != null) { boundType = scope.kind == Scope.CLASS_SCOPE ? this.bound.resolveType((ClassScope)scope) : this.bound.resolveType((BlockScope)scope, tru...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; // generation of code responsible for invoking the finally // blocks in sequence if (subroutines != null){ for (int i = 0, max = subroutines.length; i < ma...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) { return; } int pc = codeStream.position; // generation of code responsible for invoking the finally // blocks in sequence if (subroutines != null){ for (int i = 0, max = subroutines.length; i < max; i...
public boolean isDefinitelyAssigned(Scope scope, int initStateIndex, LocalVariableBinding local) { // Mirror of UnconditionalFlowInfo.isDefinitelyAssigned(..) if (initStateIndex == -1) return false; if (local.isArgument) { return true; } int localPosition = local.id + maxFieldCount; MethodScope methodScope = ...
public boolean isDefinitelyAssigned(Scope scope, int initStateIndex, LocalVariableBinding local) { // Mirror of UnconditionalFlowInfo.isDefinitelyAssigned(..) if (initStateIndex == -1) return false; if ((local.tagBits & TagBits.IsArgument) != 0) { return true; } int localPosition = local.id + maxFieldCount; M...
private void smartZoom() { WorkbenchWindow wbw = (WorkbenchWindow) getPage().getWorkbenchWindow(); if (wbw == null || wbw.getShell() == null) return; Perspective perspective = getPage().getActivePerspective(); FastViewManager fvm = perspective.getFastViewManager(); fvm.deferUpdates(true); // Cache...
private void smartZoom() { WorkbenchWindow wbw = (WorkbenchWindow) getPage().getWorkbenchWindow(); if (wbw == null || wbw.getShell() == null) return; Perspective perspective = getPage().getActivePerspective(); FastViewManager fvm = perspective.getFastViewManager(); fvm.deferUpdates(true); // Cache...
public CodeSnippetClassFile( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding aType, org.eclipse.jdt.internal.compiler.ClassFile enclosingClassFile, boolean creatingProblemType) { /** * INTERNAL USE-ONLY * This methods creates a new instance of the receiver. * * @param aType org.eclipse.jdt.intern...
public CodeSnippetClassFile( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding aType, org.eclipse.jdt.internal.compiler.ClassFile enclosingClassFile, boolean creatingProblemType) { /** * INTERNAL USE-ONLY * This methods creates a new instance of the receiver. * * @param aType org.eclipse.jdt.intern...
private ConfigurationFactory() { Argo.log.debug("Constructor"); }
private ConfigurationFactory() { // Argo.log.debug("Constructor"); }
public PropPanelInteraction() { super("Interaction", _interactionIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), stereotypeBox); addField(Argo.localize("UMLMenu", "label.n...
public PropPanelInteraction() { super("Interaction", _interactionIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), stereotypeBox); addField(Argo.localize("UMLMenu", "label.n...
protected void updateIndex(Openable element, IResourceDelta delta) { if (indexManager == null) return; switch (element.getElementType()) { case IJavaElement.JAVA_PROJECT : switch (delta.getKind()) { case IResourceDelta.ADDED : case IResourceDelta.OPEN : indexManager.indexAll(element.getJavaProje...
protected void updateIndex(Openable element, IResourceDelta delta) { if (indexManager == null) return; switch (element.getElementType()) { case IJavaElement.JAVA_PROJECT : switch (delta.getKind()) { case IResourceDelta.ADDED : case IResourceDelta.OPEN : indexManager.indexAll(element.getJavaProje...
public void end(ExecutionContext ec, String e) { if (inError) { return; } if (layout instanceof OptionHandler) { ((OptionHandler) layout).activateOptions(); } Object o = ec.peekObject(); if (o != layout) { logger.warn( "The object on the top the of the stack is not...
public void end(ExecutionContext ec, String e) { if (inError) { return; } if (layout instanceof OptionHandler) { ((OptionHandler) layout).activateOptions(); } Object o = ec.peekObject(); if (o != layout) { logger.warn( "The object on the top the of the stack is not...
private void initLevelTags() { int level = ((int)(this.sourceLevel >>> 16)) - ClassFileConstants.MAJOR_VERSION_1_1 + 1; // Init block tags this.levelTags[BLOCK_IDX] = new char[BLOCK_ALL_TAGS_LENGTH][]; this.levelTagsLength[BLOCK_IDX] = 0; for (int i=0; i<=level; i++) { int length = BLOCK_TAGS[i].length; ...
private void initLevelTags() { int level = ((int)(this.complianceLevel >>> 16)) - ClassFileConstants.MAJOR_VERSION_1_1 + 1; // Init block tags this.levelTags[BLOCK_IDX] = new char[BLOCK_ALL_TAGS_LENGTH][]; this.levelTagsLength[BLOCK_IDX] = 0; for (int i=0; i<=level; i++) { int length = BLOCK_TAGS[i].lengt...
public CompilationResult compilationResult() { return this.compilationResult; } /** * Bytecode generation for a method */ public void generateCode(ClassScope classScope, ClassFile classFile) { int problemResetPC = 0; classFile.codeStream.wideMode = false; // reset wideMode to false if (ignoreFur...
public CompilationResult compilationResult() { return this.compilationResult; } /** * Bytecode generation for a method */ public void generateCode(ClassScope classScope, ClassFile classFile) { int problemResetPC = 0; classFile.codeStream.wideMode = false; // reset wideMode to false if (ignoreFur...
protected boolean connectTypeVariables(TypeParameter[] typeParameters) { boolean noProblems = true; if (typeParameters == null || environment().options.sourceLevel < ClassFileConstants.JDK1_5) return true; nextVariable : for (int i = 0, paramLength = typeParameters.length; i < paramLength; i++) { TypeParamet...
protected boolean connectTypeVariables(TypeParameter[] typeParameters) { boolean noProblems = true; if (typeParameters == null || environment().options.sourceLevel < ClassFileConstants.JDK1_5) return true; nextVariable : for (int i = 0, paramLength = typeParameters.length; i < paramLength; i++) { TypeParamet...
public void widgetSelected(SelectionEvent e) { Shell windowShell = window.getShell(); if (windowShell.getMinimized()) windowShell.setMinimized(false); windowShell.forceFocus(); windowShell.moveAbove(null); } }); mi.setSelection(window == workbenchWindow); } ...
public void widgetSelected(SelectionEvent e) { Shell windowShell = window.getShell(); if (windowShell.getMinimized()) windowShell.setMinimized(false); windowShell.setActive(); windowShell.moveAbove(null); } }); mi.setSelection(window == workbenchWindow); } ...
public static final String concatWith(String[] array, char separator) { StringBuffer buffer = new StringBuffer(); for (int i = 0, length = array.length; i < length; i++) { buffer.append(array[i]); if (i < length - 1) buffer.append('.'); }
public static final String concatWith(String[] array, char separator) { StringBuffer buffer = new StringBuffer(); for (int i = 0, length = array.length; i < length; i++) { buffer.append(array[i]); if (i < length - 1) buffer.append(separator); }
public Object getValue(String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return store.getString(propertyId); } if (propertyType == Boolean.class) { return new Boolean(store.getBoolean(propertyId)); } ...
public Object getValue(String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return store.getString(propertyId); } if (propertyType == Boolean.class) { return store.getBoolean(propertyId) ? Boolean.TRUE : Boolean.FALSE; ...
public void start( SaxContext ctx ) { Object elem=ctx.currentObject(); AttributeList attributes = ctx.getCurrentAttributes(); XmlMapper xh=ctx.getMapper(); for (int i = 0; i < attributes.getLength (); i++) { String type = attributes.getType (i); String name=attributes.getName(i); String value=a...
public void start( SaxContext ctx ) { Object elem=ctx.currentObject(); AttributeList attributes = ctx.getCurrentAttributes(); XmlMapper xh=ctx.getMapper(); for (int i = 0; i < attributes.getLength (); i++) { String type = attributes.getType (i); String name=attributes.getName(i); String value=a...
public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) { this.selector = selector; this.methodDescriptor = methodDescriptor; this.exceptionTypeNames = exceptionTypeNames; this.isConstructor = this.isConstructor; }
public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) { this.selector = selector; this.methodDescriptor = methodDescriptor; this.exceptionTypeNames = exceptionTypeNames; this.isConstructor = isConstructor; }
public boolean implementsMethod(MethodBinding method) { return this.type.implementsMethod(method); // erasure } void initialize(ReferenceBinding someType, TypeBinding[] someArguments) { this.type = someType; this.sourceName = someType.sourceName; this.compoundName = someType.compoundName; this.fPackage = ...
public boolean implementsMethod(MethodBinding method) { return this.type.implementsMethod(method); // erasure } void initialize(ReferenceBinding someType, TypeBinding[] someArguments) { this.type = someType; this.sourceName = someType.sourceName; this.compoundName = someType.compoundName; this.fPackage = ...
public SingleVariableDeclaration convert(org.eclipse.jdt.internal.compiler.ast.Argument argument) { SingleVariableDeclaration variableDecl = this.ast.newSingleVariableDeclaration(); if ((argument.modifiers & CompilerModifiers.AccJustFlag) != 0) { setModifiers(variableDecl, argument); } SimpleName name = thi...
public SingleVariableDeclaration convert(org.eclipse.jdt.internal.compiler.ast.Argument argument) { SingleVariableDeclaration variableDecl = this.ast.newSingleVariableDeclaration(); if ((argument.modifiers & CompilerModifiers.AccJustFlag) != 0) { setModifiers(variableDecl, argument); } SimpleName name = thi...
protected void createPanels() { identityPanel = new IdentityPanel(accountItem); receiveOptionsPanel = new ReceiveOptionsPanel(this, accountItem); incomingServerPanel = new IncomingServerPanel(this, accountItem, receiveOptionsPanel); outgoingServerPanel = new Outgoi...
protected void createPanels() { identityPanel = new IdentityPanel(accountItem); receiveOptionsPanel = new ReceiveOptionsPanel(this, accountItem); incomingServerPanel = new IncomingServerPanel(this, accountItem, receiveOptionsPanel); outgoingServerPanel = new Outgoi...
public void performFragmentEffect(){ if ((this.mode & M_NO_ALIGNMENT) != 0) { this.scribe.space(); } if (this.fragmentBreaks[this.fragmentIndex] == 1) { this.scribe.printNewLine(); } if (this.fragmentIndentations[this.fragmentIndex] > 0) { this.scribe.indentationLevel = this.fragmentIndentations[...
public void performFragmentEffect(){ if ((this.mode & M_NO_ALIGNMENT) != 0) { return; } if (this.fragmentBreaks[this.fragmentIndex] == 1) { this.scribe.printNewLine(); } if (this.fragmentIndentations[this.fragmentIndex] > 0) { this.scribe.indentationLevel = this.fragmentIndentations[this.fragment...
public void body(String text) throws Exception { Category cat = Category.getInstance(org.tigris.scarab.util.xml.DBImport.class); cat.debug("(" + state + ") activity attribute description body: " + text); super.body(text); }
public void body(String text) throws Exception { Category cat = Category.getInstance(org.tigris.scarab.util.xml.DBImport.class); cat.debug("(" + state + ") activity attribute description body: " + text); super.digesterPush(text); }
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if ((targetType = type.resolveType(scope, true /* check bounds*/)) == null) return null; if (targetType.isArrayType() && ((ArrayBinding) targetType).leafComponentType == VoidBinding) { scope.problemReporter().cannotAllocateVoi...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if ((targetType = type.resolveType(scope, true /* check bounds*/)) == null) return null; if (targetType.isArrayType() && ((ArrayBinding) targetType).leafComponentType == VoidBinding) { scope.problemReporter().cannotAllocateVoi...
public void run(IProgressMonitor progressMonitor) throws CoreException { for(int i = 0; i < projectLength; i++){ if (progressMonitor != null && progressMonitor.isCanceled()) return; JavaProject affectedProject = (JavaProject)modifiedProjects[i]; if (affectedProject == null) continue; //...
public void run(IProgressMonitor progressMonitor) throws CoreException { for(int i = 0; i < projectLength; i++){ if (progressMonitor != null && progressMonitor.isCanceled()) return; JavaProject affectedProject = (JavaProject)modifiedProjects[i]; if (affectedProject == null) continue; //...
this.type = null; // Initialized with the public method verify(SourceTypeBinding) this.inheritedMethods = null; this.currentMethods = null; this.runtimeException = null; this.errorException = null; this.environment = environment; } boolean areMethodsEqual(MethodBinding one, MethodBinding two) { return areParame...
this.type = null; // Initialized with the public method verify(SourceTypeBinding) this.inheritedMethods = null; this.currentMethods = null; this.runtimeException = null; this.errorException = null; this.environment = environment; } boolean areMethodsEqual(MethodBinding one, MethodBinding two) { return areParame...
private void addView(String viewId, int relationship, float ratio, String refId, boolean standalone, boolean showTitle) { if (checkPartInLayout(viewId)) return; try { // Create the part. LayoutPart newPart = createView(viewId); if (newPart...
private void addView(String viewId, int relationship, float ratio, String refId, boolean standalone, boolean showTitle) { if (checkPartInLayout(viewId)) return; try { // Create the part. LayoutPart newPart = createView(viewId); if (newPart...
public boolean isEditable() { WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry(); String id= getId(); if (id == null) return false; WorkingSetDescriptor descriptor= registry.getWorkingSetDescriptor(id); if (descriptor == null) return false; return descriptor.getPageCla...
public boolean isEditable() { WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry(); String id= getId(); if (id == null) return false; WorkingSetDescriptor descriptor= registry.getWorkingSetDescriptor(id); if (descriptor == null) return false; return descriptor.isEditable...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r1 = ((AbstractMailFrameController) getFrameController()) .getTableSelection(); MainInterface.processor.addOp(new ReplyWithTemplateCommand(r1)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r1 = ((AbstractMailFrameController) getFrameMediator()) .getTableSelection(); MainInterface.processor.addOp(new ReplyWithTemplateCommand(r1)); }
public void resolve(BlockScope upperScope) { // use the scope that will hold the init declarations scope = new BlockScope(upperScope); this.elementVariable.resolve(scope); // collection expression can see itemVariable TypeBinding elementType = this.elementVariable.type.resolvedType; TypeBinding collectionTyp...
public void resolve(BlockScope upperScope) { // use the scope that will hold the init declarations scope = new BlockScope(upperScope); this.elementVariable.resolve(scope); // collection expression can see itemVariable TypeBinding elementType = this.elementVariable.type.resolvedType; TypeBinding collectionTyp...
public boolean performOk() { StringBuffer preference = new StringBuffer(); TableItem items[] = pluginsList.getItems(); for (int i = 0; i < items.length; i++) { if (!items[i].getChecked()) { preference.append((String) items[i].getData()); preference...
public boolean performOk() { StringBuffer preference = new StringBuffer(); TableItem items[] = pluginsList.getItems(); for (int i = 0; i < items.length; i++) { if (!items[i].getChecked()) { preference.append((String) items[i].getData()); preference...
protected void createTools(JPanel palette) { super.createTools(palette); Tool tool = new TextTool(this, new TextFigure()); palette.add(createToolButton(IMAGES+"TEXT", "Text Tool", tool)); tool = new PertFigureCreationTool(this); palette.add(createToolButton(PERTIMAGES+"PERT", "Task Tool", tool)); tool =...
protected void createTools(JPanel palette) { super.createTools(palette); Tool tool = new TextTool(this, new TextFigure()); palette.add(createToolButton(IMAGES+"TEXT", "Text Tool", tool)); tool = new PertFigureCreationTool(this); palette.add(createToolButton(PERTIMAGES+"PERT", "Task Tool", tool)); tool =...
public void createPartControl(Composite parent) { viewer = new DetailedProgressViewer(parent, SWT.MULTI); viewer.setComparator(ProgressManagerUtil.getProgressViewerComparator()); viewer.getControl().setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true)); PlatformUI.getWorkbench().getHelpSystem().se...
public void createPartControl(Composite parent) { viewer = new DetailedProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL); viewer.setComparator(ProgressManagerUtil.getProgressViewerComparator()); viewer.getControl().setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true)); PlatformUI.getWorkbench().get...
public StringBuffer printStatement(int tab, StringBuffer output) { printIndent(tab, output).append("for ("); //$NON-NLS-1$ this.elementVariable.print(0, output); output.append(" : ");//$NON-NLS-1$ this.collection.print(0, output).append(") "); //$NON-NLS-1$ //block if (this.action == null) { output.ap...
public StringBuffer printStatement(int tab, StringBuffer output) { printIndent(tab, output).append("for ("); //$NON-NLS-1$ this.elementVariable.print(0, output); output.append(" : ");//$NON-NLS-1$ this.collection.print(0, output).append(") "); //$NON-NLS-1$ //block if (this.action == null) { output.ap...
public void updateGUI() throws Exception { MessageController messageController = ((MessageViewOwner) frameMediator) .getMessageController(); // display changes messageController.updateGUI(); if (flags == null) return; // if the message it not yet seen if (!(flags.getSeen())) { // restart time...
public void updateGUI() throws Exception { MessageController messageController = ((MessageViewOwner) frameMediator) .getMessageController(); // display changes messageController.updateGUI(); if (flags == null) return; // if the message it not yet seen if (!flags.getSeen() && !srcFolder.isReadOnl...
public void widgetSelected(SelectionEvent e) { //rotate the selected item in and the other items right // don't touch the "Open" item MenuItem menuItem = (MenuItem)e.widget; Object item = menuItem.getData("IContributionItem"); //$NON-NLS-1$ if (item instanceof PerspectiveBarContributionItem...
public void widgetSelected(SelectionEvent e) { //rotate the selected item in and the other items right // don't touch the "Open" item MenuItem menuItem = (MenuItem)e.widget; Object item = menuItem.getData("IContributionItem"); //$NON-NLS-1$ if (item instanceof PerspectiveBarContributionItem...
public BodyTextViewer() { setMargin(new Insets(5, 5, 5, 5)); setEditable(false); htmlEditorKit = new HTMLEditorKit(); setEditorKit(htmlEditorKit); parser = new DocumentParser(); setContentType("text/html"); XmlElement gui = MailConfig.get("options").getElement("/options/gui"); XmlElement messagevie...
public BodyTextViewer() { setMargin(new Insets(5, 5, 5, 5)); setEditable(false); htmlEditorKit = new HTMLEditorKit(); setEditorKit(htmlEditorKit); parser = new DocumentParser(); setContentType("text/html"); XmlElement gui = MailConfig.get("options").getElement("/options/gui"); XmlElement messagevie...
public void emptyTrash() { cat.debug("needs-more-work: emptyTheTrash not implemented yet"); if (cat.getPriority().equals(Priority.DEBUG)) { StringBuffer buf = new StringBuffer("Trash contents:"); buf.append("\n"); java.util.Enumeration keys = _contents.elements(); while (keys.h...
public void emptyTrash() { cat.debug("needs-more-work: emptyTheTrash not implemented yet"); if (cat.getPriority() != null && cat.getPriority().equals(Priority.DEBUG)) { StringBuffer buf = new StringBuffer("Trash contents:"); buf.append("\n"); java.util.Enumeration keys = _contents.elem...
public List getMatchingIssues() throws Exception { Criteria crit = new Criteria(); crit.add(IssuePeer.MODULE_ID, getModule().getModuleId()); crit.add(IssuePeer.TYPE_ID, getIssueType().getIssueTypeId()); crit.add(IssuePeer.DELETED, false); // add option values ...
public List getMatchingIssues() throws Exception { Criteria crit = new Criteria(); crit.add(IssuePeer.MODULE_ID, getModule().getModuleId()); crit.add(IssuePeer.TYPE_ID, getIssueType().getIssueTypeId()); crit.add(IssuePeer.DELETED, false); // add option values ...
private void createEditorTab(final EditorReference ref, final String workbookId) throws PartInitException { editorPresentation.addEditor(ref, workbookId); }
private void createEditorTab(final EditorReference ref, final String workbookId) throws PartInitException { editorPresentation.addEditor(ref, workbookId, true); }
protected Persistent putInstanceImpl(Persistent om) throws TorqueException { Persistent oldOm = super.putInstanceImpl(om); // saving an issue object could affect some cached results, since it could be a move Serializable obj = (Serializable)om; getMethodResult().remove(ob...
protected Persistent putInstanceImpl(Persistent om) throws TorqueException { Persistent oldOm = super.putInstanceImpl(om); // saving an issue object could affect some cached results, since it could be a move Serializable obj = (Serializable)om; getMethodResult().removeAll...
public void setExpression(String expression) { if (!(evaluator instanceof DefaultEvaluator)) { this.expression = expression; evaluator = new DefaultEvaluator(expression); } }
public void setExpression(String expression) { if (evaluator instanceof DefaultEvaluator) { this.expression = expression; evaluator = new DefaultEvaluator(expression); } }
private void initFormatterCommentParser() { if (this.formatterCommentParser == null) { this.formatterCommentParser = new FormatterCommentParser(null); } this.formatterCommentParser.scanner.setSource(this.scanner.source); this.formatterCommentParser.source = this.scanner.source; this.formatterCommentParser...
private void initFormatterCommentParser() { if (this.formatterCommentParser == null) { this.formatterCommentParser = new FormatterCommentParser(this.scanner.sourceLevel); } this.formatterCommentParser.scanner.setSource(this.scanner.source); this.formatterCommentParser.source = this.scanner.source; this.fo...
private TypeDeclaration convert(SourceType typeHandle, CompilationResult compilationResult) throws JavaModelException { SourceTypeElementInfo typeInfo = (SourceTypeElementInfo) typeHandle.getElementInfo(); if (typeInfo.isAnonymousMember()) throw new AnonymousMemberFound(); /* create type declaration - can be ...
private TypeDeclaration convert(SourceType typeHandle, CompilationResult compilationResult) throws JavaModelException { SourceTypeElementInfo typeInfo = (SourceTypeElementInfo) typeHandle.getElementInfo(); if (typeInfo.isAnonymousMember()) throw new AnonymousMemberFound(); /* create type declaration - can be ...
public void deleteElement(MModelElement element) { UmlFactory.getFactory().remove(element); // 2002-07-15 // Jaap Branderhorst // Force an update of the navigation pane to solve issue 323 ProjectBrowser.TheInstance.getNavPane().forceUpdate(); }
public void deleteElement(MModelElement element) { element.remove(); // 2002-07-15 // Jaap Branderhorst // Force an update of the navigation pane to solve issue 323 ProjectBrowser.TheInstance.getNavPane().forceUpdate(); }
public void processHandlerSubmissions(boolean force, final Shell newActiveShell) { IWorkbenchSite newWorkbenchSite = null; IWorkbenchWindow newWorkbenchWindow = workbench .getActiveWorkbenchWindow(); boolean update = false; // Update the active shell, and...
public void processHandlerSubmissions(boolean force, final Shell newActiveShell) { IWorkbenchSite newWorkbenchSite = null; IWorkbenchWindow newWorkbenchWindow = workbench .getActiveWorkbenchWindow(); boolean update = false; // Update the active shell, and...
public interface IType extends IMember { /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 ...
public interface IType extends IMember { /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 ...
public void computeLocalVariablePositions( int initOffset, CodeStream codeStream) { this.offset = initOffset; this.maxOffset = initOffset; // local variable init int ilocal = 0, maxLocals = 0, localsLength = locals.length; while ((maxLocals < localsLength) && (locals[maxLocals] != null)) maxLocals++...
public void computeLocalVariablePositions( int initOffset, CodeStream codeStream) { this.offset = initOffset; this.maxOffset = initOffset; // local variable init int ilocal = 0, maxLocals = 0, localsLength = locals.length; while ((maxLocals < localsLength) && (locals[maxLocals] != null)) maxLocals++...
public void updateActiveWorkbenchWindowMenuManager() { IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow(); if (workbenchWindow != null) { MenuManager menuManager = ((WorkbenchWindow) workbenchWindow).getMenuManager(); menuManager.update(IAction.TEXT); } }
public void updateActiveWorkbenchWindowMenuManager() { IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow(); if (workbenchWindow instanceof WorkbenchWindow) { MenuManager menuManager = ((WorkbenchWindow) workbenchWindow).getMenuManager(); menuManager.update(IAction.TEXT); } }
protected void executeOperation() throws JavaModelException { checkCanceled(); try { beginTask("", 1); //$NON-NLS-1$ if (JavaModelManager.CP_RESOLVE_VERBOSE) verbose_set_container(); if (JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED) verbose_set_container_invocation_trace(); JavaModelManager ma...
protected void executeOperation() throws JavaModelException { checkCanceled(); try { beginTask("", 1); //$NON-NLS-1$ if (JavaModelManager.CP_RESOLVE_VERBOSE) verbose_set_container(); if (JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED) verbose_set_container_invocation_trace(); JavaModelManager ma...
public void resolve(BlockScope upperScope) { TypeBinding testType = testExpression.resolveType(upperScope); if (testType == null) return; testExpression.implicitWidening(testType, testType); if (!(testExpression .isConstantValueOfTypeAssignableToType(testType, IntBinding))) { if (!upperScope.areTypes...
public void resolve(BlockScope upperScope) { TypeBinding testType = testExpression.resolveType(upperScope); if (testType == null) return; testExpression.implicitWidening(testType, testType); if (!(testExpression .isConstantValueOfTypeAssignableToType(testType, IntBinding))) { if (!Scope.areTypesCompa...
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == close) dispose(); else if(source == remove) { TreePath[] selected = tree.getSelectionModel() .getSelectionPaths(); StringBuffer buf = new StringBuffer(); Roster roster = new Roster(); f...
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == close) dispose(); else if(source == remove) { TreePath[] selected = tree.getSelectionModel() .getSelectionPaths(); StringBuffer buf = new StringBuffer(); Roster roster = new Roster(); f...
public String getPatternName(){ return "MethodDeclarationPattern: "; }
public String getPatternName(){ return "MethodDeclarationPattern: "/*nonNLS*/; }
public String getName() { return "Subject_Contains"; }
public String getName() { return "subject_contains"; }
protected String generateSearchString( Filter filter ) { FilterRule rule = filter.getFilterRule(); Vector ruleStringList = new Vector(); for (int i = 0; i < rule.count(); i++) { FilterCriteria criteria = rule.getCriteria(i); String headerItem; //StringBuffer searchString = new StringBuffer(); Stri...
protected String generateSearchString( Filter filter ) { FilterRule rule = filter.getFilterRule(); Vector ruleStringList = new Vector(); for (int i = 0; i < rule.count(); i++) { FilterCriteria criteria = rule.get(i); String headerItem; //StringBuffer searchString = new StringBuffer(); String searc...
private void createUserEntryGroup(Composite parent) { Font font = parent.getFont(); // destination specification group Composite userDefinedGroup = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; userDefinedGroup.setLayout...
private void createUserEntryGroup(Composite parent) { Font font = parent.getFont(); // destination specification group Composite userDefinedGroup = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; userDefinedGroup.setLayout...
public String getBody() { becomeDetailed(); if (hasBody()) { if (fBody != null) { return fBody; } else { return new String(CharOperation.subarray(fDocument, fBodyRange[0], fBodyRange[1] + 1)); } } else { return null; } }
public String getBody() { becomeDetailed(); if (hasBody()) { if (fBody != null) { return fBody; } else { return new String(fDocument, fBodyRange[0], fBodyRange[1] + 1 - fBodyRange[0]); } } else { return null; } }
protected void getMethodBodies(CompilationUnitDeclaration unit) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079...
protected void getMethodBodies(CompilationUnitDeclaration unit) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079...
private final static int SASH_WIDTH = 3; /**
private LayoutTree children[] = new LayoutTree[2]; /* The sash's width when vertical and hight on horizontal */ final static int SASH_WIDTH = 3; /**
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = MailInterface.treeModel.getSelectFolderDialog(); if (dialog.success()) { MessageFolder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; ...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = new SelectFolderDialog(getFrameMediator()); if (dialog.success()) { MessageFolder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; ...
protected void syncFolder(AbstractFolder parent, String name, ListInfo info) throws Exception { if ((name.indexOf(server.getDelimiter()) != -1) && (name.indexOf(server.getDelimiter()) != (name.length() - 1))) { // delimiter found // -> recursively create all necessary folders to create // -> the f...
protected void syncFolder(AbstractFolder parent, String name, ListInfo info) throws Exception { if ((name.indexOf(server.getDelimiter()) != -1) && (name.indexOf(server.getDelimiter()) != (name.length() - 1))) { // delimiter found // -> recursively create all necessary folders to create // -> the f...
public long getAnnotationTagBits() { if ((this.tagBits & TagBits.AnnotationResolved) == 0) { TypeDeclaration typeDecl = this.scope.referenceContext; boolean old = typeDecl.staticInitializerScope.insideTypeAnnotation; try { typeDecl.staticInitializerScope.insideTypeAnnotation = true; ASTNode.resolveAnnotati...
public long getAnnotationTagBits() { if ((this.tagBits & TagBits.AnnotationResolved) == 0 && this.scope != null) { TypeDeclaration typeDecl = this.scope.referenceContext; boolean old = typeDecl.staticInitializerScope.insideTypeAnnotation; try { typeDecl.staticInitializerScope.insideTypeAnnotation = true; A...
public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { switch (parent.getElementType()) { case IJavaElement.COMPILATION_UNIT: return ((ICompilationUnit)parent).getType(getName()); case IJavaElement.TYPE: return ((IType)parent).getType(getName()); case IJavaElement.FIELD: ...
public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { switch (parent.getElementType()) { case IJavaElement.COMPILATION_UNIT: return ((ICompilationUnit)parent).getType(getName()); case IJavaElement.TYPE: return ((IType)parent).getType(getName()); case IJavaElement.FIELD: ...
public Object construct() { //setWorkerStatusController(); try { op.process(this, operationMode); if (!cancelled() && (operationMode == Command.FIRST_EXECUTION)) { boss.getUndoManager().addToUndo(op); } } catch (CommandCancelledException e...
public Object construct() { //setWorkerStatusController(); try { op.process(this, operationMode); if (!cancelled() && (operationMode == Command.FIRST_EXECUTION)) { boss.getUndoManager().addToUndo(op); } } catch (CommandCancelledException e...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(getName()); sb.append("\t"); sb.append(Type.string(getType())); if (options != null) { Enumeration e = options.keys(); while (e.hasMoreElements()) { Integer i = (Integer) e.nextElement(); sb.append(i + " "); } } sb.append(" ; ...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(getName()); sb.append("\t"); sb.append(Type.string(getType())); if (options != null) { Enumeration e = options.keys(); while (e.hasMoreElements()) { Integer i = (Integer) e.nextElement(); sb.append(i + " "); } } sb.append(" ; ...
public void selectionChanged(SelectionChangedEvent e) { TreeSelectionChangedEvent treeEvent = (TreeSelectionChangedEvent) e; // we are only interested in folders containing messages // meaning of instance AbstractMessageFolder and not of instance FolderTreeNode // -> casting here t...
public void selectionChanged(SelectionChangedEvent e) { TreeSelectionChangedEvent treeEvent = (TreeSelectionChangedEvent) e; // we are only interested in folders containing messages // meaning of instance AbstractMessageFolder and not of instance FolderTreeNode // -> casting here t...
public FieldBinding addSyntheticField(AssertStatement assertStatement, BlockScope blockScope) { if (synthetics == null) { synthetics = new Hashtable[4]; } if (synthetics[FIELD] == null) { synthetics[FIELD] = new Hashtable(5); } FieldBinding synthField = (FieldBinding) synthetics[FIELD].get("assertionEmulatio...
public FieldBinding addSyntheticField(AssertStatement assertStatement, BlockScope blockScope) { if (synthetics == null) { synthetics = new Hashtable[4]; } if (synthetics[FIELD] == null) { synthetics[FIELD] = new Hashtable(5); } FieldBinding synthField = (FieldBinding) synthetics[FIELD].get("assertionEmulatio...
List getActivityPatternBindingDefinitions(); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v...
List getActivityPatternBindingDefinitions(); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v...
public final boolean isActive(final String commandId) { if (commandId != null) { final ICommand command = workbenchCommandSupport.getCommandManager().getCommand(commandId); if (command != null) return command.isDefined() && command.isActive(); } return true; } }); addWindo...
public final boolean isActive(final String commandId) { if (commandId != null) { final ICommand command = workbenchCommandSupport.getCommandManager().getCommand(commandId); if (command != null) return command.isDefined() && workbenchActivitySupport.getActivityManager().getIdentifier(comman...
public InetAddress getAddress() { String s = toDottedQuad(addr); try { return InetAddress.getByName(s); } catch (UnknownHostException e) { return null; } } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { out.writeByte(((addr >>> 24) & 0xFF)); out.writeByte(((addr >>> 16) & 0xFF))...
public InetAddress getAddress() { String s = toDottedQuad(addr); try { return InetAddress.getByName(s); } catch (UnknownHostException e) { return null; } } void rrToWire(DataByteOutputStream out, Compression c) { out.writeByte(((addr >>> 24) & 0xFF)); out.writeByte(((addr >>> 16) & 0xFF)); out.writeByte(((...
private static final long serialVersionUID = -686782941711592971L; FigBirthActivation(int x, int y) { super(x, y, FigLifeLine.WIDTH, SequenceDiagramLayout.LINK_DISTANCE / 4); setFillColor(Color.black); }
private static final long serialVersionUID = -686782941711592971L; FigBirthActivation(int x, int y) { super(x, y, FigLifeLine.WIDTH, SequenceDiagramLayer.LINK_DISTANCE / 4); setFillColor(Color.black); }
//IMailFolderCommandReference filterMessage(IMailbox folder, Object uid) throws Exception; // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozil...
//IMailFolderCommandReference filterMessage(IMailbox folder, Object uid) throws Exception; // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozil...
public MessageView(MessageController controller, AttachmentView attachmentView) { super(); this.messageController = controller; getViewport().setBackground(Color.white); setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); panel = new MessagePanel(); //panel.set...
public MessageView(MessageController controller, AttachmentView attachmentView) { super(); this.messageController = controller; getViewport().setBackground(Color.white); setBorder(BorderFactory.createEmptyBorder(1,1,1,1)); panel = new MessagePanel(); //panel.setBor...
private void addGrid(JPanel p, Component co, int x, int y, int w, int fill, double wx, int anchor) { GridBagConstraints c= new GridBagConstraints(); c.gridx= x; c.gridy= y; c.gridwidth= w; c.anchor= anchor; c.weightx= wx; c.fill= fill; if (fill == GridBagConstraints.BOTH || fill == GridBagConstraints.VER...
private void addGrid(JPanel p, Component co, int x, int y, int w, int fill, double wx, int anchor) { GridBagConstraints c= new GridBagConstraints(); c.gridx= x; c.gridy= y; c.gridwidth= w; c.anchor= anchor; c.weightx= wx; c.fill= fill; if (fill == GridBagConstraints.BOTH || fill == GridBagConstraints.VER...
private char[] readStreamChars(FileInputStream stream) throws IOException { // read chars array length if (stream != null && this.bufferIndex + 2 >= this.bufferEnd) readStreamBuffer(stream); int length = (streamBuffer[this.bufferIndex++] & 0xFF) << 8; length += this.streamBuffer[this.bufferIndex++] & 0xFF; // f...
private char[] readStreamChars(FileInputStream stream) throws IOException { // read chars array length if (stream != null && this.bufferIndex + 2 >= this.bufferEnd) readStreamBuffer(stream); int length = (streamBuffer[this.bufferIndex++] & 0xFF) << 8; length += this.streamBuffer[this.bufferIndex++] & 0xFF; // f...
public void actionPerformed(ActionEvent evt) { final ComposerController composerController = (ComposerController) getFrameController(); if (!composerController.checkState()) return; AccountItem item = ((ComposerModel) composerController.getModel()).getAccountItem(); SpecialFoldersItem folderItem = i...
public void actionPerformed(ActionEvent evt) { final ComposerController composerController = (ComposerController) getFrameController(); if (composerController.checkState()) return; AccountItem item = ((ComposerModel) composerController.getModel()).getAccountItem(); SpecialFoldersItem folderItem = it...
protected void okPressed() { // Shortcuts if (showShortcutTab()) { perspective.setNewWizardActionIds(getVisibleIDs(wizards)); perspective.setPerspectiveActionIds(getVisibleIDs(perspectives)); perspective.setShowViewActionIds(getVisibleIDs(views)); } // Action Sets ArrayList toAdd = new ArrayList();...
protected void okPressed() { // Shortcuts if (showShortcutTab()) { perspective.setNewWizardActionIds(getVisibleIDs(wizards)); perspective.setPerspectiveActionIds(getVisibleIDs(perspectives)); perspective.setShowViewActionIds(getVisibleIDs(views)); } // Action Sets ArrayList toAdd = new ArrayList();...
public boolean visit(IResource resource) throws CoreException { switch(resource.getType()) { case IResource.FILE : String extension = resource.getFileExtension(); if (JavaBuilder.JAVA_EXTENSION.equalsIgnoreCase(extension)) return false; if (JavaBuilder.CLASS_EXTENSION.equalsIgnoreCas...
public boolean visit(IResource resource) throws CoreException { switch(resource.getType()) { case IResource.FILE : String extension = resource.getFileExtension(); if (JavaBuilder.JAVA_EXTENSION.equalsIgnoreCase(extension)) return false; if (JavaBuilder.CLASS_EXTENSION.equalsIgnoreCas...
public RecoveredElement add(TypeDeclaration memberTypeDeclaration, int bracketBalanceValue) { /* do not consider a type starting passed the type end (if set) it must be belonging to an enclosing type */ if (typeDeclaration.declarationSourceEnd != 0 && memberTypeDeclaration.declarationSourceStart > typeDeclarati...
public RecoveredElement add(TypeDeclaration memberTypeDeclaration, int bracketBalanceValue) { /* do not consider a type starting passed the type end (if set) it must be belonging to an enclosing type */ if (typeDeclaration.declarationSourceEnd != 0 && memberTypeDeclaration.declarationSourceStart > typeDeclarati...
public List getEligibleAssignees() throws Exception { ScarabSecurity security = SecurityFactory.getInstance(); ScarabUser[] users = security.getUsers(ScarabSecurity.EDIT_ISSUE, getScarabModule()); // remove those already assigned List assigneeAVs = getAssigne...
public List getEligibleAssignees() throws Exception { ScarabSecurity security = SecurityFactory.getInstance(); ScarabUser[] users = security.getUsers(ScarabSecurity.ISSUE__EDIT, getScarabModule()); // remove those already assigned List assigneeAVs = getAssign...
private static TypeDeclaration convert(IType type, IType alreadyComputedMember,TypeDeclaration alreadyComputedMemberDeclaration, CompilationResult compilationResult) throws JavaModelException { /* create type declaration - can be member type */ TypeDeclaration typeDeclaration = new TypeDeclaration(compilationResul...
private static TypeDeclaration convert(IType type, IType alreadyComputedMember,TypeDeclaration alreadyComputedMemberDeclaration, CompilationResult compilationResult) throws JavaModelException { /* create type declaration - can be member type */ TypeDeclaration typeDeclaration = new TypeDeclaration(compilationResul...
private void reportPrimaryError(int msgCode, int nameIndex, int token, int scopeNameIndex) { String name; if (nameIndex >= 0) { name = Parser.name[nameIndex]; } else { name = EMPTY_STRING; } int errorStart = lexStream.start(token); int errorEnd = lexStream.end(token); int currentKind = lexStream.k...
private void reportPrimaryError(int msgCode, int nameIndex, int token, int scopeNameIndex) { String name; if (nameIndex >= 0) { name = Parser.name[nameIndex]; } else { name = EMPTY_STRING; } int errorStart = lexStream.start(token); int errorEnd = lexStream.end(token); int currentKind = lexStream.k...
private IBinding internalResolveNameForPackageDeclaration(Name name) { PackageDeclaration packageDeclaration = (PackageDeclaration) name.getParent(); CompilationUnit unit = (CompilationUnit) packageDeclaration.getParent(); List types = unit.types(); if (types.size() == 0) { return super.resolveName(name); ...
private IBinding internalResolveNameForPackageDeclaration(Name name) { PackageDeclaration packageDeclaration = (PackageDeclaration) name.getParent(); CompilationUnit unit = (CompilationUnit) packageDeclaration.getParent(); List types = unit.types(); if (types.size() == 0) { return super.resolveName(name); ...
protected String tabString(int tab) { StringBuffer result = new StringBuffer(); for (int i = tab; i > 0; i--) { result.append(" "/*nonNLS*/); } return result.toString(); }
protected String tabString(int tab) { StringBuffer result = new StringBuffer(); for (int i = tab; i > 0; i--) { result.append(" "); //$NON-NLS-1$ } return result.toString(); }
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
protected void parseCatsAndRenderers(Properties props, Hierarchy hierarchy) { Enumeration enum = props.propertyNames(); while(enum.hasMoreElements()) { String key = (String) enum.nextElement(); if(key.startsWith(CATEGORY_PREFIX)) { String categoryName = key.substring(CATEGORY_PREFIX.lengt...
protected void parseCatsAndRenderers(Properties props, Hierarchy hierarchy) { Enumeration enum = props.propertyNames(); while(enum.hasMoreElements()) { String key = (String) enum.nextElement(); if(key.startsWith(CATEGORY_PREFIX)) { String categoryName = key.substring(CATEGORY_PREFIX.lengt...
public PluginListCellRenderer() { super(); try { pluginHandler = PluginManager.getInstance() .getHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_IMPORT); } catch (PluginHandlerNotFoundException ex) { ErrorDialog.createDialog(ex.getMessage(), ex); } }
public PluginListCellRenderer() { super(); try { pluginHandler = PluginManager.getInstance() .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_IMPORT); } catch (PluginHandlerNotFoundException ex) { ErrorDialog.createDialog(ex.getMessage(), ex); } }
protected void createFilter(String headerItem, String pattern) { Folder folder = getFolder(); FilterList list = folder.getFilterList(); Filter filter = FilterList.createEmptyFilter(); list.add(filter); FilterRule rule = filter.getFilterRule(); FilterCriteria criteria = rule.get(0); criteria.setType(h...
protected void createFilter(String headerItem, String pattern) { Folder folder = getFolder(); FilterList list = folder.getFilterList(); Filter filter = FilterList.createEmptyFilter(); list.add(filter); FilterRule rule = filter.getFilterRule(); FilterCriteria criteria = rule.get(0); criteria.setType(h...
public String getMessage() { Throwable exception = getException(); if (exception == null) { switch (getCode()) { case CORE_EXCEPTION : return Util.bind("status.coreException"); //$NON-NLS-1$ case BUILDER_INITIALIZATION_ERROR: return Util.bind("build.initializationError"); //$NON-NLS-1$ cas...
public String getMessage() { Throwable exception = getException(); if (exception == null) { switch (getCode()) { case CORE_EXCEPTION : return Util.bind("status.coreException"); //$NON-NLS-1$ case BUILDER_INITIALIZATION_ERROR: return Util.bind("build.initializationError"); //$NON-NLS-1$ cas...
public static String id() { return "3.8"; }
public static String id() { return "@version@"; }