buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public IType findType(String typeName, String packageName, boolean partialMatch, int acceptFlags) {
if (packageName == null || packageName.length() == 0) {
packageName= IPackageFragment.DEFAULT_PACKAGE_NAME;
} else if (typeName.length() > 0 && Character.isLowerCase(typeName.charAt(0))) {
// see if this is a ... | public IType findType(String typeName, String packageName, boolean partialMatch, int acceptFlags) {
if (packageName == null || packageName.length() == 0) {
packageName= IPackageFragment.DEFAULT_PACKAGE_NAME;
} else if (typeName.length() > 0 && Character.isLowerCase(typeName.charAt(0))) {
// see if this is a ... |
class Parser {
package org.apache.log4j.lbel;
import java.io.IOException;
import java.util.Stack;
import org.apache.log4j.Level;
import org.apache.log4j.lbel.comparator.Comparator;
import org.apache.log4j.lbel.comparator.LevelComparator;
import org.apache.log4j.lbel.comparator.LoggerComparator;
import org.apache.log... | class Parser {
package org.apache.log4j.lbel;
import java.io.IOException;
import java.util.Stack;
import org.apache.log4j.Level;
import org.apache.log4j.lbel.comparator.Comparator;
import org.apache.log4j.lbel.comparator.LevelComparator;
import org.apache.log4j.lbel.comparator.LoggerComparator;
import org.apache.log... |
private void deletePackageFragment(IPackageFragment frag)
throws JavaModelException {
IResource res = frag.getResource();
if (res != null && res.getType() == IResource.FOLDER) {
// collect the children to remove
IJavaElement[] childrenOfInterest = frag.getChildren();
if (childrenOfInterest.length > 0) {
IRe... | private void deletePackageFragment(IPackageFragment frag)
throws JavaModelException {
IResource res = frag.getResource();
if (res != null && res.getType() == IResource.FOLDER) {
// collect the children to remove
IJavaElement[] childrenOfInterest = frag.getChildren();
if (childrenOfInterest.length > 0) {
IRe... |
public void initializeContents() {
if (!resource.isLocal(IResource.DEPTH_ZERO)) {
return;
} else {
try {
IPath location = resource.getLocation();
if (location != null){;
this.contents = Util.getFileByteContent(resource.getLocation().toFile());
}
} catch (IOException e) {
}
}
}
| public void initializeContents() {
if (!resource.isLocal(IResource.DEPTH_ZERO)) {
return;
} else {
try {
IPath location = resource.getLocation();
if (location != null){;
this.contents = org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(resource.getLocation().toFile());
}
} catch (IOExc... |
public String toString(int tab){
return tabString(tab) + "Recovered statement:\n" + statement.toString(tab + 1); //$NON-NLS-1$
}
| public String toString(int tab){
return tabString(tab) + "Recovered statement:\n" + statement.print(tab + 1, new StringBuffer(10)); //$NON-NLS-1$
}
|
// TODO: remove, keybindings should not distinguish between inactive and active commands: SortedSet getActiveCommandIds();
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying m... | // TODO: remove, keybindings should not distinguish between inactive and active commands: SortedSet getActiveCommandIds();
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying m... |
public void setFolder(MessageFolder newFolder) {
item = newFolder.getFolderItem();
if (item == null) {
return;
}
info = ((MessageFolder) newFolder).getMessageFolderInfo();
if (info == null) {
return;
}
int total = info.getExists();
... | public void setFolder(MessageFolder newFolder) {
item = newFolder.getConfiguration();
if (item == null) {
return;
}
info = ((MessageFolder) newFolder).getMessageFolderInfo();
if (info == null) {
return;
}
int total = info.getExists(... |
public boolean isProvablyDistinct(TypeBinding otherType) {
if (this == otherType)
return false;
if (otherType == null)
return true;
switch(otherType.kind()) {
case Binding.GENERIC_TYPE :
case Binding.PARAMETERIZED_TYPE :
case Binding.RAW_TYPE :
return erasu... | public boolean isProvablyDistinct(TypeBinding otherType) {
if (this == otherType || erasure() == otherType) // https://bugs.eclipse.org/bugs/show_bug.cgi?id=329588
return false;
if (otherType == null)
return true;
switch(otherType.kind()) {
case Binding.GENERIC_TYPE :
case Bi... |
public boolean trySave(boolean overwrite) {
//@@@: just for rapid edig-compile-debug
Hashtable templates = TemplateReader.readFile("/uci/xml/dtd/argo.tee");
expander = new OCLExpander(templates);
ProjectBrowser pb = ProjectBrowser.TheInstance;
Project p = pb.getProject();
try {
JFileC... | public boolean trySave(boolean overwrite) {
//@@@: just for rapid edig-compile-debug
Hashtable templates = TemplateReader.readFile("/uci/xml/dtd/argo.tee");
expander = new OCLExpander(templates);
ProjectBrowser pb = ProjectBrowser.TheInstance;
Project p = pb.getProject();
try {
JFileC... |
private boolean getUpdateValue(IStructuredSelection selection) {
if (selection.size() > 1)
return false;
if (!super.updateSelection(selection))
return false;
List resources = getSelectedResources();
if(resources.size() != 1)
return false;
return true;
}
/* (non-Javadoc)
* Method declared on WorkspaceAc... | private boolean getUpdateValue(IStructuredSelection selection) {
if (selection.size() > 1)
return false;
if (!super.updateSelection(selection))
return false;
List resources = getSelectedResources();
if(resources.size() != 1)
return false;
return true;
}
/* (non-Javadoc)
* Method declared on WorkspaceAc... |
public void generate(String[] args) throws Exception {
ClusterConf cconf = new ClusterConf();
CompilerContext cmpCtx = new CompilerContext();
prepare(args, cmpCtx, cconf);
if (cmpCtx.clusterCfgGen != null) {
java.io.FileWriter f = new java.io.FileWriter(cmpCtx.clusterCfg... | public void generate(String[] args) throws Exception {
ClusterConf cconf = new ClusterConf();
CompilerContext cmpCtx = new CompilerContext();
prepare(args, cmpCtx, cconf);
if (cmpCtx.clusterCfgGen != null) {
java.io.FileWriter f = new java.io.FileWriter(cmpCtx.clusterCfg... |
public String generateClassifier(MClassifier cls) {
String generatedName = generateName(cls.getName());
String classifierKeyword;
if (cls instanceof MClass) classifierKeyword = "class";
else if (cls instanceof MInterface) classifierKeyword = "interface";
else return ""; // actors and use cases
... | public String generateClassifier(MClassifier cls) {
String generatedName = generateName(cls.getName());
String classifierKeyword;
if (cls instanceof MClass) classifierKeyword = "class";
else if (cls instanceof MInterface) classifierKeyword = "interface";
else return ""; // actors and use cases
... |
public DeclarationOfReferencedMethodsPattern(IJavaElement enclosingElement) {
super(null, null, null, null, null, null, null, null, IJavaSearchConstants.REFERENCES, R_PATTERN_MATCH);
this.enclosingElement = enclosingElement;
this.knownMethods = new SimpleSet();
((InternalSearchPattern)this).mustResolve = true;
}
| public DeclarationOfReferencedMethodsPattern(IJavaElement enclosingElement) {
super(null, null, null, null, null, null, null, null, IJavaSearchConstants.REFERENCES, R_PATTERN_MATCH);
this.enclosingElement = enclosingElement;
this.knownMethods = new SimpleSet();
this.mustResolve = true;
}
|
private void restoreWorkingSet() {
IMemento[] itemMementos = workingSetMemento.getChildren(IWorkbenchConstants.TAG_ITEM);
Set items = new HashSet();
for (int i = 0; i < itemMementos.length; i++) {
IMemento itemMemento = itemMementos[i];
String factoryID = itemMemento.getString(IWorkbenchConstants.TAG_FACTO... | private void restoreWorkingSet() {
IMemento[] itemMementos = workingSetMemento.getChildren(IWorkbenchConstants.TAG_ITEM);
Set items = new HashSet();
for (int i = 0; i < itemMementos.length; i++) {
IMemento itemMemento = itemMementos[i];
String factoryID = itemMemento.getString(IWorkbenchConstants.TAG_FACTO... |
protected void initRenderer(boolean b) throws Exception {
TableItem tableItem =
(TableItem) MailConfig.getMainFrameOptionsConfig().getTableItem();
//.clone();
//v.removeEnabledItem();
for (int i = 0; i < tableItem.count(); i++) {
HeaderItem v = tableItem.getHeaderItem(i);
boolean enabled = v.getBool... | protected void initRenderer(boolean b) throws Exception {
TableItem tableItem =
(TableItem) MailConfig.getMainFrameOptionsConfig().getTableItem();
//.clone();
//v.removeEnabledItem();
for (int i = 0; i < tableItem.count(); i++) {
HeaderItem v = tableItem.getHeaderItem(i);
boolean enabled = v.getBool... |
public void processNewLoggingEvent(LoggingEvent event) {
eventContainer.addLevel(event.getLevel());
eventContainer.addLogger(event.getLoggerName());
eventContainer.addThread(event.getThreadName());
eventContainer.addNDC(event.getNDC());
eventContainer.addPropertyKeys(event.getPropertyKeySet());
... | public void processNewLoggingEvent(LoggingEvent event) {
eventContainer.addLevel(event.getLevel());
eventContainer.addLogger(event.getLoggerName());
eventContainer.addThread(event.getThreadName());
eventContainer.addNDC(event.getNDC());
eventContainer.addProperties(event.getProperties());
if... |
private String extractJavadoc(IType declaringType, String contents) throws JavaModelException {
if (contents == null) return null;
String typeQualifiedName = null;
final boolean declaringTypeIsMember = declaringType.isMember();
if (declaringTypeIsMember) {
IType currentType = declaringType;
StringBuffer buffer... | private String extractJavadoc(IType declaringType, String contents) throws JavaModelException {
if (contents == null) return null;
String typeQualifiedName = null;
final boolean declaringTypeIsMember = declaringType.isMember();
if (declaringTypeIsMember) {
IType currentType = declaringType;
StringBuffer buffer... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
receiver.generateCode(currentScope, codeStream, true);
position.generateCode(currentScope, codeStream, true);
codeStream.arrayAt(arrayElementBinding.id);
// Generating code for the potent... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
receiver.generateCode(currentScope, codeStream, true);
position.generateCode(currentScope, codeStream, true);
codeStream.arrayAt(arrayElementBinding.id);
// Generating code for the potent... |
public void readNextRequest(Request req) throws IOException {
String dummy,token1,token2;
int marker;
int signal;
try {
boolean more=true;
while (more) {
marker = ajpin.read();
switch (marker) {
case 0: //NOP marker useful for testing if stream is OK
break;
case 1: /... | public void readNextRequest(Request req) throws IOException {
String dummy,token1,token2;
int marker;
int signal;
try {
boolean more=true;
while (more) {
marker = ajpin.read();
switch (marker) {
case 0: //NOP marker useful for testing if stream is OK
break;
case 1: /... |
protected Control createButtonBar(Composite parent) {
Font font = parent.getFont();
Composite composite = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
if (fStatusLineAboveButtons) {
layout.marginWidth = 5;
} else {
layout.numC... | protected Control createButtonBar(Composite parent) {
Font font = parent.getFont();
Composite composite = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
if (fStatusLineAboveButtons) {
layout.marginWidth = 5;
} else {
layout.numC... |
if (aType.isProtected()) { // rewrite protected into public
accessFlags |= AccPublic;
}
// clear all bits that are illegal for a class or an interface
accessFlags
&= ~(
AccStrictfp
| AccProtected
| AccPrivate
| AccStatic
| AccSynchronized
| AccNative);
// set the AccSu... | if (aType.isProtected()) { // rewrite protected into public
accessFlags |= AccPublic;
}
// clear all bits that are illegal for a class or an interface
accessFlags
&= ~(
AccStrictfp
| AccProtected
| AccPrivate
| AccStatic
| AccSynchronized
| AccNative);
// set the AccSu... |
public PropPanelOperation() {
super("Operation", _operationIcon,3);
Class mclass = MOperation.class;
//
// this will cause the components on this page to be notified
// anytime a stereotype, namespace, operation, etc
// has its name changed or is removed ... | public PropPanelOperation() {
super("Operation", _operationIcon,3);
Class mclass = MOperation.class;
//
// this will cause the components on this page to be notified
// anytime a stereotype, namespace, operation, etc
// has its name changed or is removed ... |
public OpenInNewWindowAction(IWorkbenchWindow window) {
this(window, ((Workbench)window.getWorkbench()).getDefaultWindowInput());
}
| public OpenInNewWindowAction(IWorkbenchWindow window) {
this(window, ((Workbench)window.getWorkbench()).getDefaultPageInput());
}
|
public PropPanelCollaboration() {
super("Collaboration", _collaborationIcon, ConfigLoader.getTabPropsOrientation());
addField(Argo.localize("UMLMenu", "label.name"),nameField);
addField(Argo.localize("UMLMenu", "label.stereotype"),
new UMLComboBoxNavigator(this, Argo.lo... | public PropPanelCollaboration() {
super("Collaboration", _collaborationIcon, ConfigLoader.getTabPropsOrientation());
addField(Argo.localize("UMLMenu", "label.name"),nameField);
addField(Argo.localize("UMLMenu", "label.stereotype"),
new UMLComboBoxNavigator(this, Argo.lo... |
public char[][] getTypeParameterSignatures() {
if (this.typeParameterSignatures == null) {
if (this.typeParameterNames != null) {
int length = this.typeParameterNames.length;
this.typeParameterSignatures = new char[length][];
for (int i = 0; i < length; i++) {
char[][] bounds = this.typeParameterBounds[... | public char[][] getTypeParameterSignatures() {
if (this.typeParameterSignatures == null) {
if (this.typeParameterNames != null) {
int length = this.typeParameterNames.length;
this.typeParameterSignatures = new char[length][];
for (int i = 0; i < length; i++) {
char[][] bounds = this.typeParameterBounds[... |
public static void
main(String argv[]) throws IOException {
String server;
int arg;
Message query, response;
Record rec;
Record opt = null;
Resolver res = null;
boolean printQuery = false;
long startTime, endTime;
if (argv.length < 1) {
usage();
}
try {
arg = 0;
if (argv[arg].startsWith("@")) {
se... | public static void
main(String argv[]) throws IOException {
String server;
int arg;
Message query, response;
Record rec;
Record opt = null;
Resolver res = null;
boolean printQuery = false;
long startTime, endTime;
if (argv.length < 1) {
usage();
}
try {
arg = 0;
if (argv[arg].startsWith("@")) {
se... |
public void execute(Worker worker) throws Exception {
FolderCommandReference[] r = (FolderCommandReference[]) getReferences();
Folder folder = (Folder) r[0].getFolder();
Object[] uids = r[0].getUids();
Integer[] address = r[0].getAddress();
part = folder.getMimePart(uids[0], address, worker);
Decoder de... | public void execute(Worker worker) throws Exception {
FolderCommandReference[] r = (FolderCommandReference[]) getReferences();
Folder folder = (Folder) r[0].getFolder();
Object[] uids = r[0].getUids();
Integer[] address = r[0].getAddress();
part = folder.getMimePart(uids[0], address, worker);
Decoder de... |
public void testSingleton() {
Object o1 = CommonBehaviorFactory.getFactory();
Object o2 = CommonBehaviorFactory.getFactory();
assert("Different singletons", o1 == o2);
}
| public void testSingleton() {
Object o1 = CommonBehaviorFactory.getFactory();
Object o2 = CommonBehaviorFactory.getFactory();
assertTrue("Different singletons", o1 == o2);
}
|
public MessageBytes getName() {
if( name==null ) name=new MessageBytes();//lazy
return name;
}
| public MessageBytes getName() {
if( name==null ) name=MessageBytes.newInstance();//lazy
return name;
}
|
public void testRequestScopePropertyNotPresent()
throws ServletException, JspException {
PresentTag pt = new PresentTag();
String testKey = "testRequestScopePropertyPresent";
String testStringValue = null;
LabelValueBean lvb = new LabelValueBean("The Key", testStringValue);
pageContext.setAttribute(
... | public void testRequestScopePropertyNotPresent()
throws ServletException, JspException {
PresentTag pt = new PresentTag();
String testKey = "testRequestScopePropertyNotPresent";
String testStringValue = null;
LabelValueBean lvb = new LabelValueBean("The Key", testStringValue);
pageContext.setAttribut... |
public void fill(Menu menu, int index) {
WorkbenchWindow workbenchWindow = (WorkbenchWindow) viewPane.getPage()
.getWorkbenchWindow();
FastViewBar bar = workbenchWindow.getFastViewBar();
if (bar != null && viewPane != null) {
currentOrientation.set(bar.get... | public void fill(Menu menu, int index) {
WorkbenchWindow workbenchWindow = (WorkbenchWindow) viewPane.getPage()
.getWorkbenchWindow();
FastViewBar bar = workbenchWindow.getFastViewBar();
if (bar != null && viewPane != null) {
currentOrientation.set(bar.get... |
* the public field #actualOuterLocalVariable.
*
* Such a synthetic argument binding will be inserted in all constructors of local innertypes before
* the user arguments.
*/
import org.eclipse.jdt.internal.compiler.util.CharOperation;
| * the public field #actualOuterLocalVariable.
*
* Such a synthetic argument binding will be inserted in all constructors of local innertypes before
* the user arguments.
*/
import org.eclipse.jdt.core.compiler.CharOperation;
|
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) {
ParameterizedMethodBinding method = new ParameterizedMethodBinding();
method.modifiers = originalMethod.modifiers;
method.selector = originalMethod.selector;
method.declaringClass... | public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) {
ParameterizedMethodBinding method = new ParameterizedMethodBinding();
method.modifiers = originalMethod.modifiers;
method.selector = originalMethod.selector;
method.declaringClass... |
public void dispose() {
if (currentManager.getSize() > 0) {
IMenuService service = (IMenuService) locator
.getService(IMenuService.class);
service.releaseContributions(currentManager);
currentManager.removeAll();
}
}
| public void dispose() {
if (currentManager!=null && currentManager.getSize() > 0) {
IMenuService service = (IMenuService) locator
.getService(IMenuService.class);
service.releaseContributions(currentManager);
currentManager.removeAll();
}
}
|
public abstract void fillItems(List items);
} | public abstract void createContributionItems(List items);
} |
public void generateSyntheticBodyForMethodAccess(SyntheticMethodBinding accessBinding) {
initializeMaxLocals(accessBinding);
MethodBinding methodBinding = accessBinding.targetMethod;
TypeBinding[] parameters = methodBinding.parameters;
int length = parameters.length;
TypeBinding[] arguments = accessBinding.kind =... | public void generateSyntheticBodyForMethodAccess(SyntheticMethodBinding accessBinding) {
initializeMaxLocals(accessBinding);
MethodBinding methodBinding = accessBinding.targetMethod;
TypeBinding[] parameters = methodBinding.parameters;
int length = parameters.length;
TypeBinding[] arguments = accessBinding.kind =... |
SortedSet getKeySequenceBindings()
/*******************************************************************************
* 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
* whi... | SortedSet getKeySequenceBindings()
/*******************************************************************************
* 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
* whi... |
private ICompilationUnit[] getWorkingCopies() {
ICompilationUnit[] copies;
if (this.workingCopies != null) {
copies = this.workingCopies;
} else if (this.workingCopyOwner != null) {
copies = JavaModelManager.getJavaModelManager().getWorkingCopies(this.workingCopyOwner, true/*add primary WCs*/);
} else {
copie... | private ICompilationUnit[] getWorkingCopies() {
ICompilationUnit[] copies;
if (this.workingCopies != null) {
copies = this.workingCopies;
} else if (this.workingCopyOwner != null) {
copies = JavaModelManager.getJavaModelManager().getWorkingCopies(this.workingCopyOwner, true/*add primary WCs*/);
} else {
copie... |
public static Context getSingleInstance(Hashtable env)
throws NamingException {
String key = null;
if (env != null) {
key = (String) env.get(Context.PROVIDER_URL);
}
Context ctx = (Context) hashMap.get(key);
if (ctx == null) {
env.put(
"java.naming.factory.i... | public static Context getSingleInstance(Hashtable env)
throws NamingException {
String key = null;
if (env != null) {
key = (String) env.get(Context.PROVIDER_URL);
}
Context ctx = (Context) hashMap.get(key);
if (ctx == null) {
env.put(
"java.naming.factory.i... |
extends BaseRModuleUser
package org.tigris.scarab.om;
// JDK classes
import java.util.*;
// Turbine classes
import org.apache.turbine.om.*;
import org.apache.turbine.om.peer.BasePeer;
import org.apache.turbine.util.db.Criteria;
import org.apache.turbine.util.ObjectUtils;
import org.apache.turbine.util.StringUtils;
i... | extends BaseRModuleUser
package org.tigris.scarab.om;
// JDK classes
import java.util.*;
// Turbine classes
import org.apache.turbine.om.*;
import org.apache.turbine.om.peer.BasePeer;
import org.apache.turbine.util.db.Criteria;
import org.apache.turbine.util.ObjectUtils;
import org.apache.turbine.util.StringUtils;
i... |
public void configure(String[] argv) throws InvalidInputException {
if ((argv == null) || (argv.length == 0)) {
printUsage();
return;
}
final int InsideClasspath = 1;
final int InsideDestinationPath = 2;
final int TargetSetting = 4;
final int InsideLog = 8;
final int InsideRepetition = 16;
fin... | public void configure(String[] argv) throws InvalidInputException {
if ((argv == null) || (argv.length == 0)) {
printUsage();
return;
}
final int InsideClasspath = 1;
final int InsideDestinationPath = 2;
final int TargetSetting = 4;
final int InsideLog = 8;
final int InsideRepetition = 16;
fin... |
public Header getHeaderFields(Object uid, String[] keys) throws Exception {
// cached headerfield list
List cachedList = Arrays.asList(CachedHeaderfields
.getCachedHeaderfields());
LinkedList keyList = new LinkedList(Arrays.asList(keys));
ListTools.substract(keyList, cachedList);
if (keyList.size() ==... | public Header getHeaderFields(Object uid, String[] keys) throws Exception {
// cached headerfield list
List cachedList = Arrays.asList(CachedHeaderfields
.getDefaultHeaderfields());
LinkedList keyList = new LinkedList(Arrays.asList(keys));
ListTools.substract(keyList, cachedList);
if (keyList.size() =... |
public Collection getAllPossibleActivators(MMessage mes) {
if (mes == null) return new ArrayList();
MInteraction inter = mes.getInteraction();
Collection predecessors = mes.getPredecessors();
Collection allMessages = inter.getMessages();
Iterator it = allMessages.iterator();
List list = new ArrayList();
... | public Collection getAllPossibleActivators(MMessage mes) {
if (mes == null || mes.getInteraction() == null) return new ArrayList();
MInteraction inter = mes.getInteraction();
Collection predecessors = mes.getPredecessors();
Collection allMessages = inter.getMessages();
Iterator it = allMessages.iterator();
... |
public void load() throws java.io.IOException, org.xml.sax.SAXException {
cat.info("Reading " + getURL());
XMIParser.SINGLETON.readModels(_project,getURL());
_model = XMIParser.SINGLETON.getCurModel();
_project._UUIDRefs = XMIParser.SINGLETON.getUUIDRefs();
cat.info("Done reading " + getURL());
... | public void load() throws java.io.IOException, org.xml.sax.SAXException {
cat.info("Reading " + getURL());
XMIParser.SINGLETON.readModels(_project,getURL());
_model = XMIParser.SINGLETON.getCurModel();
_project.setUUIDRefs(XMIParser.SINGLETON.getUUIDRefs());
cat.info("Done reading " + getURL());
... |
public PropPanelStateMachine() {
super("StateMachine", _stateMachineIcon, ConfigLoader.getTabPropsOrientation());
addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument()));
addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavi... | public PropPanelStateMachine() {
super("StateMachine", ConfigLoader.getTabPropsOrientation());
addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument()));
addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.lo... |
public void printHeader(TestResult result) {
if (result.wasSuccessful()) {
getWriter().println();
getWriter().print("OK");
getWriter().println (" (" + result.runCount() + " tests)");
} else {
getWriter().println();
getWriter().println("FAILURES!!!");
getWriter().println("Tests run: "+result.runC... | public void printHeader(TestResult result) {
if (result.wasSuccessful()) {
getWriter().println();
getWriter().print("OK");
getWriter().println (" (" + result.runCount() + " test" + (result.runCount() == 1 ? "": "s") + ")");
} else {
getWriter().println();
getWriter().println("FAILURES!!!");
getW... |
public ActivateEditorAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("ActivateEditorAction.text"), window); //$NON-NLS-1$
setToolTipText(WorkbenchMessages
.getString("ActivateEditorAction.toolTip")); //$NON-NLS-1$
// @issue missing action id
update... | public ActivateEditorAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("ActivateEditorAction.text"), window); //$NON-NLS-1$
setToolTipText(WorkbenchMessages
.getString("ActivateEditorAction.toolTip")); //$NON-NLS-1$
// @issue missing action id
update... |
public void testSingleton() {
Object o1 = ActivityGraphsFactory.getFactory();
Object o2 = ActivityGraphsFactory.getFactory();
assert("Different singletons", o1 == o2);
}
| public void testSingleton() {
Object o1 = ActivityGraphsFactory.getFactory();
Object o2 = ActivityGraphsFactory.getFactory();
assertTrue("Different singletons", o1 == o2);
}
|
public void setEscapedValue(String value) {
if (value == null) {
throw new IllegalArgumentException();
}
Scanner scanner = this.getAST().scanner;
char[] source = value.toCharArray();
scanner.setSourceBuffer(source);
scanner.resetTo(0, source.length);
try {
int tokenType = scanner.getNextToken();
... | public void setEscapedValue(String value) {
if (value == null) {
throw new IllegalArgumentException();
}
Scanner scanner = getAST().scanner;
char[] source = value.toCharArray();
scanner.setSourceBuffer(source);
scanner.resetTo(0, source.length);
try {
int tokenType = scanner.getNextToken();
swit... |
import java.text.Collator; // can't use ICU, public API
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Publi... | import java.text.Collator; // can't use ICU, public API
|
public void resolveStatements() {
// ========= abort on fatal error =============
if (this.returnType != null && this.binding != null) {
this.returnType.resolvedType = this.binding.returnType;
// record the return type binding
}
// check if method with constructor name
if (CharOperation.equals(scope.e... | public void resolveStatements() {
// ========= abort on fatal error =============
if (this.returnType != null && this.binding != null) {
this.returnType.resolvedType = this.binding.returnType;
// record the return type binding
}
// check if method with constructor name
if (CharOperation.equals(scope.e... |
private
String extractOption() {
if((i < patternLength) && (pattern.charAt(i) == '{')) {
int end = pattern.indexOf('}', i);
if (end > i) {
String r = pattern.substring(i + 1, end);
i = end+1;
return r;
}
}
return null;
}
| protected
String extractOption() {
if((i < patternLength) && (pattern.charAt(i) == '{')) {
int end = pattern.indexOf('}', i);
if (end > i) {
String r = pattern.substring(i + 1, end);
i = end+1;
return r;
}
}
return null;
}
|
protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {
long[] positions = null;
int last = -1;
if (reference instanceof ImportReference) {
ImportReference importRef = (ImportReference) reference;
positions = ... | protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {
long[] positions = null;
int last = -1;
if (reference instanceof ImportReference) {
ImportReference importRef = (ImportReference) reference;
positions = ... |
public static String SHOW_USER_JOBS_IN_DIALOG = "SHOW_USER_JOBS_IN_DIALOG"; //$NON-NLS-1$
}
| public static String RUN_IN_BACKGROUND = "RUN_IN_BACKGROUND"; //$NON-NLS-1$
}
|
protected String getInitialScopeId() {
return "org.eclipse.ui.textEditorScope";
}
| protected String getInitialScopeId() {
return "org.eclipse.ui.textEditorScope"; //$NON-NLS-1$
}
|
public IMailFolderCommandReference filter(IMailbox folder, Object uid, IColumbaMessage message) throws Exception {
// map selection to this temporary message
TempFolder tempFolder = FolderTreeModel.getInstance().getTempFolder();
// add message to temporary folder
uid = tempFolder.addMe... | public IMailFolderCommandReference filter(IMailbox folder, Object uid, IColumbaMessage message) throws Exception {
// map selection to this temporary message
TempFolder tempFolder = FolderTreeModel.getInstance().getTempFolder();
// add message to temporary folder
uid = tempFolder.addMe... |
public void checkAnnotation() {
boolean deprecated = false;
boolean checkDeprecated = false;
int lastAnnotationIndex = -1;
//since jdk1.2 look only in the last java doc comment...
nextComment : for (lastAnnotationIndex = scanner.commentPtr; lastAnnotationIndex >= 0; lastAnnotationIndex--){
//look for @deprecat... | public void checkAnnotation() {
boolean deprecated = false;
boolean checkDeprecated = false;
int lastAnnotationIndex = -1;
//since jdk1.2 look only in the last java doc comment...
nextComment : for (lastAnnotationIndex = scanner.commentPtr; lastAnnotationIndex >= 0; lastAnnotationIndex--){
//look for @deprecat... |
public void accept(ICompilationUnit sourceUnit) {
// Switch the current policy and compilation result for this unit to the requested one.
CompilationResult unitResult = new CompilationResult(sourceUnit, 1, 1, this.options.maxProblemsPerUnit);
try {
CompilationUnitDeclaration parsedUnit = basicParser().dietParse(so... | public void accept(ICompilationUnit sourceUnit) {
// Switch the current policy and compilation result for this unit to the requested one.
CompilationResult unitResult = new CompilationResult(sourceUnit, 1, 1, this.options.maxProblemsPerUnit);
try {
CompilationUnitDeclaration parsedUnit = basicParser().dietParse(so... |
public void actionPerformed(ActionEvent evt) {
final ComposerController composerController = (ComposerController ) getFrameController();
if (composerController.checkState())
return;
AccountItem item =
((ComposerModel)composerController.getModel()).getAccountItem();
SpecialFoldersItem folderItem = ite... | public void actionPerformed(ActionEvent evt) {
final ComposerController composerController = (ComposerController ) getFrameMediator();
if (composerController.checkState())
return;
AccountItem item =
((ComposerModel)composerController.getModel()).getAccountItem();
SpecialFoldersItem folderItem = item.... |
public IExtensionPoint getExtensionPointFilter() {
return Platform.getExtensionRegistry().getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_ACTIVITIES);
}
| public IExtensionPoint getExtensionPointFilter() {
return Platform.getExtensionRegistry().getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_ACTIVITYSUPPORT);
}
|
protected void initializeDefaultPluginPreferences() {
Preferences preferences = getPluginPreferences();
HashSet optionNames = JavaModelManager.OptionNames;
// Compiler settings
preferences.setDefault(COMPILER_LOCAL_VARIABLE_ATTR, GENERATE);
optionNames.add(COMPILER_LOCAL_VARIABLE_ATTR);
preferences.... | protected void initializeDefaultPluginPreferences() {
Preferences preferences = getPluginPreferences();
HashSet optionNames = JavaModelManager.OptionNames;
// Compiler settings
preferences.setDefault(COMPILER_LOCAL_VARIABLE_ATTR, GENERATE);
optionNames.add(COMPILER_LOCAL_VARIABLE_ATTR);
preferences.... |
public void selectInbox() {
Folder inboxFolder = (Folder) MainInterface.treeModel.getFolder(101);
try {
Object[] uids = inboxFolder.getUids(null);
if (uids.length > 0) {
Object uid = uids[0];
Object[] newUids = new Object[1];
newUids[0] = uid;
FolderCommandReference[] r = new FolderCommand... | public void selectInbox() {
Folder inboxFolder = (Folder) MainInterface.treeModel.getFolder(101);
try {
Object[] uids = inboxFolder.getUids();
if (uids.length > 0) {
Object uid = uids[0];
Object[] newUids = new Object[1];
newUids[0] = uid;
FolderCommandReference[] r = new FolderCommandRefe... |
public
Enumeration getCurrentLoggers();
/**
@deprecated Please use {@link getCurrentLoggers} instead.
*/
| public
Enumeration getCurrentLoggers();
/**
@deprecated Please use {@link #getCurrentLoggers} instead.
*/
|
public
NXTRecord(Name name, short dclass, int ttl, Name next, BitSet bitmap) {
this(name, dclass, ttl);
if (!next.isAbsolute())
throw new RelativeNameException(next);
this.next = next;
this.bitmap = bitmap;
}
Record
rrFromWire(Name name, short type, short dclass, int ttl, int length,
DataByteInputStream in)
... | public
NXTRecord(Name name, short dclass, int ttl, Name next, BitSet bitmap) {
this(name, dclass, ttl);
if (!next.isAbsolute())
throw new RelativeNameException(next);
this.next = next;
this.bitmap = bitmap;
}
Record
rrFromWire(Name name, short type, short dclass, int ttl, int length,
DataByteInputStream in)
... |
public ColumbaMessage getMessage(Object uid) throws Exception {
if (aktMessage != null) {
if (aktMessage.getUID().equals(uid)) {
// this message is already cached
ColumbaLogger.log.info("using already cached message..");
return aktMessage;
... | public ColumbaMessage getMessage(Object uid) throws Exception {
if (aktMessage != null) {
if (aktMessage.getUID().equals(uid)) {
// this message is already cached
ColumbaLogger.log.fine("using already cached message..");
return aktMessage;
... |
public void handleEvent(Event event) {
// Only allow 'left mouse' drags...
if (event.button == 1) {
Point position = DragUtil.getEventLoc(event);
startDraggingTrim(position);
}
}
};
| public void handleEvent(Event event) {
// Only allow 'left mouse' drags...
if (event.button != 3) {
Point position = DragUtil.getEventLoc(event);
startDraggingTrim(position);
}
}
};
|
public String toString() {
return "JCUNode(" + fUnit.getFileName() + ")";
}
| public String toString() {
return "JCUNode("/*nonNLS*/ + fUnit.getFileName() + ")"/*nonNLS*/;
}
|
public void addJar(String jarFileName) throws IOException {
if (!jars.contains(jarFileName)) {
Constants.message("jsp.message.adding_jar",
new Object[] { jarFileName },
Logger.INFORMATION);
jars.addElement(jarFi... | public void addJar(String jarFileName) throws IOException {
if (!jars.contains(jarFileName)) {
Constants.message("jsp.message.adding_jar",
new Object[] { jarFileName },
Log.INFORMATION);
jars.addElement(jarFileN... |
public String toString() {
return rule.toString();
}
/**
* Evaluate a boolean postfix expression.
*
*/
static class PostFixExpressionCompiler {
Rule compileExpression(String expression) {
RuleFactory factory = RuleFactory.getInstance();
Stack stack = new Stack();
StringTok... | public String toString() {
return rule.toString();
}
/**
* Evaluate a boolean postfix expression.
*
*/
static class PostFixExpressionCompiler {
Rule compileExpression(String expression) {
RuleFactory factory = RuleFactory.getInstance();
Stack stack = new Stack();
StringTok... |
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException {
if (sourceFile == null || tasks == null || tasks.length == 0) return;
IResource resource = sourceFile.resource;
for (int i = 0, l = tasks.length; i < l; i++) {
IProblem task = tasks[i];
if (task.getID() == IProblem.Task... | protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException {
if (sourceFile == null || tasks == null || tasks.length == 0) return;
IResource resource = sourceFile.resource;
for (int i = 0, l = tasks.length; i < l; i++) {
IProblem task = tasks[i];
if (task.getID() == IProblem.Task... |
public void resolveAnnotation() {
if (this.binding == null || this.annotation != null) {
super.resolveAnnotation();
return;
}
if (!isDefaultConstructor && (this.binding.modifiers & AccPublic) != 0) {
this.scope.problemReporter().annotationMissingForPublic(this.sourceStart, this.sourceStart+this.selec... | public void resolveAnnotation() {
if (this.binding == null || this.annotation != null) {
super.resolveAnnotation();
return;
}
if (!isDefaultConstructor && (this.binding.modifiers & AccPublic) != 0) {
this.scope.problemReporter().annotationMissingForPublic(this.sourceStart, this.sourceEnd);
}
}
|
void activityRegistryChanged(ActivityRegistryEvent activityRegistryEvent);
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms ... | void activityRegistryChanged(ActivityRegistryEvent activityRegistryEvent);
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms ... |
public void toStringDebug(StringBuffer buffer, char[] source) {
if (buffer.length() > 0) {
for (int l=0; l<this.linesBefore; l++) {
buffer.append('\n');
for (int t=0; t<this.depth; t++) buffer.append('\t');
}
}
if (separatorsPtr == -1) {
super.toStringDebug(buffer, source);
return;
}
int ptr = 0;
in... | public void toStringDebug(StringBuffer buffer, char[] source) {
if (buffer.length() > 0) {
for (int l=0; l<this.linesBefore; l++) {
buffer.append('\n');
for (int t=0; t<this.depth; t++) buffer.append('\t');
}
}
if (this.separatorsPtr == -1) {
super.toStringDebug(buffer, source);
return;
}
int ptr = 0... |
protected void initComponents() {
defaultAccountCheckBox =
new JCheckBox(
MailResourceLoader.getString(
"dialog",
"account",
"use_default_account_settings"));
defaultAccountCheckBox.setMnemonic(
MailResourceLoader.getMnemonic(
"dialog",
"account",
"use_default_account_settings... | protected void initComponents() {
defaultAccountCheckBox =
new JCheckBox(
MailResourceLoader.getString(
"dialog",
"account",
"use_default_account_settings"));
defaultAccountCheckBox.setMnemonic(
MailResourceLoader.getMnemonic(
"dialog",
"account",
"use_default_account_settings... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
// generate receiver/enclosing instance access
boolean isStatic = this.codegenBinding.isStatic();
// outer access ?
if (!isStatic && ((bits & DepthMASK) != 0) && receiver.isImplicitThis... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
// generate receiver/enclosing instance access
boolean isStatic = this.codegenBinding.isStatic();
// outer access ?
if (!isStatic && ((bits & DepthMASK) != 0) && receiver.isImplicitThis... |
protected String getKey(IMethod method, boolean forceOpen) throws JavaModelException {
StringBuffer key = new StringBuffer();
// declaring class
String declaringKey = getKey((IType) method.getParent(), forceOpen);
key.append(declaringKey);
// selector
key.append('.');
String selector = method.getE... | protected String getKey(IMethod method, boolean forceOpen) throws JavaModelException {
StringBuffer key = new StringBuffer();
// declaring class
String declaringKey = getKey((IType) method.getParent(), forceOpen);
key.append(declaringKey);
// selector
key.append('.');
String selector = method.getE... |
public boolean getProperty(Object element) {
boolean state = false;
if(_getMethod != null && element != null) {
try {
Object retval = _getMethod.invoke(element,_noArg);
if(_enumClass.isInstance(retval) &&
(retval == _trueArg[0] || retv... | public boolean getProperty(Object element) {
boolean state = false;
if(_getMethod != null && element != null) {
try {
Object retval = _getMethod.invoke(element,_noArg);
if(retval != null &&
(retval == _trueArg[0] || retval.equals(_trueA... |
public PluginManagerProgress(PluginManager dialog, Roster roster)
{
super(dialog,jEdit.getProperty("plugin-manager.progress"),true);
this.roster = roster;
JPanel content = new JPanel(new BorderLayout(12,12));
content.setBorder(new EmptyBorder(12,12,12,12));
setContentPane(content);
progress = new JProg... | public PluginManagerProgress(PluginManager dialog, Roster roster)
{
super(dialog,jEdit.getProperty("plugin-manager.progress"),true);
this.roster = roster;
JPanel content = new JPanel(new BorderLayout(12,12));
content.setBorder(new EmptyBorder(12,12,12,12));
setContentPane(content);
progress = new JProg... |
protected ImportContainer(CompilationUnit parent) {
super(parent, ""); //$NON-NLS-1$
}
| protected ImportContainer(CompilationUnit parent) {
super(parent);
}
|
public String toString() {
return "Classpath for jar file " + zipFile; //$NON-NLS-1$
}
| public String toString() {
return "Classpath jar file " + zipFilename; //$NON-NLS-1$
}
|
public char[] computeUniqueKey() {
StringBuffer buffer = new StringBuffer();
// declaring method or type
BlockScope scope = this.declaringScope;
MethodScope methodScope = scope instanceof MethodScope ? (MethodScope) scope : scope.enclosingMethodScope();
ReferenceContext referenceContext = methodScope.refe... | public char[] computeUniqueKey() {
StringBuffer buffer = new StringBuffer();
// declaring method or type
BlockScope scope = this.declaringScope;
MethodScope methodScope = scope instanceof MethodScope ? (MethodScope) scope : scope.enclosingMethodScope();
ReferenceContext referenceContext = methodScope.refe... |
public int getNextToken() throws InvalidInputException {
this.wasAcr = false;
if (this.diet) {
jumpOverMethodBody();
this.diet = false;
return this.currentPosition > this.source.length ? TokenNameEOF : TokenNameRBRACE;
}
try {
while (true) { //loop for jumping over comments
this.withoutUnicodePtr = 0;
... | public int getNextToken() throws InvalidInputException {
this.wasAcr = false;
if (this.diet) {
jumpOverMethodBody();
this.diet = false;
return this.currentPosition > this.source.length ? TokenNameEOF : TokenNameRBRACE;
}
try {
while (true) { //loop for jumping over comments
this.withoutUnicodePtr = 0;
... |
public boolean doesMethodOverride(MethodBinding method, MethodBinding inheritedMethod) {
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available un... | public boolean doesMethodOverride(MethodBinding method, MethodBinding inheritedMethod) {
return super.doesMethodOverride(method, computeSubstituteMethod(inheritedMethod, method));
}
boolean doParametersClash(MethodBinding one, MethodBinding substituteTwo) {
// must check each parameter pair to see if parameterized ty... |
public void run() {
IPresentablePart part = site.getSelectedPart();
if (part != null) {
site.close(part);
}
}
| public void run() {
IPresentablePart part = site.getSelectedPart();
if (part != null) {
site.close(new IPresentablePart[]{part});
}
}
|
public void doService(Request req, Response res)
throws Exception
{
// if we are in include, with req==original request
// - just use the current sub-request
Request subReq=req;
if(req.getChild()!=null)
subReq=req.getChild();
Context ctx=subReq.getContext();
// Use "javax.servlet.include.servlet_pa... | public void doService(Request req, Response res)
throws Exception
{
// if we are in include, with req==original request
// - just use the current sub-request
Request subReq=req;
if(req.getChild()!=null)
subReq=req.getChild();
Context ctx=subReq.getContext();
// Use "javax.servlet.include.servlet_pa... |
public MessageController(
FrameMediator frameMediator,
AttachmentController attachmentController) {
this.frameController = frameMediator;
this.attachmentController = attachmentController;
spamStatusController = new SpamStatusController((MailFrameMediator) frameContro... | public MessageController(
FrameMediator frameMediator,
AttachmentController attachmentController) {
this.frameController = frameMediator;
this.attachmentController = attachmentController;
spamStatusController = new SpamStatusController((MailFrameMediator) frameContro... |
public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE;
if (!project.isOpen())
return COMPLETE; // nothing to do
IIndex index = manager.getIndex(project.getFullPath(), true /*reuse index file*/, true /*create if none*/);
i... | public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE;
if (!project.isOpen())
return COMPLETE; // nothing to do
IIndex index = manager.getIndex(project.getFullPath(), true /*reuse index file*/, true /*create if none*/);
i... |
public void show(IStatus status, String title) {
StatusAdapter statusAdapter = new StatusAdapter(status);
statusAdapter.setProperty(StatusAdapter.TITLE_PROPERTY, title);
StatusManager.getManager().handle(statusAdapter, StatusManager.BLOCK);
}
});
// Get all debug options from Platform
if ("true... | public void show(IStatus status, String title) {
StatusAdapter statusAdapter = new StatusAdapter(status);
statusAdapter.setProperty(StatusAdapter.TITLE_PROPERTY, title);
StatusManager.getManager().handle(statusAdapter, StatusManager.SHOW);
}
});
// Get all debug options from Platform
if ("true"... |
private IEditorReference openEditorFromDescriptor(IEditorReference ref, EditorDescriptor desc, IEditorInput input) throws PartInitException {
IEditorReference result = ref;
if (desc.isInternal()) {
result = reuseInternalEditor(desc, input);
if (result == null) {
result = ref;
openInternalEditor(ref, ... | private IEditorReference openEditorFromDescriptor(IEditorReference ref, EditorDescriptor desc, IEditorInput input) throws PartInitException {
IEditorReference result = ref;
if (desc.isInternal()) {
result = reuseInternalEditor(desc, input);
if (result == null) {
result = ref;
openInternalEditor(ref, ... |
public void record(IProblem problem, CompilationResult unitResult, ReferenceContext context) {
unitResult.record(problem, context);
requestor.acceptProblem(problem);
}
},
| 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);
}
},
|
protected Text createFilterText(Composite parent) {
fFilterText = new Text(parent, SWT.FLAT);
| protected Text createFilterText(Composite parent) {
fFilterText = new Text(parent, SWT.NONE);
|
public ITypeHierarchy newTypeHierarchy(IJavaProject project, IProgressMonitor monitor) throws JavaModelException {
if (project == null) {
throw new IllegalArgumentException(Util.bind("hierarchy.nullProject")); //$NON-NLS-1$
}
CreateTypeHierarchyOperation op= new CreateTypeHierarchyOperation(
this,
SearchEng... | public ITypeHierarchy newTypeHierarchy(IJavaProject project, IProgressMonitor monitor) throws JavaModelException {
if (project == null) {
throw new IllegalArgumentException(Util.bind("hierarchy.nullProject")); //$NON-NLS-1$
}
CreateTypeHierarchyOperation op= new CreateTypeHierarchyOperation(
this,
SearchEng... |
public StatusBar(TaskManager tm) {
taskManager = tm;
tm.addTaskManagerListener(this);
ConnectionStateImpl.getInstance().addChangeListener(this);
imageSequenceTimer = new ImageSequenceTimer(tm);
setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2));
label = new JLa... | public StatusBar(TaskManager tm) {
taskManager = tm;
tm.addTaskManagerListener(this);
ConnectionStateImpl.getInstance().addChangeListener(this);
imageSequenceTimer = new ImageSequenceTimer(tm);
setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2));
label = new JLa... |
Copyright (c) 2000, 2001, 2002 IBM Corp. and others.
/**********************************************************************
Copyright (c) 2000, 2001 IBM Corp. and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Common Public License v0.5
which accom... | Copyright (c) 2000, 2001, 2002 IBM Corp. and others.
/**********************************************************************
Copyright (c) 2000, 2001, 2002 IBM Corp. and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Common Public License v0.5
which... |
public static Test suite() {
TestSuite suite = new TestSuite("Tests for " + ModelTestSuite.class.getPackage().getName());
suite.addTest(new TestSuite(TestUmlObjectCreation.class));
suite.addTest(new TestSuite(TestModelFacade.class));
suite.addTest(new TestSuite(TestUmlModelElement.class));
suite.addTest(n... | public static Test suite() {
TestSuite suite = new TestSuite("Tests for " + ModelTestSuite.class.getPackage().getName());
suite.addTest(new TestSuite(TestUmlObjectCreation.class));
suite.addTest(TestModelFacade.suite());
suite.addTest(new TestSuite(TestUmlModelElement.class));
suite.addTest(new TestSuite(... |
public void updateGUI() throws Exception {
if (header.getMimeType().getType().toLowerCase().indexOf("message") != -1) {
MessageFrameController c = new MessageFrameController();
FolderCommandReference[] r = new FolderCommandReference[1];
Object[] uidList = new Object[1];... | public void updateGUI() throws Exception {
if (header.getMimeType().getType().toLowerCase().indexOf("message") != -1) {
MessageFrameController c = new MessageFrameController();
FolderCommandReference[] r = new FolderCommandReference[1];
Object[] uidList = new Object[1];... |
public static SearchPattern createPattern(IJavaElement element, int limitTo, int matchRule) {
SearchPattern searchPattern = null;
int lastDot;
boolean ignoreDeclaringType = false;
boolean ignoreReturnType = false;
int maskedLimitTo = limitTo & ~(IJavaSearchConstants.IGNORE_DECLARING_TYPE+IJavaSearchConstants.IGNOR... | public static SearchPattern createPattern(IJavaElement element, int limitTo, int matchRule) {
SearchPattern searchPattern = null;
int lastDot;
boolean ignoreDeclaringType = false;
boolean ignoreReturnType = false;
int maskedLimitTo = limitTo & ~(IJavaSearchConstants.IGNORE_DECLARING_TYPE+IJavaSearchConstants.IGNOR... |
protected int executeInsert(PreparedStatement ps, EntityEnterpriseContext ctx) throws SQLException
{
ps.execute();
ResultSet rs = null;
try
{
int rows = ps.getUpdateCount();
if(rows != 1)
{
throw new EJBException("Expected updateCount of 1, got " + ro... | protected int executeInsert(int index, PreparedStatement ps, EntityEnterpriseContext ctx) throws SQLException
{
ps.execute();
ResultSet rs = null;
try
{
int rows = ps.getUpdateCount();
if(rows != 1)
{
throw new EJBException("Expected updateCount of 1,... |
public XPropertyEvent(String name)
throws IllegalArgumentException {
super();
if (name == null)
throw new IllegalArgumentException();
this.name = name;
}
| public XPropertyEvent(String name)
throws IllegalArgumentException {
super();
if (name == null)
throw new NullPointerException();
this.name = name;
}
|
private void initialize() {
addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument()));
addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox()));
addFi... | private void initialize() {
addField(Argo.localize("UMLMenu", "label.name"), getNameTextField());
addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox()));
addField(Argo.localize("UMLMenu", "labe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.