buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static MModel loadProfileModel() {
//
// get a file name for the default model
//
String defaultModelFileName =
System.getProperty("argo.defaultModel");
//
// if the property was set
//
InputStream is = null;
if (defaultModelFileName != null) {
//
// try to find a fil... | public static MModel loadProfileModel() {
//
// get a file name for the default model
//
String defaultModelFileName =
System.getProperty("argo.defaultModel");
//
// if the property was set
//
InputStream is = null;
if (defaultModelFileName != null) {
//
// try to find a fil... |
public TypeBinding resolveType(BlockScope scope) {
super.resolveType(scope);
if (currentCompatibleType == null)
return null; // error case
if (scope.isJavaLangObject(currentCompatibleType)) {
scope.problemReporter().cannotUseSuperInJavaLangObject(this);
return null;
}
return this.expressionType = ... | public TypeBinding resolveType(BlockScope scope) {
super.resolveType(scope);
if (currentCompatibleType == null)
return null; // error case
if (scope.isJavaLangObject(currentCompatibleType)) {
scope.problemReporter().cannotUseSuperInJavaLangObject(this);
return null;
}
return this.resolvedType = cu... |
private void buildForProject(JavaProject project, ArrayList infos, ArrayList units, org.eclipse.jdt.core.ICompilationUnit[] workingCopies, IProgressMonitor monitor) throws JavaModelException {
// copy vectors into arrays
IGenericType[] genericTypes;
int infosSize = infos.size();
if (infosSize > 0) {
genericTypes ... | private void buildForProject(JavaProject project, ArrayList infos, ArrayList units, org.eclipse.jdt.core.ICompilationUnit[] workingCopies, IProgressMonitor monitor) throws JavaModelException {
// copy vectors into arrays
IGenericType[] genericTypes;
int infosSize = infos.size();
if (infosSize > 0) {
genericTypes ... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// record setting a variable: various scenarii are possible, setting an array reference,
// a field reference, a blank final field reference, a field of an enclosing instance or
// just a local variable.
... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// record setting a variable: various scenarii are possible, setting an array reference,
// a field reference, a blank final field reference, a field of an enclosing instance or
// just a local variable.
... |
protected ActionSettings() {
super(Argo.localize(Argo.MENU_BUNDLE,"Settings..."), false);
}
| protected ActionSettings() {
super(Argo.localize(Argo.MENU_BUNDLE,"action.settings"), false);
}
|
private static void readMenuAddition(IMenuService menuService,
IConfigurationElement addition) {
// Determine the insertion location by parsing the URI
String locationURI = addition.getAttribute(TAG_LOCATION_URI);
MenuLocationURI uri = new MenuLocationURI(locationURI);
if (uri != null) {
MenuAddition ad... | private static void readMenuAddition(IMenuService menuService,
IConfigurationElement addition) {
// Determine the insertion location by parsing the URI
String locationURI = addition.getAttribute(TAG_LOCATION_URI);
MenuLocationURI uri = new MenuLocationURI(locationURI);
if (uri != null) {
MenuAddition ad... |
public PopupMenuNewEvent(String role, UMLMutableLinkedList list) {
super();
JMenu newMenu = new JMenu();
newMenu.setText(Argo.localize("CoreMenu", "New"));
newMenu.add(ActionNewCallEvent.SINGLETON);
ActionNewCallEvent.SINGLETON.setTarget(list.getTarget());
ActionNewC... | public PopupMenuNewEvent(String role, UMLMutableLinkedList list) {
super();
JMenu newMenu = new JMenu();
newMenu.setText(Argo.localize("CoreMenu", "New"));
newMenu.add(ActionNewCallEvent.SINGLETON);
ActionNewCallEvent.SINGLETON.setTarget(list.getTarget());
ActionNewC... |
private void printCodeSnippet(int startPosition, int endPosition) {
String snippet = new String(this.scanner.source, startPosition, endPosition - startPosition + 1);
// 1 - strip content prefix (@see JavaDocRegion#preprocessCodeSnippet)
ILineTracker tracker= new DefaultLineTracker();
String contentPrefix= IJa... | private void printCodeSnippet(int startPosition, int endPosition) {
String snippet = new String(this.scanner.source, startPosition, endPosition - startPosition + 1);
// 1 - strip content prefix (@see JavaDocRegion#preprocessCodeSnippet)
ILineTracker tracker= new DefaultLineTracker();
String contentPrefix= IJa... |
public PopupMenuNewAction(String role, UMLMutableLinkedList list) {
super();
JMenu newMenu = new JMenu();
newMenu.setText(Argo.localize("CoreMenu", "New"));
newMenu.add(ActionNewCallAction.SINGLETON);
ActionNewCallAction.SINGLETON.setTarget(list.getTarget());
ActionN... | public PopupMenuNewAction(String role, UMLMutableLinkedList list) {
super();
JMenu newMenu = new JMenu();
newMenu.setText(Argo.localize("CoreMenu", "New"));
newMenu.add(ActionNewCallAction.SINGLETON);
ActionNewCallAction.SINGLETON.setTarget(list.getTarget());
ActionN... |
public ThemeComboBoxRenderer() {
super();
try {
pluginHandler = PluginManager.getInstance()
.getHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_THEME);
} catch (PluginHandlerNotFoundException ex) {
ErrorDialog.createDialog(ex.getMessage(), ex);
}
}
| public ThemeComboBoxRenderer() {
super();
try {
pluginHandler = PluginManager.getInstance()
.getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_THEME);
} catch (PluginHandlerNotFoundException ex) {
ErrorDialog.createDialog(ex.getMessage(), ex);
}
}
|
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
breakLabel = new Label();
continueLabel = new Label();
// process the initializations
if (initializations != null) {
int count = initializations.length, i = 0;
while (i < count) {
flowInfo =... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
breakLabel = new Label();
continueLabel = new Label();
// process the initializations
if (initializations != null) {
int count = initializations.length, i = 0;
while (i < count) {
flowInfo =... |
public GlobalOptionsAction(IFrameMediator controller) {
super(controller,
GlobalResourceLoader.getString("global", "global",
"menu_edit_generaloptions"));
putValue(SHORT_DESCRIPTION,
GlobalResourceLoader.getString("global", "global",
"menu_edi... | public GlobalOptionsAction(IFrameMediator controller) {
super(controller,
GlobalResourceLoader.getString("global", "global",
"menu_edit_generaloptions"));
putValue(SHORT_DESCRIPTION,
GlobalResourceLoader.getString("global", "global",
"menu_edi... |
public ProjectResourceCopier(IJavaProject project, JavaDevelopmentContextImpl devContext, BuildNotifier notifier, float totalAvailableProgress){
this.project = project;
this.devContext = devContext;
this.projectRsc = this.project.getProject();
this.workspace = this.projectRsc.getWorkspace();
this.root = this.wor... | public ProjectResourceCopier(IJavaProject project, JavaDevelopmentContextImpl devContext, BuildNotifier notifier, float totalAvailableProgress){
this.project = project;
this.devContext = devContext;
this.projectRsc = this.project.getProject();
this.workspace = this.projectRsc.getWorkspace();
this.root = this.wor... |
public void
setCache(Cache cache) {
if (cache == null) {
this.cache = new Cache(dclass, 0);
this.temporary_cache = true;
} else {
this.cache = cache;
this.temporary_cache = false;
}
}
| public void
setCache(Cache cache) {
if (cache == null) {
this.cache = new Cache(dclass);
this.temporary_cache = true;
} else {
this.cache = cache;
this.temporary_cache = false;
}
}
|
public void cleanUpIndexes() {
SimpleLookupTable knownPaths = new SimpleLookupTable();
SearchParticipant[] participants = SearchEngine.getSearchParticipants();
IJavaSearchScope scope = new JavaWorkspaceScope();
for (int i = 0, length = participants.length; i < length; i++) {
PatternSearchJob job = new PatternSear... | public void cleanUpIndexes() {
SimpleLookupTable knownPaths = new SimpleLookupTable();
SearchParticipant[] participants = SearchEngine.getAvailableSearchParticipants();
IJavaSearchScope scope = new JavaWorkspaceScope();
for (int i = 0, length = participants.length; i < length; i++) {
PatternSearchJob job = new Pa... |
protected void encryptMessage() {
// Example message:
//
// From: Michael Elkins <elkins@aero.org>
// To: Michael Elkins <elkins@aero.org>
// Mime-Version: 1.0
//
// Content-Type: multipart/encrypted; boundary=foo;
// protocol="application/pgp-encrypted"
//
// --foo
// ... | protected void encryptMessage() {
// Example message:
//
// From: Michael Elkins <elkins@aero.org>
// To: Michael Elkins <elkins@aero.org>
// Mime-Version: 1.0
//
// Content-Type: multipart/encrypted; boundary=foo;
// protocol="application/pgp-encrypted"
//
// --foo
// ... |
protected final void updateEvaluationContext(final String name,
final Object value) {
/*
* Bug 84056. If we update the active workbench window, then we risk
* falling back to that shell when the active shell has registered as
* "none".
*/
if ((name != null)
&& (!ISources.ACTIVE_WORKBENCH_WINDOW_... | protected final void updateEvaluationContext(final String name,
final Object value) {
/*
* Bug 84056. If we update the active workbench window, then we risk
* falling back to that shell when the active shell has registered as
* "none".
*/
if ((name != null)
&& (!ISources.ACTIVE_WORKBENCH_WINDOW_... |
public TypeBinding resolveType(BlockScope scope) {
// Propagate the type checking to the arguments, and check if the constructor is defined.
constant = Constant.NotAConstant;
if (this.type == null) {
// initialization of an enum constant
this.resolvedType = scope.enclosingReceiverType();
} else {
thi... | public TypeBinding resolveType(BlockScope scope) {
// Propagate the type checking to the arguments, and check if the constructor is defined.
constant = Constant.NotAConstant;
if (this.type == null) {
// initialization of an enum constant
this.resolvedType = scope.enclosingReceiverType();
} else {
thi... |
public void setContainer(Container container) {
this.container = container;
applicationName = container.getApplication().getName();
beanName = container.getBeanMetaData().getJndiName();
}
| public void setContainer(Container container) {
this.container = container;
applicationName = container.getEjbModule().getName();
beanName = container.getBeanMetaData().getJndiName();
}
|
public void run() {
getPopupMenu().show(getView(), event.getX(), event.getY());
}
});
}
| public void run() {
getPopupMenu().show(event.getComponent(), event.getX(), event.getY());
}
});
}
|
import org.apache.torque.om.Persistent;
package org.tigris.scarab.om;
/* ================================================================
* Copyright (c) 2000-2001 CollabNet. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | import org.apache.torque.om.Persistent;
package org.tigris.scarab.om;
/* ================================================================
* Copyright (c) 2000-2001 CollabNet. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
public TypeBinding resolveType(BlockScope scope) {
constant = NotAConstant;
TypeBinding expressionType = expression.resolveType(scope);
TypeBinding checkedType = type.resolveType(scope);
if (expressionType == null || checkedType == null)
return null;
if (checkedType.isTypeVariable() || checkedType.isPar... | public TypeBinding resolveType(BlockScope scope) {
constant = NotAConstant;
TypeBinding expressionType = expression.resolveType(scope);
TypeBinding checkedType = type.resolveType(scope);
if (expressionType == null || checkedType == null)
return null;
if (checkedType.isTypeVariable() || checkedType.isBou... |
protected
void parseCatsAndRenderers(Properties props, Hierarchy hierarchy) {
Enumeration enum = props.propertyNames();
while(enum.hasMoreElements()) {
String key = (String) enum.nextElement();
if(key.startsWith(CATEGORY_PREFIX)) {
String categoryName = key.substring(CATEGORY_PREFIX.lengt... | protected
void parseCatsAndRenderers(Properties props, Hierarchy hierarchy) {
Enumeration enum = props.propertyNames();
while(enum.hasMoreElements()) {
String key = (String) enum.nextElement();
if(key.startsWith(CATEGORY_PREFIX)) {
String categoryName = key.substring(CATEGORY_PREFIX.lengt... |
public void service(SelectionKey selection)
{
// Activity on the ServerSocketChannel means a client
// is trying to connect to the server.
if (!selection.isAcceptable())
return;
ServerSocketChannel server = (ServerSocketChannel) selection.channel();
... | public void service(SelectionKey selection)
{
// Activity on the ServerSocketChannel means a client
// is trying to connect to the server.
if (!selection.isAcceptable())
return;
ServerSocketChannel server = (ServerSocketChannel) selection.channel();
... |
public static char[] convertClassFileFormat(char[] name) {
return CharOperation.replaceOnCopy(name, '/', '.');
}
boolean checkDeclaringType(IBinaryType enclosingBinaryType, char[] simpleName, char[] qualification, boolean isCaseSensitive) {
if (simpleName == null && qualification == null) return true;
if (enclosing... | public static char[] convertClassFileFormat(char[] name) {
return CharOperation.replaceOnCopy(name, '/', '.');
}
boolean checkDeclaringType(IBinaryType enclosingBinaryType, char[] simpleName, char[] qualification, boolean isCaseSensitive) {
if (simpleName == null && qualification == null) return true;
if (enclosing... |
public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
Index index = manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/);
if... | public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
Index index = manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/);
if... |
public static void checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) {
boolean unsafeWildcardInvocation = false;
TypeBinding[] params = method.p... | public static void checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) {
boolean unsafeWildcardInvocation = false;
TypeBinding[] params = method.p... |
int verify(RRset set, Cache cache);
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
/**
* An interface to a DNSSEC Verifier. This is used to verify the validity
* of data received by dnsjava. The specific implementation of the verifier
* is expected to store trusted keys ... | int verify(RRset set, Cache cache);
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
/**
* An interface to a DNSSEC Verifier. This is used to verify the validity
* of data received by dnsjava. The specific implementation of the verifier
* is expected to store trusted keys ... |
public void setPartition(Vector x) throws PropertyVetoException {
if (_partition == null) _partition = new Vector();
fireVetoableChange("partition", _partition, x);
_partition = x;
}
| public void setPartition(Vector x) throws PropertyVetoException {
if (_partition == null) _partition = new Vector();
fireVetoableChangeNoCompare("partition", _partition, x);
_partition = x;
}
|
protected void loadNodesFromRegistry(IPluginRegistry registry) {
nodes = new ArrayList();
readRegistry(registry, IWorkbenchConstants.PLUGIN_ID, IWorkbenchConstants.PL_PREFERENCES);
}
| protected void loadNodesFromRegistry(IPluginRegistry registry) {
nodes = new ArrayList();
readRegistry(registry, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_PREFERENCES);
}
|
int reconcileFlags;
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies ... | int reconcileFlags;
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies ... |
public SwitchPerspectiveSubmenu(IFrameMediator controller) {
super(controller, "Window", ((DefaultFrameController) controller)
.getViewItem().get("id"));
String id = ((DefaultFrameController) getFrameMediator()).getViewItem()
.get("id");
// check if this is a management frame instance
// -> if so cre... | public SwitchPerspectiveSubmenu(IFrameMediator controller) {
super(controller, "Window", ((DefaultFrameController) controller)
.getViewItem().get("id"));
String id = ((DefaultFrameController) getFrameMediator()).getViewItem()
.get("id");
// check if this is a management frame instance
// -> if so cre... |
private OverlayCache overlayCache = new OverlayCache();
LightweightDecoratorManager(LightweightDecoratorDefinition[] definitions) {
super();
lightweightDefinitions = definitions;
}
/**
* Get the lightweight definitions for the receiver.
* @return LightweightDecoratorDefinition[]
*/
LightweightDecorator... | private OverlayCache overlayCache = new OverlayCache();
LightweightDecoratorManager(LightweightDecoratorDefinition[] definitions) {
super();
lightweightDefinitions = definitions;
}
/**
* Get the lightweight definitions for the receiver.
* @return LightweightDecoratorDefinition[]
*/
LightweightDecorator... |
public MessageLine(Composite parent, int style) {
super(parent, style);
fNormalMsgAreaBackground= getBackground();
fErrorMsgAreaBackground= null;
}
| public MessageLine(Composite parent, int style) {
super(parent, style);
fNormalMsgAreaBackground= null;
fErrorMsgAreaBackground= null;
}
|
public static final String SHOW_PROGRESS_INDICATOR = "showProgressIndicator";
} | public static final String SHOW_PROGRESS_INDICATOR = "showProgressIndicator"; //$NON-NLS-1$
} |
public static String[] getTrimmedSimpleNames(String name) {
String[] result = Signature.getSimpleNames(name);
for (int i = 0, length = result.length; i < length; i++) {
result[i] = result[i].trim();
}
| public static String[] getTrimmedSimpleNames(String name) {
String[] result = splitOn(Signature.C_DOT, name, 0, name.length());
for (int i = 0, length = result.length; i < length; i++) {
result[i] = result[i].trim();
}
|
public void save(IProgressMonitor progress, boolean force) throws JavaModelException {
// determine if saving is required
if (isReadOnly() || this.file == null) {
return;
}
if (!hasUnsavedChanges())
return;
// use a platform operation to update the resource contents
try {
String stringContents = this.g... | public void save(IProgressMonitor progress, boolean force) throws JavaModelException {
// determine if saving is required
if (isReadOnly() || this.file == null) {
return;
}
if (!hasUnsavedChanges())
return;
// use a platform operation to update the resource contents
try {
String stringContents = this.g... |
public boolean checkRawSubstitution() {
// only at first level, during inference from arguments
if (depth > 0) return false;
// if (this.argumentIndex < 0 || this.depth != 0) {
// return false;
// }
this.status = RAW_SUBSTITUTION;
return true;
}
| public boolean checkRawSubstitution() {
// only at first level, during inference from arguments
if (this.depth > 0) return false;
// if (this.argumentIndex < 0 || this.depth != 0) {
// return false;
// }
this.status = RAW_SUBSTITUTION;
return true;
}
|
public int getNodeType() {
return NUMBER_LITERAL;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
NumberLiteral result = new NumberLiteral(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setToken(getToken());
return re... | public int getNodeType() {
return NUMBER_LITERAL;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
NumberLiteral result = new NumberLiteral(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setToken(getToken());
return r... |
public TypeBinding resolveForCatch(BlockScope scope) {
// resolution on an argument of a catch clause
// provide the scope with a side effect : insertion of a LOCAL
// that represents the argument. The type must be from JavaThrowable
TypeBinding exceptionType = this.type.resolveType(scope);
if (exceptionTy... | public TypeBinding resolveForCatch(BlockScope scope) {
// resolution on an argument of a catch clause
// provide the scope with a side effect : insertion of a LOCAL
// that represents the argument. The type must be from JavaThrowable
TypeBinding exceptionType = this.type.resolveType(scope);
if (exceptionTy... |
public static void createProblemType(TypeDeclaration typeDeclaration, CompilationResult unitResult) {
SourceTypeBinding typeBinding = typeDeclaration.binding;
ClassFile classFile = new CodeSnippetClassFile(typeBinding, null, true);
// inner attributes
if (typeBinding.isMemberType())
classFile.recordEnclosingType... | public static void createProblemType(TypeDeclaration typeDeclaration, CompilationResult unitResult) {
SourceTypeBinding typeBinding = typeDeclaration.binding;
ClassFile classFile = new CodeSnippetClassFile(typeBinding, null, true);
// inner attributes
if (typeBinding.isMemberType())
classFile.recordEnclosingType... |
protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
beginTask("", 1); //$NON-NLS-1$
if (JavaModelManager.CP_RESOLVE_VERBOSE)
verbose_set_container();
if (JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED)
verbose_set_container_invocation_trace();
JavaModelManager... | protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
beginTask("", 1); //$NON-NLS-1$
if (JavaModelManager.CP_RESOLVE_VERBOSE)
verbose_set_container();
if (JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED)
verbose_set_container_invocation_trace();
JavaModelManager... |
private void makeActions() {
// The actions in jface do not have menu vs. enable, vs. disable vs. color
// There are actions in here being passed the workbench - problem
// Get services for notification.
IPartService partService = window.getPartService();
WWinKeyBindingService keyBindingService = window.g... | private void makeActions() {
// The actions in jface do not have menu vs. enable, vs. disable vs. color
// There are actions in here being passed the workbench - problem
// Get services for notification.
IPartService partService = window.getPartService();
WWinKeyBindingService keyBindingService = window.g... |
private ServletHandler mapJspPage( Context ctx, String uri)
{
String servletName= SERVLET_NAME_PREFIX + uri;
if( debug>0)
log( "mapJspPage " + ctx + " " + " " + servletName + " " + uri );
Handler h=ctx.getServletByName( servletName );
if( h!= null ) {
log( "Name already exists " + servletName ... | private ServletHandler mapJspPage( Context ctx, String uri)
{
String servletName= SERVLET_NAME_PREFIX + uri;
if( debug>0)
log( "mapJspPage " + ctx + " " + " " + servletName + " " + uri );
Handler h=ctx.getServletByName( servletName );
if( h!= null ) {
log( "Name already exists " + servletName ... |
public DeleteAction(AbstractFrameController controller) {
super(
controller,
GlobalResourceLoader.getString(
null, null, "menu_edit_delete"));
// tooltip text
setTooltipText(
GlobalResourceLoader.getString(
null, null, "menu_edit_delete"));
// action command
setActionCommand... | public DeleteAction(AbstractFrameController controller) {
super(
controller,
GlobalResourceLoader.getString(
null, null, "menu_edit_delete"));
// tooltip text
setTooltipText(
GlobalResourceLoader.getString(
null, null, "menu_edit_delete_tooltip"));
// action command
setActio... |
public IWizardPage getNextPage(IWizardPage page) {
if (workingSetTypePage != null && page == workingSetTypePage) {
String pageId = workingSetTypePage.getSelection();
if (pageId != null) {
if (workingSetEditPage == null || pageId != editPageId) {
WorkingSetRegistry registry = WorkbenchPlugin.getDefa... | public IWizardPage getNextPage(IWizardPage page) {
if (workingSetTypePage != null && page == workingSetTypePage) {
String pageId = workingSetTypePage.getSelection();
if (pageId != null) {
if (workingSetEditPage == null || pageId != editPageId) {
WorkingSetRegistry registry = WorkbenchPlugin.getDefa... |
public boolean subtreeMatch(ASTMatcher matcher, Object other) {
// dispatch to correct overloaded match method
return matcher.match(this, other);
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
void accept0(ASTVisitor visitor) {
visitor.visit(this);
visitor.endVisit(this);
}
/*... | public boolean subtreeMatch(ASTMatcher matcher, Object other) {
// dispatch to correct overloaded match method
return matcher.match(this, other);
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
void accept0(ASTVisitor visitor) {
visitor.visit(this);
visitor.endVisit(this);
}
/*... |
protected void createSourceGroup(Composite parent) {
Composite sourceContainerGroup = new Composite(parent,SWT.NONE);
GridLayout layout = new GridLayout();
layout.numColumns = 3;
sourceContainerGroup.setLayout(layout);
sourceContainerGroup.setLayoutData(
new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRA... | protected void createSourceGroup(Composite parent) {
Composite sourceContainerGroup = new Composite(parent,SWT.NONE);
GridLayout layout = new GridLayout();
layout.numColumns = 3;
sourceContainerGroup.setLayout(layout);
sourceContainerGroup.setLayoutData(
new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRA... |
public IPreferenceStore getPreferenceStore() {
return PrefUtil.getAPIPreferenceStore();
}
}
| public static IPreferenceStore getPreferenceStore() {
return PrefUtil.getAPIPreferenceStore();
}
}
|
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 IStatus runInUIThread(IProgressMonitor monitor) {
if (singleton == null)
return Status.CANCEL_STATUS;
if (ProgressManagerUtil.rescheduleIfModalShellOpen(this,null))
return Status.CANCEL_STATUS;
singleton.open();
return Status.OK_STATUS;
}
};
//Wait for long operation... | public IStatus runInUIThread(IProgressMonitor monitor) {
if (singleton == null)
return Status.CANCEL_STATUS;
if (ProgressManagerUtil.rescheduleIfModalShellOpen(this))
return Status.CANCEL_STATUS;
singleton.open();
return Status.OK_STATUS;
}
};
//Wait for long operation time... |
protected void sendBuffer() {
// Note: this code already owns the monitor for this
// appender. This frees us from needing to synchronize on 'cb'.
try {
MimeBodyPart part = new MimeBodyPart();
StringBuffer sbuf = new StringBuffer();
String t = layout.getHeader();
if (t != null) {... | protected void sendBuffer() {
// Note: this code already owns the monitor for this
// appender. This frees us from needing to synchronize on 'cb'.
try {
MimeBodyPart part = new MimeBodyPart();
StringBuffer sbuf = new StringBuffer();
String t = layout.getHeader();
if (t != null) {... |
private void makeActions() {
// The actions in jface do not have menu vs. enable, vs. disable vs. color
// There are actions in here being passed the workbench - problem
// Get services for notification.
IPartService partService = getWindow().getPartService();
WWinKeyBindingService keyBindingService =
... | private void makeActions() {
// The actions in jface do not have menu vs. enable, vs. disable vs. color
// There are actions in here being passed the workbench - problem
// Get services for notification.
IPartService partService = getWindow().getPartService();
WWinKeyBindingService keyBindingService =
... |
public final TypeBinding getType(char[][] compoundName, int typeNameLength) {
if (typeNameLength == 1) {
// Would like to remove this test and require senders to specially handle base types
TypeBinding binding = getBaseType(compoundName[0]);
if (binding != null) return binding;
}
CompilationUnitScope u... | public final TypeBinding getType(char[][] compoundName, int typeNameLength) {
if (typeNameLength == 1) {
// Would like to remove this test and require senders to specially handle base types
TypeBinding binding = getBaseType(compoundName[0]);
if (binding != null) return binding;
}
CompilationUnitScope u... |
public void findIndexMatches(IndexInput input, IIndexSearchRequestor requestor, int detailLevel, IProgressMonitor progressMonitor, IJavaSearchScope scope) throws IOException {
if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException();
/* narrow down a set of entries using ... | public void findIndexMatches(IndexInput input, IIndexSearchRequestor requestor, int detailLevel, IProgressMonitor progressMonitor, IJavaSearchScope scope) throws IOException {
if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException();
/* narrow down a set of entries using ... |
protected void processElement(IJavaElement element) throws JavaModelException {
JavaModelOperation op = getNestedOperation(element);
boolean createElementInCUOperation =op instanceof CreateElementInCUOperation;
if (op == null) {
return;
}
if (createElementInCUOperation) {
IJavaElement sibling = (IJavaElement) ... | protected void processElement(IJavaElement element) throws JavaModelException {
JavaModelOperation op = getNestedOperation(element);
boolean createElementInCUOperation =op instanceof CreateElementInCUOperation;
if (op == null) {
return;
}
if (createElementInCUOperation) {
IJavaElement sibling = (IJavaElement) ... |
public void place() { // Currently lacking wide support.
if (position == POS_NOT_SET) {
position = codeStream.position;
codeStream.addLabel(this);
int oldPosition = position;
boolean optimizedBranch = false;
// TURNED OFF since fail on 1F4IRD9
if (forwardReferenceCount != 0) {
if (optimizedBranch = (for... | public void place() { // Currently lacking wide support.
if (position == POS_NOT_SET) {
position = codeStream.position;
codeStream.addLabel(this);
int oldPosition = position;
boolean optimizedBranch = false;
// TURNED OFF since fail on 1F4IRD9
if (forwardReferenceCount != 0) {
if (optimizedBranch = (for... |
public CompletionJavadocParser(CompletionParser sourceParser) {
super(sourceParser);
this.scanner = new CompletionScanner(ClassFileConstants.JDK1_3);
this.kind = COMPLETION_PARSER;
this.reportProblems = false;
initLevelTags();
}
| public CompletionJavadocParser(CompletionParser sourceParser) {
super(sourceParser);
this.scanner = new CompletionScanner(ClassFileConstants.JDK1_3);
this.kind = COMPLETION_PARSER | TEXT_PARSE;
this.reportProblems = false;
initLevelTags();
}
|
public void delete( ScarabUser user )
throws Exception
{
Module module = getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
// Delete module-attribute mapping
Criteria c = new Criteria()
.addJoin(... | public void delete( ScarabUser user )
throws Exception
{
Module module = getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
// Delete module-attribute mapping
Criteria c = new Criteria()
.addJoin(... |
public void getPreferenceSearchHistory(){
IDialogSettings settings = getDialogSettings();
String[] search = settings.getArray(SEARCHHISTORY); //$NON-NLS-1$
if(search == null)
return;
for(int i = 0; i < search.length;i++){
filterCombo.add(search[i]);
}
}
| public void getPreferenceSearchHistory(){
IDialogSettings settings = getDialogSettings();
String[] search = settings.getArray(SEARCHHISTORY);
if(search == null)
return;
for(int i = 0; i < search.length;i++){
filterCombo.add(search[i]);
}
}
|
public boolean isAssignmentCompatible(ITypeBinding type) {
if (this == type) return true;
TypeBinding other = (TypeBinding) type;
Scope scope = this.resolver.scope();
if (scope == null) return false;
return this.binding.isCompatibleWith(other.binding) || scope.isBoxingCompatibleWith(other.binding, this.bindi... | public boolean isAssignmentCompatible(ITypeBinding type) {
if (this == type) return true;
TypeBinding other = (TypeBinding) type;
Scope scope = this.resolver.scope();
if (scope == null) return false;
return this.binding.isCompatibleWith(other.binding) || scope.isBoxingCompatibleWith(this.binding, other.bindi... |
public interface IContextBindingDefinition extends Comparable {
/*******************************************************************************
* 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 Comm... | public interface IContextBindingDefinition extends Comparable {
/*******************************************************************************
* 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 Comm... |
public PropPanelClass() {
super("Class",_classIcon, ConfigLoader.getTabPropsOrientation());
Class mclass = MClass.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 anywh... | public PropPanelClass() {
super("Class",_classIcon, ConfigLoader.getTabPropsOrientation());
Class mclass = MClass.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 anywh... |
public void generateStoreSaveValueIfNecessary(CodeStream codeStream){
// push receiver
codeStream.aload_0();
// push the 2 parameters of "setResult(Object, Class)"
if (this.expression == null || this.expression.resolvedType == TypeBinding.VOID) { // expressionType == VoidBinding if code snippet is the expression ... | public void generateStoreSaveValueIfNecessary(CodeStream codeStream){
// push receiver
codeStream.aload_0();
// push the 2 parameters of "setResult(Object, Class)"
if (this.expression == null || this.expression.resolvedType == TypeBinding.VOID) { // expressionType == VoidBinding if code snippet is the expression ... |
public void showDialog(String userID, String password, boolean save) {
// JButton[] buttons = new JButton[2];
JLabel hostLabel = new JLabel(MessageFormat.format(MailResourceLoader
.getString("dialog", "password", "enter_passphrase"),
new Object[] { userID }));
passwordField = new JPasswordField(passwor... | public void showDialog(String userID, String password, boolean save) {
// JButton[] buttons = new JButton[2];
JLabel hostLabel = new JLabel(MessageFormat.format(MailResourceLoader
.getString("dialog", "password", "enter_passphrase"),
new Object[] { userID }));
passwordField = new JPasswordField(passwor... |
public int getNodeType() {
return INITIALIZER;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
Initializer result = new Initializer(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
if (this.ast.apiLevel == AST.LEVEL_2_0) {
re... | public int getNodeType() {
return INITIALIZER;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
Initializer result = new Initializer(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
if (this.ast.apiLevel == AST.LEVEL_2_0) {
r... |
private void updateIndex(Openable element, IResourceDelta delta) {
IndexManager indexManager = this.manager.indexManager;
if (indexManager == null)
return;
switch (element.getElementType()) {
case IJavaElement.JAVA_PROJECT :
switch (delta.getKind()) {
case IResourceDelta.ADDED :
indexMan... | private void updateIndex(Openable element, IResourceDelta delta) {
IndexManager indexManager = this.manager.indexManager;
if (indexManager == null)
return;
switch (element.getElementType()) {
case IJavaElement.JAVA_PROJECT :
switch (delta.getKind()) {
case IResourceDelta.ADDED :
indexMan... |
public void releaseLock() {
}
} | public void releaseLock(Object locker) {
}
} |
private String getDecodedMessageBody(StreamableMimePart bodyPart)
throws IOException {
MimeHeader header = bodyPart.getHeader();
// Decode message according to charset
InputStream bodyStream = bodyPart.getInputStream();
int encoding = header.getContentTransferEncoding();
... | private String getDecodedMessageBody(StreamableMimePart bodyPart)
throws IOException {
MimeHeader header = bodyPart.getHeader();
// Decode message according to charset
InputStream bodyStream = bodyPart.getInputStream();
int encoding = header.getContentTransferEncoding();
... |
public void format(java.io.Writer output, LoggingEvent event) throws java.io.IOException {
output.write(Layout.LINE_SEP + "<tr>" + Layout.LINE_SEP);
output.write("<td>");
output.write(Long.toString(event.timeStamp - LoggingEvent.getStartTime()));
output.write("</td>" + Layout.LINE_SEP);
output... | public void format(java.io.Writer output, LoggingEvent event) throws java.io.IOException {
output.write(Layout.LINE_SEP + "<tr>" + Layout.LINE_SEP);
output.write("<td>");
output.write(Long.toString(event.getTimeStamp() - LoggingEvent.getStartTime()));
output.write("</td>" + Layout.LINE_SEP);
o... |
public static void main(String[] args) {
ColumbaCmdLineParser cmdLineParser = new ColumbaCmdLineParser();
cmdLineParser.initCmdLine(args);
MainInterface.DEBUG = cmdLineParser.isDebugOption();
// the configPath settings are made in the commandlineParser @see ColumbaCmdLineParser
loadInVMInstanc... | public static void main(String[] args) {
ColumbaCmdLineParser cmdLineParser = new ColumbaCmdLineParser();
cmdLineParser.initCmdLine(args);
MainInterface.DEBUG = cmdLineParser.isDebugOption();
// the configPath settings are made in the commandlineParser @see ColumbaCmdLineParser
loadInVMInstanc... |
public FieldBinding generateReadSequence(BlockScope currentScope, CodeStream codeStream) {
// determine the rank until which we now we do not need any actual value for the field access
int otherBindingsCount = this.otherCodegenBindings == null ? 0 : this.otherCodegenBindings.length;
boolean needValue = otherBin... | public FieldBinding generateReadSequence(BlockScope currentScope, CodeStream codeStream) {
// determine the rank until which we now we do not need any actual value for the field access
int otherBindingsCount = this.otherCodegenBindings == null ? 0 : this.otherCodegenBindings.length;
boolean needValue = otherBin... |
private boolean isRuntimeInvisible(Annotation annotation) {
final TypeBinding annotationBinding = annotation.resolvedType;
if (annotationBinding == null) {
return false;
}
long metaTagBits = annotationBinding.tagBits;
if ((metaTagBits & TagBits.AnnotationRetentionMASK) == 0)
return true; // by default ... | private boolean isRuntimeInvisible(Annotation annotation) {
final TypeBinding annotationBinding = annotation.resolvedType;
if (annotationBinding == null) {
return false;
}
long metaTagBits = annotationBinding.getAnnotationTagBits();
if ((metaTagBits & TagBits.AnnotationRetentionMASK) == 0)
return true;... |
extends J2EEApplication, J2EEManagedObjectMBean
package org.jboss.management.j2ee;
import javax.management.j2ee.J2EEApplication;
/**
* @author <a href="mailto:andreas@jboss.org">Andreas Schaefer</a>
**/
public interface J2EEApplicationMBean
extends J2EEApplication
{
} | extends J2EEApplication, J2EEManagedObjectMBean
package org.jboss.management.j2ee;
import javax.management.j2ee.J2EEApplication;
/**
* @author <a href="mailto:andreas@jboss.org">Andreas Schaefer</a>
**/
public interface J2EEApplicationMBean
extends J2EEApplication, J2EEManagedObjectMBean
{
} |
public static Record []
getRecords(String namestr, int type, int dclass, byte cred) {
try {
Lookup lookup = new Lookup(namestr, type, dclass);
lookup.setCredibility(cred);
return lookup.run();
} catch (Exception e) {
return null;
}
}
| public static Record []
getRecords(String namestr, int type, int dclass, int cred) {
try {
Lookup lookup = new Lookup(namestr, type, dclass);
lookup.setCredibility(cred);
return lookup.run();
} catch (Exception e) {
return null;
}
}
|
public String toString() {
return "Source classpath directory " + sourceFolder.getFullPath().toString() + //$NON-NLS-1$
" with binary directory " + binaryFolder.getFullPath().toString(); //$NON-NLS-1$
}
| public String toString() {
return "Source classpath directory " + sourceFolder.getFullPath().toString() + //$NON-NLS-1$
" with binary output directory " + binaryFolder.getFullPath().toString(); //$NON-NLS-1$
}
|
public void start()
throws Exception
{
ContainerInvokerContainer invokerContainer = (ContainerInvokerContainer) container;
if( invokerContainer.getLocalClass() == null )
return;
Context iniCtx = new InitialContext();
jndiName = container.getBeanMetaData().getJndiName();
... | public void start()
throws Exception
{
ContainerInvokerContainer invokerContainer = (ContainerInvokerContainer) container;
if( invokerContainer.getLocalClass() == null )
return;
Context iniCtx = new InitialContext();
jndiName = container.getBeanMetaData().getJndiName();
... |
public String
toString() {
StringBuffer sb = new StringBuffer();
if (labels == 0)
sb.append(".");
for (int i = offset; i < labels + offset; i++) {
if (name[i] instanceof BitString)
sb.append(name[i]);
else
sb.append(byteString((byte [])name[i]));
if (qualified || i < labels - 1)
sb.append(".");
}
... | public String
toString() {
StringBuffer sb = new StringBuffer();
if (labels == 0)
sb.append(".");
for (int i = offset; i < labels + offset; i++) {
if (name[i] instanceof BitString)
sb.append(name[i]);
else
sb.append(byteString((byte [])name[i]));
if (qualified || i < labels)
sb.append(".");
}
retu... |
public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r =
(FolderCommandReference[]) frameController
.getSelectionManager()
.getSelection(
"mail.tree");
ExpungeFolderCommand c = new ExpungeFolderCommand(r);
MainInterface.processor.addOp(c);
}
| public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r =
(FolderCommandReference[]) frameMediator
.getSelectionManager()
.getSelection(
"mail.tree");
ExpungeFolderCommand c = new ExpungeFolderCommand(r);
MainInterface.processor.addOp(c);
}
|
protected Object createMethodReference(Object receiver, List arguments) throws InvalidInputException {
try {
// Create method ref
MethodRef methodRef = this.ast.newMethodRef();
SimpleName methodName = this.ast.newSimpleName(new String(this.identifierStack[0]));
methodRef.setName(methodName);
int start... | protected Object createMethodReference(Object receiver, List arguments) throws InvalidInputException {
try {
// Create method ref
MethodRef methodRef = this.ast.newMethodRef();
SimpleName methodName = this.ast.newSimpleName(new String(this.identifierStack[0]));
methodRef.setName(methodName);
int start... |
public void resolve(BlockScope scope) {
MethodScope methodScope = scope.methodScope();
MethodBinding methodBinding;
TypeBinding methodType =
(methodScope.referenceContext instanceof AbstractMethodDeclaration)
? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == nul... | public void resolve(BlockScope scope) {
MethodScope methodScope = scope.methodScope();
MethodBinding methodBinding;
TypeBinding methodType =
(methodScope.referenceContext instanceof AbstractMethodDeclaration)
? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == nul... |
public class CompatibleWorkbenchPage implements ICompatibleWorkbenchPage {
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the... | public class CompatibleWorkbenchPage implements ICompatibleWorkbenchPage {
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the... |
public InputStream getContents() throws CoreException {
try {
if (JavaModelManager.ZIP_ACCESS_VERBOSE) {
System.out.println("[JavaModelJarEntryFile.getContents()] Creating ZipFile on " + this.zipName); //$NON-NLS-1$
}
ZipFile zipFile = new ZipFile(this.zipName);
ZipEntry zipEntry = zipFile.getEntry(this.... | public InputStream getContents() throws CoreException {
try {
if (JavaModelManager.ZIP_ACCESS_VERBOSE) {
System.out.println("(" + Thread.currentThread() + ") [JarEntryFile.getContents()] Creating ZipFile on " + this.zipName); //$NON-NLS-1$ //$NON-NLS-2$
}
ZipFile zipFile = new ZipFile(this.zipName);
ZipEn... |
public Message
send(Message query) {
int q, r;
Message nx = null;
byte rcode;
for (q = 0; q < 20; q++) {
boolean ok = false;
for (r = 0; r < resolvers.length; r++)
ok |= sendTo(query, r, q);
if (!ok)
return null;
Message m = null;
synchronized (queue) {
try {
queue.wait((quantum+1) * 1000);
... | public Message
send(Message query) {
int q, r;
Message nx = null;
byte rcode;
for (q = 0; q < 20; q++) {
boolean ok = false;
for (r = 0; r < resolvers.length; r++)
ok |= sendTo(query, r, q);
if (!ok)
break;
Message m = null;
synchronized (queue) {
try {
queue.wait((quantum+1) * 1000);
}
... |
public void setAttribute(FigureAttributeConstant attributeConstant, Object value) {
if (attributeConstant.equals(FigureAttributeConstant.FRAME_COLOR)) {
setFrameColor((Color)value);
changed();
}
else if (attributeConstant.equals(FigureAttributeConstant.ARROW_MODE.getName())) {
Integer intObj = (Integer)... | public void setAttribute(FigureAttributeConstant attributeConstant, Object value) {
if (attributeConstant.equals(FigureAttributeConstant.FRAME_COLOR)) {
setFrameColor((Color)value);
changed();
}
else if (attributeConstant.equals(FigureAttributeConstant.ARROW_MODE)) {
Integer intObj = (Integer)value;
... |
public interface IKeyBindingDefinition extends Comparable {
/*******************************************************************************
* 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 P... | public interface IKeyBindingDefinition extends Comparable {
/*******************************************************************************
* 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 P... |
public void traverse(ASTVisitor visitor, BlockScope scope) {
if (visitor.visit(this, scope)) {
if (enclosingInstance != null)
enclosingInstance.traverse(visitor, scope);
if (this.typeArguments != null) {
for (int i = 0, typeArgumentsLength = this.typeArguments.length; i < typeArgumentsLength; i++) {
... | public void traverse(ASTVisitor visitor, BlockScope scope) {
if (visitor.visit(this, scope)) {
if (enclosingInstance != null)
enclosingInstance.traverse(visitor, scope);
if (this.typeArguments != null) {
for (int i = 0, typeArgumentsLength = this.typeArguments.length; i < typeArgumentsLength; i++) {
... |
protected void performDefaults() {
IPreferenceStore store = getPreferenceStore();
IPreferenceStore apiStore = PrefUtil.getAPIPreferenceStore();
showTextOnPerspectiveBar
.setSelection(apiStore
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TEXT_... | protected void performDefaults() {
IPreferenceStore store = getPreferenceStore();
IPreferenceStore apiStore = PrefUtil.getAPIPreferenceStore();
showTextOnPerspectiveBar
.setSelection(apiStore
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TEXT_... |
public String getHeader() {
StringBuffer sbuf = new StringBuffer();
sbuf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"");
sbuf.append(" \"http://www.w3.org/TR/html4/loose.dtd\">");
sbuf.append(Layout.LINE_SEP);
sbuf.append("<html>");
sbuf.append(Layout.LINE_SEP);
... | public String getHeader() {
StringBuffer sbuf = new StringBuffer();
sbuf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"");
sbuf.append(" \"http://www.w3.org/TR/html4/loose.dtd\">");
sbuf.append(Layout.LINE_SEP);
sbuf.append("<html>");
sbuf.append(Layout.LINE_SEP);
... |
public void sendEmail( TemplateContext context, Issue issue,
String subject, String template )
throws Exception
{
TemplateEmail te = new TemplateEmail();
if ( context == null )
{
context = new DefaultTemplateContext();
}
... | public void sendEmail( TemplateContext context, Issue issue,
String subject, String template )
throws Exception
{
TemplateEmail te = new TemplateEmail();
if ( context == null )
{
context = new DefaultTemplateContext();
}
... |
public boolean visit(
CompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope) {
/*
* Package declaration
*/
if (compilationUnitDeclaration.currentPackage != null) {
// OPTION
// dump the package keyword
int blankLinesBeforePackage = this.preferences.blank_lines_bef... | public boolean visit(
CompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope) {
/*
* Package declaration
*/
if (compilationUnitDeclaration.currentPackage != null) {
// OPTION
// dump the package keyword
int blankLinesBeforePackage = this.preferences.blank_lines_bef... |
private OverlayCache overlayCache = new OverlayCache();
LightweightDecoratorManager(LightweightDecoratorDefinition[] definitions) {
super();
lightweightDefinitions = definitions;
}
/**
* Get the lightweight definitions for the receiver.
* @return LightweightDecoratorDefinition[]
*/
LightweightDecorator... | private OverlayCache overlayCache = new OverlayCache();
LightweightDecoratorManager(LightweightDecoratorDefinition[] definitions) {
super();
lightweightDefinitions = definitions;
}
/**
* Get the lightweight definitions for the receiver.
* @return LightweightDecoratorDefinition[]
*/
LightweightDecorator... |
public StringBuffer print(int tab, StringBuffer output) {
printIndent(tab, output);
printModifiers(this.modifiers, output);
if (this.annotations != null) printAnnotations(this.annotations, output);
TypeParameter[] typeParams = typeParameters();
if (typeParams != null) {
output.append('<');//$NON-NLS-1... | public StringBuffer print(int tab, StringBuffer output) {
printIndent(tab, output);
printModifiers(this.modifiers, output);
if (this.annotations != null) printAnnotations(this.annotations, output);
TypeParameter[] typeParams = typeParameters();
if (typeParams != null) {
output.append('<');
int max ... |
public void actionPerformed(ActionEvent e) {
if (e.getSource() == _addButton) {
Designer dsgr = Designer.TheDesigner;
String head = _headline.getText();
int pri = ToDoItem.HIGH_PRIORITY;
switch (_priority.getSelectedIndex()) {
case 0: pri = ToDoItem.HIGH_PRIORITY; break;
case 1... | public void actionPerformed(ActionEvent e) {
if (e.getSource() == _addButton) {
Designer dsgr = Designer.TheDesigner;
String head = _headline.getText();
int pri = ToDoItem.HIGH_PRIORITY;
switch (_priority.getSelectedIndex()) {
case 0: pri = ToDoItem.HIGH_PRIORITY; break;
case 1... |
public IEditorPart openEditor(final IEditorInput input,
final String editorID, final boolean activate, final int matchFlags)
throws PartInitException;
| public IEditorPart openEditor(final IEditorInput input,
final String editorId, final boolean activate, final int matchFlags)
throws PartInitException;
|
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
flowInfo = testExpression.analyseCode(currentScope, flowContext, flowInfo);
SwitchFlowContext switchContext =
new SwitchFlowContext(flowContext, this, (breakLabel = new Label()));
// analyse the block by... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
flowInfo = testExpression.analyseCode(currentScope, flowContext, flowInfo);
SwitchFlowContext switchContext =
new SwitchFlowContext(flowContext, this, (breakLabel = new Label()));
// analyse the block by... |
public double
getVPrecision() {
return (double)vPrecision / 100;
}
void
rrToWire(DataByteOutputStream out, Compression c) {
if (latitude == 0 && longitude == 0 && altitude == 0)
return;
out.writeByte(0); /* version */
out.writeByte(toLOCformat(size));
out.writeByte(toLOCformat(hPrecision));
out.write... | public double
getVPrecision() {
return (double)vPrecision / 100;
}
void
rrToWire(DataByteOutputStream out, Compression c, boolean canonical) {
if (latitude == 0 && longitude == 0 && altitude == 0)
return;
out.writeByte(0); /* version */
out.writeByte(toLOCformat(size));
out.writeByte(toLOCformat(hPrec... |
extends org.tigris.scarab.om.BaseIssuePeer
package org.tigris.scarab.om;
// JDK classes
import java.util.*;
// Village classes
import com.workingdogs.village.*;
// Turbine classes
import org.apache.turbine.om.peer.*;
import org.apache.turbine.util.*;
import org.apache.turbine.util.db.*;
import org.apache.turbine.ut... | extends org.tigris.scarab.om.BaseIssuePeer
package org.tigris.scarab.om;
// JDK classes
import java.util.*;
// Village classes
import com.workingdogs.village.*;
// Turbine classes
import org.apache.turbine.om.peer.*;
import org.apache.turbine.util.*;
import org.apache.turbine.util.db.*;
import org.apache.turbine.ut... |
public TypeBinding resolveForCatch(BlockScope scope) {
// resolution on an argument of a catch clause
// provide the scope with a side effect : insertion of a LOCAL
// that represents the argument. The type must be from JavaThrowable
TypeBinding exceptionType = this.type.resolveType(scope, true /* check boun... | public TypeBinding resolveForCatch(BlockScope scope) {
// resolution on an argument of a catch clause
// provide the scope with a side effect : insertion of a LOCAL
// that represents the argument. The type must be from JavaThrowable
TypeBinding exceptionType = this.type.resolveType(scope, true /* check boun... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
// generate receiver/enclosing instance access
boolean isStatic = binding.isStatic();
// outer access ?
if (!isStatic && ((bits & DepthMASK) != 0)){
// outer method can be reached thr... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
// generate receiver/enclosing instance access
boolean isStatic = binding.isStatic();
// outer access ?
if (!isStatic && ((bits & DepthMASK) != 0)){
// outer method can be reached thr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.