buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public AbstractMessage getMessage(
Object uid,
WorkerStatusController worker)
throws Exception {
if (aktMessage != null) {
if (aktMessage.getUID().equals(uid)) {
// this message is already cached
//ColumbaLogger.log.info("using already cached message..");
return (AbstractMessage) aktMessage.clo... | public AbstractMessage getMessage(
Object uid,
WorkerStatusController worker)
throws Exception {
if (aktMessage != null) {
if (aktMessage.getUID().equals(uid)) {
// this message is already cached
//ColumbaLogger.log.info("using already cached message..");
return (AbstractMessage) aktMessage.clo... |
public JobErrorDialog(Shell parentShell, String title, String msg, ErrorInfo errorInfo, int displayMask) {
super(parentShell, title == null ? errorInfo.getJob().getName() : title, msg, errorInfo.getErrorStatus(), displayMask);
setShellStyle(SWT.DIALOG_TRIM | SWT.MODELESS | SWT.RESIZE |getDefaultOrie... | public JobErrorDialog(Shell parentShell, String title, String msg, ErrorInfo errorInfo, int displayMask) {
super(parentShell, title == null ? errorInfo.getJob().getName() : title, msg, errorInfo.getErrorStatus(), displayMask);
setShellStyle(SWT.DIALOG_TRIM | SWT.MODELESS | SWT.RESIZE |SWT.MIN | getD... |
public SystemMenuFastView(IStackPresentationSite site) {
this.site = site;
setText(WorkbenchMessages.getString("ViewPane.fastView")); //$NON-NLS-1$
update();
}
| public SystemMenuFastView(IStackPresentationSite site) {
this.site = site;
setText(WorkbenchMessages.ViewPane_fastView);
update();
}
|
public TypeBinding substitute(TypeVariableBinding typeVariable) {
return typeVariable == replaced ? replacer : typeVariable;
}
}
if (substituteMethod.returnType instanceof TypeVariableBinding) {
return ((TypeVariableBinding) substituteMethod.returnType).
boundCheck(
new ReturnTypeSubstitution(substitu... | public TypeBinding substitute(TypeVariableBinding typeVariable) {
return typeVariable == replaced ? replacer : typeVariable;
}
}
if (substituteMethod.returnType instanceof TypeVariableBinding) {
return ((TypeVariableBinding) substituteMethod.returnType).
boundCheck(
new ReturnTypeSubstitution(substitu... |
public static final String manglePackage( String s ) {
for (int i = 0; i < keywords.length; i++) {
char fs = File.separatorChar;
int index = s.indexOf(keywords[i]);
if(index == -1 ) continue;
while (index != -1) {
int endIdx=index+keywords[i].length();
// Syste... | public static final String manglePackage( String s ) {
for (int i = 0; i < keywords.length; i++) {
char fs = File.separatorChar;
int index = s.indexOf(keywords[i]);
if(index == -1 ) continue;
while (index != -1) {
int endIdx=index+keywords[i].length();
// Syste... |
public char[] getIndexKey() {
// Package reference keys are encoded as 'name' (where 'name' is the last segment of the package name)
if (this.currentSegment >= 0)
return encodeIndexKey(this.segments[this.currentSegment], getMatchMode());
return null;
}
| public char[] getIndexKey() {
// Package reference keys are encoded as 'name' (where 'name' is the last segment of the package name)
if (this.currentSegment >= 0)
return this.segments[this.currentSegment];
return null;
}
|
public Object execute(ExecutionEvent event) {
showViewMenu();
return null;
}
};
showViewHandler = service.activateHandler(
IWorkbenchCommandConstants.WINDOW_SHOWVIEWMENU, handler,
new ActiveShellExpression(getShell()));
}
| public Object execute(ExecutionEvent event) {
showViewMenu();
return null;
}
};
showViewHandler = service.activateHandler(
IWorkbenchCommandConstants.WINDOW_SHOW_VIEW_MENU, handler,
new ActiveShellExpression(getShell()));
}
|
protected void toString(int tab, StringBuffer buffer) {
Object info = fgJavaModelManager.getInfo(this);
if (info == null || !(info instanceof JavaElementInfo)) return;
IJavaElement[] children = ((JavaElementInfo)info).getChildren();
for (int i = 0; i < children.length; i++) {
if (i > 0) buffer.append("\n"); //$NO... | protected void toString(int tab, StringBuffer buffer) {
Object info = fgJavaModelManager.peekAtInfo(this);
if (info == null || !(info instanceof JavaElementInfo)) return;
IJavaElement[] children = ((JavaElementInfo)info).getChildren();
for (int i = 0; i < children.length; i++) {
if (i > 0) buffer.append("\n"); //... |
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) {
// handle the error here
this.constant = NotAConstant;
if (this.didResolve) { // is a shared type reference which was already resolved
if (this.resolvedType != null && !this.resolvedType.isValidBinding... | private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) {
// handle the error here
this.constant = NotAConstant;
if (this.didResolve) { // is a shared type reference which was already resolved
if (this.resolvedType != null && !this.resolvedType.isValidBinding... |
protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (info != NO_INFO) {
buffer.append(Signature.toString(this.getTypeSignature()));
buffer.append(" "); //$NON-NLS-1$
}
buffer.append(this.getElementName());
}
| protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (info != NO_INFO) {
buffer.append(Signature.toString(this.getTypeSignature()));
buffer.append(" "); //$NON-NLS-1$
}
toStringName(buffer);
}
|
public void reload( Request req, Context ctx ) {
ClassLoader newLoader = ctx.getClassLoader();
ServerSessionManager sM = getManager( ctx );
// remove all non-serializable objects from session
Enumeration sessionEnum=sM.getSessions().keys();
while( sessionEnum.hasMoreElements() ) {
ServerSession sessi... | public void reload( Request req, Context ctx ) {
ClassLoader newLoader = ctx.getClassLoader();
ServerSessionManager sM = getManager( ctx );
// remove all non-serializable objects from session
Enumeration sessionEnum=sM.getSessions().keys();
while( sessionEnum.hasMoreElements() ) {
ServerSession sessi... |
private Binding findSingleStaticImport(char[][] compoundName) {
Binding binding = findImport(compoundName, compoundName.length - 1);
if (!binding.isValidBinding()) return binding;
char[] name = compoundName[compoundName.length - 1];
if (binding instanceof PackageBinding) {
Binding temp = ((PackageBinding) bindin... | private Binding findSingleStaticImport(char[][] compoundName) {
Binding binding = findImport(compoundName, compoundName.length - 1);
if (!binding.isValidBinding()) return binding;
char[] name = compoundName[compoundName.length - 1];
if (binding instanceof PackageBinding) {
Binding temp = ((PackageBinding) bindin... |
private ASTNode.NodeList superInterfaceTypes = null;
/**
* Creates a new AST node for a type declaration owned by the given
* AST. By default, the type declaration is for a class of an
* unspecified, but legal, name; no modifiers; no javadoc;
* no type parameters; no superclass or superinterfaces; and an e... | private ASTNode.NodeList superInterfaceTypes = null;
/**
* Creates a new AST node for a type declaration owned by the given
* AST. By default, the type declaration is for a class of an
* unspecified, but legal, name; no modifiers; no javadoc;
* no type parameters; no superclass or superinterfaces; and an e... |
public void addView(String viewId) {
if (pageLayout.checkPartInLayout(viewId))
return;
try {
IViewDescriptor descriptor = viewFactory.getViewRegistry().find(
viewId);
if (descriptor != null) {
throw new PartInitException("View ... | public void addView(String viewId) {
if (pageLayout.checkPartInLayout(viewId))
return;
try {
IViewDescriptor descriptor = viewFactory.getViewRegistry().find(
viewId);
if (descriptor == null) {
throw new PartInitException("View ... |
public OpenProfileManagerDialogAction(FrameMediator frameMediator) {
super(frameMediator,
"Open Profile Manager...");
}
| public OpenProfileManagerDialogAction(FrameMediator frameMediator) {
super(frameMediator,
"Profile Manager...");
}
|
public final String getLocalizedMessage(int id, String[] problemArguments) {
StringBuffer output = new StringBuffer(80);
String message =
messageTemplates[(id & IProblem.IgnoreCategoriesMask)];
if (message == null) {
return "Unable to retrieve the error message for problem id: " //$NON-NLS-1$
+ id
+ ". C... | public final String getLocalizedMessage(int id, String[] problemArguments) {
StringBuffer output = new StringBuffer(80);
String message =
messageTemplates[(id & IProblem.IgnoreCategoriesMask)];
if (message == null) {
return "Unable to retrieve the error message for problem id: " //$NON-NLS-1$
+ (id & IProbl... |
public static void addAddressesToAddressbook(Address[] addresses) {
try {
IContactFacade contactFacade = ServiceConnector.getContactFacade();
IFolderFacade folderFacade = ServiceConnector.getFolderFacade();
IModelFacade modelFacade = ServiceConnector.getModelFacade();
IFolder folder = folderFacade.getCo... | public static void addAddressesToAddressbook(Address[] addresses) {
try {
IContactFacade contactFacade = ServiceConnector.getContactFacade();
IFolderFacade folderFacade = ServiceConnector.getFolderFacade();
IModelFacade modelFacade = ServiceConnector.getModelFacade();
IFolder folder = folderFacade.getCo... |
public void setLog(String logFileName) throws InvalidInputException {
try {
this.log = new PrintWriter(new FileOutputStream(logFileName, false));
int index = logFileName.lastIndexOf('.');
if (index != 0) {
if (logFileName.substring(index).toLowerCase().equals(".xml")) { //$NON-NLS-1$
this.is... | public void setLog(String logFileName) throws InvalidInputException {
try {
this.log = new PrintWriter(new FileOutputStream(logFileName, false));
int index = logFileName.lastIndexOf('.');
if (index != -1) {
if (logFileName.substring(index).toLowerCase().equals(".xml")) { //$NON-NLS-1$
this.i... |
public void setValueFor(Object target, Object value) {
if (!(target instanceof MOperation)) return;
if (!(value instanceof String)) return;
MOperation op = (MOperation) target;
String s = (String) value;
ProjectBrowser pb = ProjectBrowser.TheInstance;
Project p = pb.getProject();
MClassifi... | public void setValueFor(Object target, Object value) {
if (!(target instanceof MOperation)) return;
if (!(value instanceof String)) return;
MOperation op = (MOperation) target;
String s = (String) value;
ProjectBrowser pb = ProjectBrowser.TheInstance;
Project p = pb.getProject();
MClassifi... |
public
SOARecord(Name _name, short _dclass, int _ttl, int length,
CountedDataInputStream in, Compression c) throws IOException
{
super(_name, Type.SOA, _dclass, _ttl);
if (in == null)
return;
host = new Name(in, c);
admin = new Name(in, c);
serial = in.readInt();
refresh = in.readInt();
retry = in.readInt()... | public
SOARecord(Name _name, short _dclass, int _ttl, int length,
DataByteInputStream in, Compression c) throws IOException
{
super(_name, Type.SOA, _dclass, _ttl);
if (in == null)
return;
host = new Name(in, c);
admin = new Name(in, c);
serial = in.readInt();
refresh = in.readInt();
retry = in.readInt();
... |
private int getNextIssueId(Connection con)
throws Exception
{
int id = -1;
String key = getIdTableKey();
DatabaseMap dbMap = IssuePeer.getTableMap().getDatabaseMap();
IDBroker idbroker = null;
try
{
id = idbroker.getIdAsInt(con, key);
}... | private int getNextIssueId(Connection con)
throws Exception
{
int id = -1;
String key = getIdTableKey();
DatabaseMap dbMap = IssuePeer.getTableMap().getDatabaseMap();
IDBroker idbroker = dbMap.getIDBroker();
try
{
id = idbroker.getIdAsInt(con, ... |
protected void mapPositions() {
int length = this.children_count;
if (length != 0) {
int start = this.sourceStart;
int end = this.firstChildBeforeSorting.sourceStart - 1;
for (int i = 0; i < length; i++) {
mapNextPosition(this, start, end);
this.children[i].mapPositions();
if (i < le... | protected void mapPositions() {
int length = this.children_count;
if (length != 0) {
int start = this.sourceStart;
int end = this.firstChildBeforeSorting.sourceStart - 1;
for (int i = 0; i < length; i++) {
mapNextPosition(this, start, end);
this.children[i].mapPositions();
if (i < le... |
protected void convert() {
// add initial messageframe treenode
XmlElement root = getRoot();
String version = root.getAttribute("version");
if (initialVersionWasApplied) {
ColumbaLogger.log.info("converting configuration to new version...");
XmlElement gui =... | protected void convert() {
// add initial messageframe treenode
XmlElement root = getRoot();
String version = root.getAttribute("version");
if (initialVersionWasApplied) {
ColumbaLogger.log.fine("converting configuration to new version...");
XmlElement gui =... |
protected char[] qualification;
public QualifiedTypeDeclarationPattern(char[] qualification, char[] simpleName, char classOrInterface, int matchRule) {
this(matchRule);
this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification);
this.simpleName = this.isCaseSensitive ? sim... | protected char[] qualification;
public QualifiedTypeDeclarationPattern(char[] qualification, char[] simpleName, char classOrInterface, int matchRule) {
this(matchRule);
this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification);
this.simpleName = this.isCaseSensitive ? sim... |
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new PatternLayoutTest("test1"));
suite.addTest(new PatternLayoutTest("test2"));
suite.addTest(new PatternLayoutTest("test3"));
suite.addTest(new PatternLayoutTest("test4"));
suite.addTest(new PatternLayoutTest("test... | public static Test XXXsuite() {
TestSuite suite = new TestSuite();
suite.addTest(new PatternLayoutTest("test1"));
suite.addTest(new PatternLayoutTest("test2"));
suite.addTest(new PatternLayoutTest("test3"));
suite.addTest(new PatternLayoutTest("test4"));
suite.addTest(new PatternLayoutTest("t... |
public static void activateAll(IMailFolder root) {
// Find all VirtualFolders and rewrite the FolderReference
FolderChildrenIterator it = new FolderChildrenIterator(root);
// Put all VirtualFolders in one list
List vfolderList = new ArrayList();
while (it.hasMoreChildren()) {
IMailFolder f = it.nextChil... | public static void activateAll(IMailFolder root) {
// Find all VirtualFolders and rewrite the FolderReference
FolderChildrenIterator it = new FolderChildrenIterator(root);
// Put all VirtualFolders in one list
List vfolderList = new ArrayList();
while (it.hasMoreChildren()) {
IMailFolder f = it.nextChil... |
public void handleEvent(Event event) {
// If the user is dragging the sash then we will need to force
// a resize. However, if the coolbar was resized programatically
// then everything is already layed out correctly. There is no
// direct way to tell the difference between these cases,
// howeve... | public void handleEvent(Event event) {
// If the user is dragging the sash then we will need to force
// a resize. However, if the coolbar was resized programatically
// then everything is already layed out correctly. There is no
// direct way to tell the difference between these cases,
// howeve... |
public void addRequestInterceptor( RequestInterceptor ri ) {
defaultContainer.addRequestInterceptor(ri);
}
} | public void addRequestInterceptor( BaseInterceptor ri ) {
defaultContainer.addRequestInterceptor(ri);
}
} |
public final void addEnabledSubmission(
final EnabledSubmission enabledSubmission) {
/*
* Create the source priorities based on the conditions mentioned in the
* submission.
*/
int sourcePriorities = 0;
if (enabledSubmission.getActivePartId() != null) {
sourcePriorities |= ISources.ACTIVE_PART;
... | public final void addEnabledSubmission(
final EnabledSubmission enabledSubmission) {
/*
* Create the source priorities based on the conditions mentioned in the
* submission.
*/
int sourcePriorities = 0;
if (enabledSubmission.getActivePartId() != null) {
sourcePriorities |= ISources.ACTIVE_PART_ID;... |
private IStatus saveState(IMemento memento, PerspectiveDescriptor p,
boolean saveInnerViewState) {
MultiStatus result = new MultiStatus(
PlatformUI.PLUGIN_ID,
IStatus.OK,
WorkbenchMessages.Perspective_problemsSavingPerspective, null);
if ... | private IStatus saveState(IMemento memento, PerspectiveDescriptor p,
boolean saveInnerViewState) {
MultiStatus result = new MultiStatus(
PlatformUI.PLUGIN_ID,
IStatus.OK,
WorkbenchMessages.Perspective_problemsSavingPerspective, null);
if ... |
public void actionPerformed(ActionEvent evt) {
ComposerController composerController =
(ComposerController) getFrameController();
//String checked =
// composerController.getComposerSpellCheck().checkText(
// composerController.getEditorController().getView().getText());
String checked =
composerCont... | public void actionPerformed(ActionEvent evt) {
ComposerController composerController =
(ComposerController) getFrameMediator();
//String checked =
// composerController.getComposerSpellCheck().checkText(
// composerController.getEditorController().getView().getText());
String checked =
composerContro... |
public void indexDocument() {
try {
byte[] contents = this.document.getByteContents();
ClassFileReader reader = new ClassFileReader(contents, this.document.getPath().toCharArray());
// first add type references
char[] className = replace('/', '.', reader.getName()); // looks like java/lang/String
//... | public void indexDocument() {
try {
byte[] contents = this.document.getByteContents();
ClassFileReader reader = new ClassFileReader(contents, this.document.getPath().toCharArray());
// first add type references
char[] className = replace('/', '.', reader.getName()); // looks like java/lang/String
//... |
public void launchWizard(boolean firstStart) {
DataModel data = new DataModel();
Step[] steps;
if (firstStart) {
steps = new Step[] {
new WelcomeStep(), new IdentityStep(data),
new IncomingServerStep(data),
new Outgoing... | public void launchWizard(boolean firstStart) {
DataModel data = new DataModel();
Step[] steps;
if (firstStart) {
steps = new Step[] {
new WelcomeStep(), new IdentityStep(data),
new IncomingServerStep(data),
new Outgoing... |
private void readBinaryChildren() {
ArrayList children = new ArrayList();
HashMap newElements = new HashMap();
BinaryType type = null;
IBinaryType typeInfo = null;
JavaModelManager manager = (JavaModelManager) JavaModelManager.getJavaModelManager();
try {
type = (BinaryType) fClassFile.getType();
typeInfo = (... | private void readBinaryChildren() {
ArrayList children = new ArrayList();
HashMap newElements = new HashMap();
BinaryType type = null;
IBinaryType typeInfo = null;
JavaModelManager manager = (JavaModelManager) JavaModelManager.getJavaModelManager();
try {
type = (BinaryType) fClassFile.getType();
typeInfo = (... |
protected char getHandleMementoDelimiter() {
Assert.isTrue(false, Util.bind("assert.shouldNotImplement")); //$NON-NLS-1$
return 0;
}
| protected char getHandleMementoDelimiter() {
Assert.isTrue(false, "Should not be called"); //$NON-NLS-1$
return 0;
}
|
public void figureSelectionChanged(DrawingView view) {}
}
| public void selectionChanged(DrawingView view) {}
}
|
protected void reportAccurateFieldReference(QualifiedNameReference qNameRef, IJavaElement element, int[] accuracies) throws CoreException {
if (!encloses(element)) return;
int sourceStart = qNameRef.sourceStart;
int sourceEnd = qNameRef.sourceEnd;
char[][] tokens = qNameRef.tokens;
// compute source positions ... | protected void reportAccurateFieldReference(QualifiedNameReference qNameRef, IJavaElement element, int[] accuracies) throws CoreException {
if (!encloses(element)) return;
int sourceStart = qNameRef.sourceStart;
int sourceEnd = qNameRef.sourceEnd;
char[][] tokens = qNameRef.tokens;
// compute source positions ... |
public int hashCode() {
int hashCode= 0;
if (this.isSystemLibrary) {
hashCode++;
}
for (int i= 0; i < this.entries.length; i++) {
hashCode= hashCode * 17 + this.entries.hashCode();
}
return hashCode;
}
/* package */ String serialize() throws IOException {
ByteArrayOutputStream s = new ByteArra... | public int hashCode() {
int hashCode= 0;
if (this.isSystemLibrary) {
hashCode++;
}
for (int i= 0; i < this.entries.length; i++) {
hashCode= hashCode * 17 + this.entries.hashCode();
}
return hashCode;
}
/* package */ String serialize() throws IOException {
ByteArrayOutputStream s = new ByteArra... |
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 static void invoke(
Interpreter env, NameSpace namespace, String dir )
{
File file;
try {
file = env.pathToFile( dir );
} catch (IOException e ) {
env.println("error reading path: "+e);
return;
}
if ( !file.exists() || !file.canRead() ) {
env.println( "Can't read " + file );
retu... | public static void invoke(
Interpreter env, NameSpace namespace, String dir )
{
File file;
try {
file = env.pathToFile( dir );
} catch (IOException e ) {
env.println("error reading path: "+e);
return;
}
if ( !file.exists() || !file.canRead() ) {
env.println( "Can't read " + file );
retu... |
public void end(ExecutionContext ec, Element e) {
logger.debug("end() called.");
if (inError) {
return;
}
Object o = ec.peekObject();
if (o != root) {
logger.warn(
"The object on the top the of the stack is not the root logger");
logger.warn("It is: "+o);
} else ... | public void end(ExecutionContext ec, Element e) {
logger.debug("end() called.");
if (inError) {
return;
}
Object o = ec.peekObject();
if (o != root) {
logger.warn(
"The object on the top the of the stack is not the root logger");
logger.warn("It is: "+o);
} else ... |
public final boolean shouldReload() {
if( dependM != null )
return dependM.shouldReload();
return reload;
}
| public final boolean shouldReload() {
if( !reload && dependM != null )
return dependM.shouldReload();
return reload;
}
|
protected boolean pushParamName(boolean isTypeParam) {
// Create param reference
ASTNode nameRef = null;
if (isTypeParam) {
JavadocSingleTypeReference ref = new JavadocSingleTypeReference(this.identifierStack[1],
this.identifierPositionStack[1],
this.tagSourceStart,
this.tagSourceEnd);
nameRef ... | protected boolean pushParamName(boolean isTypeParam) {
// Create param reference
ASTNode nameRef = null;
if (isTypeParam) {
JavadocSingleTypeReference ref = new JavadocSingleTypeReference(this.identifierStack[1],
this.identifierPositionStack[1],
this.tagSourceStart,
this.tagSourceEnd);
nameRef ... |
public void place() { // Currently lacking wide support.
if (CodeStream.DEBUG) System.out.println("\t\t\t\t<place at: "+this.codeStream.position+" - "+ this); //$NON-NLS-1$ //$NON-NLS-2$
// if ((this.tagBits & USED) == 0 && this.forwardReferenceCount == 0) {
// return;
// }
//TODO how can position be set already ? ... | public void place() { // Currently lacking wide support.
if (CodeStream.DEBUG) System.out.println("\t\t\t\t<place at: "+this.codeStream.position+" - "+ this); //$NON-NLS-1$ //$NON-NLS-2$
// if ((this.tagBits & USED) == 0 && this.forwardReferenceCount == 0) {
// return;
// }
//TODO how can position be set already ? ... |
public Object getRawString() {
return rawString;
}
} | public String getRawString() {
return rawString;
}
} |
public void actionPerformed(ActionEvent evt) {
IMailbox searchFolder = (IMailbox) FolderTreeModel.getInstance().getFolder(106);
SearchFrame frame = new SearchFrame((AbstractMailFrameController) getFrameMediator(),
searchFolder);
}
| public void actionPerformed(ActionEvent evt) {
IMailbox searchFolder = (IMailbox) FolderTreeModel.getInstance().getFolder(106);
new SearchFrame((AbstractMailFrameController) getFrameMediator(),
searchFolder);
}
|
protected TypeBinding getTypeBinding(Scope scope) {
if (this.resolvedType != null)
return this.resolvedType;
Binding binding = scope.getPackage(this.tokens);
if (binding != null && !binding.isValidBinding())
return (ReferenceBinding) binding; // not found
PackageBinding packageBinding = binding =... | protected TypeBinding getTypeBinding(Scope scope) {
if (this.resolvedType != null)
return this.resolvedType;
Binding binding = scope.getPackage(this.tokens);
if (binding != null && !binding.isValidBinding())
return (ReferenceBinding) binding; // not found
PackageBinding packageBinding = binding =... |
public ListModel getModel(String fieldName) {
if (fieldName != null) {
return (ListModel)modelMap.get(fieldName.toUpperCase());
}
return null;
}
void addLevel(Object level) {
if (Levels.add(level)) {
levelListModel.addElement(level);
}
}
void addLogger(String log... | public ListModel getModel(String fieldName) {
if (fieldName != null) {
return (ListModel)modelMap.get(fieldName.toUpperCase());
}
return null;
}
void addLevel(Object level) {
if (Levels.add(level)) {
levelListModel.addElement(level);
}
}
void addLogger(String log... |
public String toString(){
return "FirstWordInBlock: " + new String(word) + ", blockNum: " + blockNum; //$NON-NLS-1$ //$NON-NLS-2$
}
}
| public String toString(){
return "FirstWordInBlock: "/*nonNLS*/ + new String(word) + ", blockNum: "/*nonNLS*/ + blockNum;
}
}
|
public PackageFragmentRootInfo() {
fNonJavaResources = null;
}
/**
* Starting at this folder, create non-java resources for this package fragment root
* and add them to the non-java resources collection.
*
* @exception JavaModelException The resource associated with this package fragment does not exist
*/
stat... | public PackageFragmentRootInfo() {
fNonJavaResources = null;
}
/**
* Starting at this folder, create non-java resources for this package fragment root
* and add them to the non-java resources collection.
*
* @exception JavaModelException The resource associated with this package fragment does not exist
*/
stat... |
public TypeBinding capture(Scope scope, int position) {
if ((this.tagBits & TagBits.HasDirectWildcard) == 0)
return this;
TypeBinding[] originalArguments = arguments;
int length = originalArguments.length;
TypeBinding[] capturedArguments = new TypeBinding[length];
// Retrieve the type context for c... | public TypeBinding capture(Scope scope, int position) {
if ((this.tagBits & TagBits.HasDirectWildcard) == 0)
return this;
TypeBinding[] originalArguments = arguments;
int length = originalArguments.length;
TypeBinding[] capturedArguments = new TypeBinding[length];
// Retrieve the type context for c... |
public void actionPerformed(ActionEvent event) {
String action = event.getActionCommand();
if (action.equals("OK")) {
setVisible(false);
updateComponents(false);
// TODO until we can get all the settings update immediately
// we just open a message ... | public void actionPerformed(ActionEvent event) {
String action = event.getActionCommand();
if (action.equals("OK")) {
setVisible(false);
updateComponents(false);
// TODO until we can get all the settings update immediately
// we just open a message ... |
public IPackageFragmentRoot getPackageFragmentRoot(IPath path) {
IResource resource = null;
if (!path.isAbsolute() || (resource = getProject().getWorkspace().getRoot().findMember(path)) != null) {
if (resource != null){
return getPackageFragmentRoot(resource);
}
if (path.segmentCount() > 0) {
... | public IPackageFragmentRoot getPackageFragmentRoot(IPath path) {
IResource resource = null;
if (!path.isAbsolute() || (resource = getProject().getWorkspace().getRoot().findMember(path)) != null) {
if (resource != null){
return getPackageFragmentRoot(resource);
}
if (path.segmentCount() > 0) {
... |
public MethodBinding tiebreakMethod() {
if (this.tiebreakMethod == null) {
TypeVariableBinding[] originalVariables = this.originalMethod.typeVariables;
int length = originalVariables.length;
TypeBinding[] newArguments = new TypeBinding[length];
for (int i = 0; i < length; i++) {
TypeVariableBinding o... | public MethodBinding tiebreakMethod() {
if (this.tiebreakMethod == null) {
TypeVariableBinding[] originalVariables = this.originalMethod.typeVariables;
int length = originalVariables.length;
TypeBinding[] newArguments = new TypeBinding[length];
for (int i = 0; i < length; i++) {
TypeVariableBinding o... |
private DimensionUtilities() {
throw new Error("ActionUtilities is just a container for static methods");
}
| private DimensionUtilities() {
throw new UnsupportedOperationException("DimensionUtilities is just a container for static methods");
}
|
package org.eclipse.ui.commands;
/*******************************************************************************
* 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
* which... | package org.eclipse.ui.commands;
/*******************************************************************************
* 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
* which... |
public void init() {
try {
PluginMetadata metadata = PluginManager.getInstance().getPluginMetadata(PLUGIN_ID);
InputStream is = this.getClass().getResourceAsStream(
"/org/columba/calendar/action/action.xml");
PluginManager.getInstance().getHandler(
IExtensionHandlerKeys.ORG_COLUMBA_CORE_ACTI... | public void init() {
try {
PluginMetadata metadata = PluginManager.getInstance().getPluginMetadata(PLUGIN_ID);
InputStream is = this.getClass().getResourceAsStream(
"/org/columba/calendar/action/action.xml");
PluginManager.getInstance().getExtensionHandler(
IExtensionHandlerKeys.ORG_COLUMBA_... |
public void resolve(BlockScope scope) {
exceptionType = exception.resolveTypeExpecting(scope, scope.getJavaLangThrowable());
if (exceptionType == NullBinding
&& scope.compilerOptions().complianceLevel <= ClassFileConstants.JDK1_3){
// if compliant with 1.4, this problem will not be reported
scope.p... | public void resolve(BlockScope scope) {
exceptionType = exception.resolveTypeExpecting(scope, scope.getJavaLangThrowable());
if (exceptionType == TypeBinding.NULL
&& scope.compilerOptions().complianceLevel <= ClassFileConstants.JDK1_3){
// if compliant with 1.4, this problem will not be reported
sc... |
public Object eval( CallStack callstack, Interpreter interpreter)
throws EvalError
{
Object lhs = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter);
/*
Doing instanceof? Next node is a type.
*/
if (kind == INSTANCEOF)
{
// null object ref is not instance of any ty... | public Object eval( CallStack callstack, Interpreter interpreter)
throws EvalError
{
Object lhs = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter);
/*
Doing instanceof? Next node is a type.
*/
if (kind == INSTANCEOF)
{
// null object ref is not instance of any ty... |
public BitSet
getBitmap() {
return bitmap;
}
byte []
rrToWire(Compression c) throws IOException {
if (next == null)
return null;
ByteArrayOutputStream bs = new ByteArrayOutputStream();
CountedDataOutputStream ds = new CountedDataOutputStream(bs);
next.toWire(ds, null);
for (int i = 0, t = 0; i < bitmap.size(... | public BitSet
getBitmap() {
return bitmap;
}
byte []
rrToWire(Compression c, int index) throws IOException {
if (next == null)
return null;
ByteArrayOutputStream bs = new ByteArrayOutputStream();
CountedDataOutputStream ds = new CountedDataOutputStream(bs);
next.toWire(ds, null);
for (int i = 0, t = 0; i < b... |
public static Test suite ( ) {
TestSuite suite= new TestSuite("All JUnit Tests");
suite.addTest(VectorTest.suite());
suite.addTest(new TestSuite(junit.samples.money.MoneyTest.class));
suite.addTest(junit.tests.AllTests.suite());
return suite;
}
| public static Test suite ( ) {
TestSuite suite= new TestSuite("All JUnit Tests");
suite.addTest(ListTest.suite());
suite.addTest(new TestSuite(junit.samples.money.MoneyTest.class));
suite.addTest(junit.tests.AllTests.suite());
return suite;
}
|
public final Binding getTypeOrPackage(char[][] compoundName) {
int nameLength = compoundName.length;
if (nameLength == 1) {
TypeBinding binding = getBaseType(compoundName[0]);
if (binding != null) return binding;
}
Binding binding = getTypeOrPackage(compoundName[0], Binding.TYPE | Binding.PACKAGE);
if ... | public final Binding getTypeOrPackage(char[][] compoundName) {
int nameLength = compoundName.length;
if (nameLength == 1) {
TypeBinding binding = getBaseType(compoundName[0]);
if (binding != null) return binding;
}
Binding binding = getTypeOrPackage(compoundName[0], Binding.TYPE | Binding.PACKAGE);
if ... |
public ToDoByPoster() {
super("By Poster");
addSubTreeModel(new GoListToPosterToItem());
}
| public ToDoByPoster() {
super("todo.perspective.poster");
addSubTreeModel(new GoListToPosterToItem());
}
|
public void acceptProblem(IProblem problem, char[] fragmentSource, int fragmentKind) {
requestor.acceptProblem(problem, fragmentSource, fragmentKind);
if (problem.isError()) {
hasErrors = true;
}
}
};
ForwardingRequestor forwardingRequestor = new ForwardingRequestor();
if (this.varsChanged)... | public void acceptProblem(IProblem problem, char[] fragmentSource, int fragmentKind) {
requestor.acceptProblem(problem, fragmentSource, fragmentKind);
if (problem.isError()) {
hasErrors = true;
}
}
};
ForwardingRequestor forwardingRequestor = new ForwardingRequestor();
if (this.varsChanged)... |
return ProgressMessages.format("JobInfo.DoneMessage",messageValues); //$NON-NLS-1$
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the term... | return ProgressMessages.format("JobInfo.DoneMessage",messageValues); //$NON-NLS-1$
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the term... |
public void runAfters(Object target) throws MultipleFailureException {
MultipleFailureException errors= new MultipleFailureException();
List<TestMethod> afters= getAfters();
for (TestMethod after : afters)
try {
after.invokeExplosively(target);
} catch (Throwable e) {
errors.add(e);
}
e... | public void runAfters(Object target) throws Throwable {
MultipleFailureException errors= new MultipleFailureException();
List<TestMethod> afters= getAfters();
for (TestMethod after : afters)
try {
after.invokeExplosively(target);
} catch (Throwable e) {
errors.add(e);
}
errors.assertEmp... |
protected void processElement(IJavaElement element) throws JavaModelException {
ICompilationUnit cu = (ICompilationUnit) element;
// keep track of the import statements - if all are removed, delete
// the import container (and report it in the delta)
int numberOfImports = cu.getImports().length;
JavaElem... | protected void processElement(IJavaElement element) throws JavaModelException {
ICompilationUnit cu = (ICompilationUnit) element;
// keep track of the import statements - if all are removed, delete
// the import container (and report it in the delta)
int numberOfImports = cu.getImports().length;
JavaElem... |
public void launchWizard() {
DataModel data = new DataModel();
Step[] steps;
if (MailConfig.getAccountList().count() == 0) {
steps = new Step[]{
new WelcomeStep(),
new IdentityStep(data),
new IncomingServerStep(data),
... | public void launchWizard() {
DataModel data = new DataModel();
Step[] steps;
if (MailConfig.getAccountList().count() == 0) {
steps = new Step[]{
new WelcomeStep(),
new IdentityStep(data),
new IncomingServerStep(data),
... |
public String toString() {
return pattern;
}
void parse() {
int lastIndex = 0;
TokenConverter tc = null;
MAIN_LOOP:
while (true) {
int i = pattern.indexOf('%', lastIndex);
if (i == -1) {
String remainingStr = pattern.substring(lastIndex);
//System.out.println("add... | public String toString() {
return pattern;
}
void parse() {
int lastIndex = 0;
TokenConverter tc = null;
MAIN_LOOP:
while (true) {
int i = pattern.indexOf('%', lastIndex);
if (i == -1) {
String remainingStr = pattern.substring(lastIndex);
//System.out.println("add... |
public void initComponents() {
panel.removeAll();
panel.setLayout(gridbag);
IExtensionHandler pluginHandler = null;
try {
pluginHandler = PluginManager
.getInstance().getHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_FILTERACTION);
} catch (PluginHandlerNotFoundException ex) {
ErrorDialog.creat... | public void initComponents() {
panel.removeAll();
panel.setLayout(gridbag);
IExtensionHandler pluginHandler = null;
try {
pluginHandler = PluginManager
.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_FILTERACTION);
} catch (PluginHandlerNotFoundException ex) {
ErrorDia... |
public WorkingSetTypePage() {
super("workingSetTypeSelectionPage", WorkbenchMessages.getString("Select"), WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ)); //$NON-NLS-1$ //$NON-NLS-2$
setDescription(WorkbenchMessages.getString("WorkingSetTypePage.description")); //$... | public WorkingSetTypePage() {
super("workingSetTypeSelectionPage", WorkbenchMessages.getString("Select"), WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_WORKINGSET_WIZ)); //$NON-NLS-1$ //$NON-NLS-2$
setDescription(WorkbenchMessages.getString("WorkingSetTypePage.description")); //$NON-NLS-... |
public String toString(int tab) {
StringBuffer result = new StringBuffer(tabString(tab));
result.append("Recovered initializer:\n"); //$NON-NLS-1$
result.append(this.fieldDeclaration.print(tab + 1, result));
if (this.initializerBody != null) {
result.append("\n"); //$NON-NLS-1$
result.append(this.initializerBod... | public String toString(int tab) {
StringBuffer result = new StringBuffer(tabString(tab));
result.append("Recovered initializer:\n"); //$NON-NLS-1$
this.fieldDeclaration.print(tab + 1, result);
if (this.initializerBody != null) {
result.append("\n"); //$NON-NLS-1$
result.append(this.initializerBody.toString(tab ... |
public static String id() {
return "4.4-snapshot-20070709-1651";
}
| public static String id() {
return "4.4-snapshot-20070712-1321";
}
|
protected MessageSend newMessageSend() {
// '(' ArgumentListopt ')'
// the arguments are on the expression stack
char[] selector = identifierStack[identifierPtr];
if (selector != this.assistIdentifier()){
return super.newMessageSend();
}
MessageSend messageSend = new SelectionOnMessageSend();
int length;
if... | protected MessageSend newMessageSend() {
// '(' ArgumentListopt ')'
// the arguments are on the expression stack
char[] selector = identifierStack[identifierPtr];
if (selector != this.assistIdentifier()){
return super.newMessageSend();
}
MessageSend messageSend = new SelectionOnMessageSend();
int length;
if... |
public ReferenceBinding getType(char[][] compoundName) {
ReferenceBinding referenceBinding;
if (compoundName.length == 1) {
if (defaultPackage == null)
return null;
if ((referenceBinding = defaultPackage.getType0(compoundName[0])) == null) {
PackageBinding packageBinding = getPackage0(compoundName[0]);
... | public ReferenceBinding getType(char[][] compoundName) {
ReferenceBinding referenceBinding;
if (compoundName.length == 1) {
if (defaultPackage == null)
return null;
if ((referenceBinding = defaultPackage.getType0(compoundName[0])) == null) {
PackageBinding packageBinding = getPackage0(compoundName[0]);
... |
public Iterator<IEvent> importCalendar(File file) throws Exception {
Vector<IEvent> v = new Vector<IEvent>();
FileInputStream in = new FileInputStream(file);
CalendarBuilder builder = new CalendarBuilder();
net.fortuna.ical4j.model.Calendar calendar = builder.build(in);
for (Iterator i = calendar.getComp... | public Iterator<IEvent> importCalendar(File file) throws Exception {
Vector<IEvent> v = new Vector<IEvent>();
FileInputStream in = new FileInputStream(file);
CalendarBuilder builder = new CalendarBuilder();
net.fortuna.ical4j.model.Calendar calendar = builder.build(in);
for (Iterator i = calendar.getComp... |
protected char getHandleMementoDelimiter(){
Assert.isTrue(false, Util.bind("assert.shouldNotImplement")); //$NON-NLS-1$
return 0;
}
| protected char getHandleMementoDelimiter(){
Assert.isTrue(false, "Should not be called"); //$NON-NLS-1$
return 0;
}
|
public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r =
((AbstractMailFrameController) getFrameController()).getTableSelection();
r[0].setMarkVariant(MarkMessageCommand.MARK_AS_SPAM);
MarkMessageCommand c = new MarkMessageCommand(r);
MainInterface.processor.addOp(c);
}
| public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r =
((AbstractMailFrameController) getFrameMediator()).getTableSelection();
r[0].setMarkVariant(MarkMessageCommand.MARK_AS_SPAM);
MarkMessageCommand c = new MarkMessageCommand(r);
MainInterface.processor.addOp(c);
}
|
public ISourceRange mapSource(
IType type,
char[] contents,
IJavaElement searchedElement) {
fType = (BinaryType) type;
// check whether it is already mapped
if (this.fSourceRanges.get(type) != null) return (searchedElement != null) ? this.getNameRange(searchedElement) : null;
this.importsTable.... | public ISourceRange mapSource(
IType type,
char[] contents,
IJavaElement searchedElement) {
fType = (BinaryType) type;
// check whether it is already mapped
if (this.fSourceRanges.get(type) != null) return (searchedElement != null) ? this.getNameRange(searchedElement) : null;
this.importsTable.... |
public String toString(){
if (this == DeadEnd){
return "FlowInfo.DeadEnd"/*nonNLS*/;
}
return super.toString();
}
| public String toString(){
if (this == DeadEnd){
return "FlowInfo.DeadEnd"; //$NON-NLS-1$
}
return super.toString();
}
|
public int getNodeType() {
return BOOLEAN_LITERAL;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
BooleanLiteral result = new BooleanLiteral(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setBooleanValue(booleanValue()... | public int getNodeType() {
return BOOLEAN_LITERAL;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
BooleanLiteral result = new BooleanLiteral(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setBooleanValue(booleanValue(... |
public final boolean press(KeyStroke keyStroke, Event event) {
final KeySequence modeBeforeKeyStroke = commandManager.getMode();
final List keyStrokes = new ArrayList(modeBeforeKeyStroke.getKeyStrokes());
keyStrokes.add(keyStroke);
final KeySequence modeAfterKeyStroke = KeySequence.getInstance(keyStrokes);
f... | public final boolean press(KeyStroke keyStroke, Event event) {
final KeySequence modeBeforeKeyStroke = commandManager.getMode();
final List keyStrokes = new ArrayList(modeBeforeKeyStroke.getKeyStrokes());
keyStrokes.add(keyStroke);
final KeySequence modeAfterKeyStroke = KeySequence.getInstance(keyStrokes);
f... |
protected JUnit4MethodRunner wrapMethod(Method method) {
return new StubbedTheoryMethod(method, getTestClass());
}
| protected JUnit4MethodRunner wrapMethod(Method method) {
return new StubbedTheoryMethodRunner(method, getTestClass());
}
|
public WorkbookEditorsAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("WorkbookEditorsAction.label")); //$NON-NLS-1$
if (window == null) {
throw new IllegalArgumentException();
}
this.workbenchWindow = window;
// Do we need help here ?
... | public WorkbookEditorsAction(IWorkbenchWindow window) {
super(WorkbenchMessages.WorkbookEditorsAction_label);
if (window == null) {
throw new IllegalArgumentException();
}
this.workbenchWindow = window;
// Do we need help here ?
//WorkbenchHelp.setHelp(thi... |
public int getNodeType() {
return BLOCK_COMMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
BlockComment result = new BlockComment(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
return result;
}
| public int getNodeType() {
return BLOCK_COMMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
BlockComment result = new BlockComment(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
return result;
}
|
protected void consumeMethodInvocationName() {
// MethodInvocation ::= Name '(' ArgumentListopt ')'
// when the name is only an identifier...we have a message send to "this" (implicit)
MessageSend m = newMessageSend();
m.sourceEnd = rParenPos;
m.sourceStart =
(int) ((m.nameSourcePosition = identifierPositionS... | protected void consumeMethodInvocationName() {
// MethodInvocation ::= Name '(' ArgumentListopt ')'
// when the name is only an identifier...we have a message send to "this" (implicit)
MessageSend m = newMessageSend();
m.sourceEnd = rParenPos;
m.sourceStart =
(int) ((m.nameSourcePosition = identifierPositionS... |
private void loadCustom() {
Reader reader = null;
/* Get the entries from the Preference store */
IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore();
/* Get the space-delimited list of custom perspective ids */
String customPerspectives = store.getString(IPreferenceConstants.PERSPECTI... | private void loadCustom() {
Reader reader = null;
/* Get the entries from the Preference store */
IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore();
/* Get the space-delimited list of custom perspective ids */
String customPerspectives = store.getString(IPreferenceConstants.PERSPECTI... |
public void generateOuterAccess(Object[] mappingSequence, AstNode invocationSite, Binding target, Scope scope) {
if (mappingSequence == null) {
if (target instanceof LocalVariableBinding) {
scope.problemReporter().needImplementation(); //TODO: should improve
} else {
scope.problemReporter().noSuchEnclosingIn... | public void generateOuterAccess(Object[] mappingSequence, AstNode invocationSite, Binding target, Scope scope) {
if (mappingSequence == null) {
if (target instanceof LocalVariableBinding) {
scope.problemReporter().needImplementation(); //TODO: (philippe) should improve local emulation failure reporting
} else {... |
private Expression optionalDefaultValue = null;
/**
* Creates a new AST node for an annotation type member declaration owned
* by the given AST. By default, the declaration is for a member of an
* unspecified, but legal, name; no modifiers; no javadoc;
* an unspecified value type; and no default value.
*... | private Expression optionalDefaultValue = null;
/**
* Creates a new AST node for an annotation type member declaration owned
* by the given AST. By default, the declaration is for a member of an
* unspecified, but legal, name; no modifiers; no javadoc;
* an unspecified value type; and no default value.
*... |
public int
getRRsetType() {
if (type == Type.SIG || type == Type.RRSIG) {
SIGRecord sig = (SIGBase) this;
return sig.getTypeCovered();
}
return type;
}
| public int
getRRsetType() {
if (type == Type.SIG || type == Type.RRSIG) {
SIGBase sig = (SIGBase) this;
return sig.getTypeCovered();
}
return type;
}
|
public void addURL(URL url) {
super.addURL(url);
}
public Class findClass(String className) throws ClassNotFoundException {
Class temp = super.findClass(className);
return temp;
}
public Object instanciate(String className) throws Exception {
Class actClass = findClass(className);
return actClass.newI... | public void addURL(URL url) {
super.addURL(url);
}
public Class findClass(String className) throws ClassNotFoundException {
Class temp = super.findClass(className);
return temp;
}
public Object instanciate(String className) throws Exception {
Class actClass = findClass(className);
return actClass.newI... |
private Object[] computeFolderNonJavaResources(IJavaProject project, IContainer folder) throws JavaModelException {
Object[] nonJavaResources = new IResource[5];
int nonJavaResourcesCounter = 0;
try {
IResource[] members = folder.members();
for (int i = 0, max = members.length; i < max; i++) {
IResource membe... | private Object[] computeFolderNonJavaResources(IJavaProject project, IContainer folder) throws JavaModelException {
Object[] nonJavaResources = new IResource[5];
int nonJavaResourcesCounter = 0;
try {
IResource[] members = folder.members();
for (int i = 0, max = members.length; i < max; i++) {
IResource membe... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
this.expression.checkNPE(currentScope, flowContext, flowInfo, true);
if (((bits & OperatorMASK) >> OperatorSHIFT) == NOT) {
return this.expression.
analyseCode(currentScope, flowContext, flowInfo).
asNeg... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
this.expression.checkNPE(currentScope, flowContext, flowInfo);
if (((bits & OperatorMASK) >> OperatorSHIFT) == NOT) {
return this.expression.
analyseCode(currentScope, flowContext, flowInfo).
asNegatedCon... |
public
ARecord(Name name, int dclass, long ttl, InetAddress address) {
super(name, Type.A, dclass, ttl);
if (Address.familyOf(address) != Address.IPv4)
throw new IllegalArgumentException("invalid IPv4 address");
addr = fromArray(address.getAddress());
}
void
rrFromWire(DNSInput in) throws IOException {
addr = fr... | public
ARecord(Name name, int dclass, long ttl, InetAddress address) {
super(name, Type.A, dclass, ttl);
if (Address.familyOf(address) != Address.IPv4)
throw new IllegalArgumentException("invalid IPv4 address");
addr = fromArray(address.getAddress());
}
void
rrFromWire(DNSInput in) throws IOException {
addr = fr... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
// Flatten the values and compute the dimensions, by iterating in depth into nested array initializers
int pc = codeStream.position;
int expressionLength = (expressions == null) ? 0: expressions.length;
codeStream.gen... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
// Flatten the values and compute the dimensions, by iterating in depth into nested array initializers
int pc = codeStream.position;
int expressionLength = (expressions == null) ? 0: expressions.length;
codeStream.gen... |
public static final String EDITOR_PIN_ON_DIRTY = "editorPinOnDirty"; //$NON-NLS-1$
} | public static final String EDITOR_EXPERIMENTAL_TAB_BEHAVIOUR = "EDITOR_EXPERIMENTAL_TAB_BEHAVIOUR"; //$NON-NLS-1$
} |
public void actionPerformed(ActionEvent e)
{
String action = e.getActionCommand();
if (action.equals("OK")) //$NON-NLS-1$
{
identityPanel.updateComponents(false);
incomingServerPanel.updateComponents(false);
receiveOptionsPanel.updateComponents(false);
outgoingServerPanel.updateComponents(false);
... | public void actionPerformed(ActionEvent e)
{
String action = e.getActionCommand();
if (action.equals("OK")) //$NON-NLS-1$
{
identityPanel.updateComponents(false);
incomingServerPanel.updateComponents(false);
receiveOptionsPanel.updateComponents(false);
outgoingServerPanel.updateComponents(false);
... |
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,
SearchEngin... | 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,
SearchEngin... |
public void setDebug( String s ) {
args.setProperty( "debug", s);
}
| public void setDebug( String s ) {
args.put( "debug", s);
}
|
public void delete( ScarabUser user )
throws Exception
{
Module module = getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
IssueType issueType = IssueTypeManager
.getInstance(getIssueTypeId(), false);
... | public void delete( ScarabUser user )
throws Exception
{
Module module = getModule();
if (user.hasPermission(ScarabSecurity.MODULE__CONFIGURE, module))
{
IssueType issueType = IssueTypeManager
.getInstance(getIssueTypeId(), false);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.