buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public final boolean contains(final Component component, final boolean recurse)
{
if (recurse)
{
// Start at component and continue while we're not out of parents
for (Component current = component; current != null;)
{
// Get parent
MarkupContainer parent = component.getParent();
// If this ... | public final boolean contains(final Component component, final boolean recurse)
{
if (recurse)
{
// Start at component and continue while we're not out of parents
for (Component current = component; current != null;)
{
// Get parent
final MarkupContainer parent = current.getParent();
// If t... |
public final void execute() throws BuildException {
//validation
if (src == null) {
throw new BuildException("A source resource is required.");
}
if (!src.isExists()) {
if (src instanceof JavaResource) {
// dreaded backwards compatibility
... | public final void execute() throws BuildException {
//validation
if (src == null) {
throw new BuildException("A source resource is required.");
}
if (!src.isExists()) {
if (src instanceof JavaResource) {
// dreaded backwards compatibility
... |
public static Session get()
{
final Session session = (Session)current.get();
if (session == null)
{
throw new WicketRuntimeException("there is not session attached to current thread "
+ Thread.currentThread().getName());
}
return session;
}
| public static Session get()
{
final Session session = (Session)current.get();
if (session == null)
{
throw new WicketRuntimeException("there is no session attached to current thread "
+ Thread.currentThread().getName());
}
return session;
}
|
public void setTitle( final String src )
{
final Html h = new Html();
h.addText( src );
addTitle( h );
}
| public void setTitle( final String src )
{
final Html h = new Html();
h.addContent( src );
addTitle( h );
}
|
public void addText( final String text )
{
m_text.append( text );
}
} | public void addContent( final String text )
{
m_text.append( text );
}
} |
private void fixAnnotationsForResolvedMember(ResolvedMember rm,ResolvedMember declaredSig) {
try {
TypeX memberHostType = declaredSig.getDeclaringType();
ResolvedTypeX[] annotations = (ResolvedTypeX[])mapToAnnotations.get(rm);
String methodName = declaredSig.getName();
// FIXME asc shouldnt really rely on s... | private void fixAnnotationsForResolvedMember(ResolvedMember rm,ResolvedMember declaredSig) {
try {
TypeX memberHostType = declaredSig.getDeclaringType();
ResolvedTypeX[] annotations = (ResolvedTypeX[])mapToAnnotations.get(rm);
String methodName = declaredSig.getName();
// FIXME asc shouldnt really rely on s... |
public String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
String ret = getVariables().get(name);
if(ret == null)
{
return "${"+name+"}";
}
return ret;
}
| public String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
String ret = getVariables().get(name);
if(ret == null || ret.length() == 0)
{
return "${"+name+"}";
}
return ret;
}
|
public void setVisible (boolean visible) {
checkWidget();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
if ((style & mask) != 0) {
if (visible) {
display.setModalShell (this);
} else {
display.clearModal (this);
}
} else {
updateModal ();
}
if (window == null) {
super.se... | public void setVisible (boolean visible) {
checkWidget();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
if ((style & mask) != 0) {
if (visible) {
display.setModalShell (this);
} else {
display.clearModal (this);
}
} else {
updateModal ();
}
if (window == null) {
super.se... |
public void addArc(float x, float y, float width, float height, float startAngle, float arcAngle) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (width < 0) {
x = x + width;
width = -width;
}
if (height < 0) {
y = y + height;
height = -height;
}
if (width == 0 || height == 0 || arcAngle == ... | public void addArc(float x, float y, float width, float height, float startAngle, float arcAngle) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (width < 0) {
x = x + width;
width = -width;
}
if (height < 0) {
y = y + height;
height = -height;
}
if (width == 0 || height == 0 || arcAngle == ... |
public void reset() {
super.reset();
// DOM Filter
if (fSkippedElemStack!=null) {
fSkippedElemStack.clear();
}
fRejectedElement.clear();
fFilterReject = false;
} // reset()
| public void reset() {
super.reset();
// DOM Filter
if (fSkippedElemStack!=null) {
fSkippedElemStack.removeAllElements();
}
fRejectedElement.clear();
fFilterReject = false;
} // reset()
|
private Collection findApplicableElements(JMeterTreeNode myTarget, Class myClass, boolean ascending) {
JMeterTreeModel treeModel = GuiPackage.getInstance().getTreeModel();
LinkedList elements = new LinkedList();
// Look for elements directly within the HTTP proxy:
Enumeration kids = treeModel.getNodeOf(this).... | private Collection findApplicableElements(JMeterTreeNode myTarget, Class myClass, boolean ascending) {
JMeterTreeModel treeModel = GuiPackage.getInstance().getTreeModel();
LinkedList elements = new LinkedList();
// Look for elements directly within the HTTP proxy:
Enumeration kids = treeModel.getNodeOf(this).... |
public boolean open () {
checkWidget ();
cancelled = false;
tracking = true;
/*
* If exactly one of UP/DOWN is specified as a style then set the cursor
* orientation accordingly (the same is done for LEFT/RIGHT styles below).
*/
int vStyle = style & (SWT.UP | SWT.DOWN);
if (vStyle == SWT.UP || vStyle == SWT.D... | public boolean open () {
checkWidget ();
cancelled = false;
tracking = true;
/*
* If exactly one of UP/DOWN is specified as a style then set the cursor
* orientation accordingly (the same is done for LEFT/RIGHT styles below).
*/
int vStyle = style & (SWT.UP | SWT.DOWN);
if (vStyle == SWT.UP || vStyle == SWT.D... |
public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-all");
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
| public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-all",null);
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
|
public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-disable");
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
| public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-disable", null);
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
|
public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-empty");
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
| public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-empty", null);
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
|
public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-enable");
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
| public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-enable", null);
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
|
public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-none");
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
| public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-none",null);
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
|
public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-unspecified");
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
| public OpenJPAEntityManagerFactorySPI getEntityManagerFactory() {
if (emf == null) {
emf = createEntityManagerFactory("cache-mode-unspecified", null);
assertNotNull(emf);
cache = emf.getCache();
assertNotNull(cache);
}
return emf;
}
|
public ResultSet executeQuery(Connection conn, PreparedStatement stmnt,
FinderQueryImpl finder, JDBCStore store, Object[] params)
throws SQLException {
return stmnt.executeQuery();
}
| public ResultSet executeQuery(Connection conn, PreparedStatement stmnt,
String sql, JDBCStore store, Object[] params)
throws SQLException {
return stmnt.executeQuery();
}
|
private QueryKey toQueryKey(Query q) {
QueryImpl impl = (QueryImpl) q;
if (impl.hasPositionalParameters())
return QueryKey.newInstance(impl.getDelegate(),
impl.getPositionalParameters());
return QueryKey.newInstance(impl.getDelegate(),
impl.getNamedPar... | private QueryKey toQueryKey(Query q) {
QueryImpl impl = (QueryImpl) q;
if (impl.hasPositionalParameters())
return QueryKey.newInstance(impl.getDelegate(),
impl.getPositionalParameters().toArray());
return QueryKey.newInstance(impl.getDelegate(),
impl.g... |
public void configure(TestElement element)
{
super.configure(element);
urlConfigGui.configure(element);
String testClass = element.getPropertyAsString(TestElement.TEST_CLASS);
getImages.setSelected(((HTTPSampler) element).isImageParser());
}
| public void configure(TestElement element)
{
super.configure(element);
urlConfigGui.configure(element);
//NOTUSED String testClass = element.getPropertyAsString(TestElement.TEST_CLASS);
getImages.setSelected(((HTTPSampler) element).isImageParser());
}
|
public void run()
{
HttpRequestHdr request = new HttpRequestHdr();
byte[] serverResponse = new byte[0];
HeaderManager headers = new HeaderManager();
HTTPSampler sampler = new HTTPSampler();
try
{
byte[] clientRequest =
request.parse(
... | public void run()
{
HttpRequestHdr request = new HttpRequestHdr();
byte[] serverResponse = new byte[0];
HeaderManager headers = new HeaderManager();
HTTPSampler sampler = new HTTPSampler();
try
{
byte[] clientRequest = //TODO: var not used, but call ma... |
public Object[] getSOAPBindings()
{
ArrayList list = new ArrayList();
NodeList bindings = WSDLDOC.getElementsByTagName("binding");
for (int idx = 0; idx < bindings.getLength(); idx++)
{
Element nd = (Element) bindings.item(idx);
NodeList slist = nd.getElem... | public Object[] getSOAPBindings()
{
ArrayList list = new ArrayList();
NodeList bindings = WSDLDOC.getElementsByTagName("binding");
for (int idx = 0; idx < bindings.getLength(); idx++)
{
Element nd = (Element) bindings.item(idx);
NodeList slist = nd.getElem... |
protected ResourceResponse newResourceResponse(Attributes attributes)
{
ResourceResponse res = new ResourceResponse();
res.setErrorCode(HttpServletResponse.SC_NOT_FOUND);
return res;
}
};
}
else if (ref != this)
{
return ref.getResource();
}
else
{
throw new IllegalStateE... | protected ResourceResponse newResourceResponse(Attributes attributes)
{
ResourceResponse res = new ResourceResponse();
res.setError(HttpServletResponse.SC_NOT_FOUND);
return res;
}
};
}
else if (ref != this)
{
return ref.getResource();
}
else
{
throw new IllegalStateExcep... |
protected static void logAndThrow(String s, Throwable t)
throws IDCreateException {
IDCreateException e = null;
if (t != null) {
e = new IDCreateException(s + ": " + t.getClass().getName() + ": "
+ t.getMessage());
e.setStackTrace(t.getStackTrace());
} else {
e = new IDCreateException(s);
}
... | protected static void logAndThrow(String s, Throwable t)
throws IDCreateException {
IDCreateException e = null;
if (t != null) {
e = new IDCreateException(s + ": " + t.getClass().getName() + ": "
+ t.getMessage());
e.setStackTrace(t.getStackTrace());
} else {
e = new IDCreateException(s);
}
... |
public static final List LOCALES = Arrays.asList(new Locale[] { Locale.ENGLISH,
new Locale("nl", "NL"), Locale.GERMAN, Locale.SIMPLIFIED_CHINESE, Locale.JAPANESE,
new Locale("pt", "BR"), new Locale("fa", "IR"), new Locale("da", "DK"),
new Locale("th", "TH"), new Locale("ru") });
| public static final List LOCALES = Arrays.asList(new Locale[] { Locale.ENGLISH,
new Locale("nl", "NL"), Locale.GERMAN, Locale.SIMPLIFIED_CHINESE, Locale.JAPANESE,
new Locale("pt", "BR"), new Locale("fa", "IR"), new Locale("da", "DK"),
new Locale("th", "TH"), new Locale("ru"), new Locale("ko", "KR") });
|
public void writeFields(WicketObjectOutputStream woos, Object obj)
{
try
{
for (int i = 0; i < fields.size(); i++)
{
FieldAndIndex fai = (FieldAndIndex)fields.get(i);
Field field = fai.field;
Object value = field.get(obj);
if (value instanceof Boolean)
{
woos.getOutputStream().write... | public void writeFields(WicketObjectOutputStream woos, Object obj)
{
try
{
for (int i = 0; i < fields.size(); i++)
{
FieldAndIndex fai = (FieldAndIndex)fields.get(i);
Field field = fai.field;
Object value = field.get(obj);
if (value instanceof Boolean)
{
woos.getOutputStream().write... |
private void verifyDebugString(ResolvedMember theMember, String string) {
assertTrue("Expected '"+string+"' but found "+theMember.toDebugString(),
theMember.toDebugString().equals(string));
}
public static JavaClass getClassFromDisk(Ajc ajc,String classname) {
try {
ClassPath cp =
new ClassPath(ajc.ge... | private void verifyDebugString(ResolvedMember theMember, String string) {
assertTrue("Expected '"+string+"' but found "+theMember.toDebugString(),
theMember.toDebugString().equals(string));
}
public static JavaClass getClassFromDisk(Ajc ajc,String classname) {
try {
ClassPath cp =
new ClassPath(ajc.ge... |
private void checkWeave(
String label,
String filename,
String pointcutSource,
String[] formalTypes,
String[] formalNames)
throws IOException
{
final Pointcut sp = Pointcut.fromString(pointcutSource);
final Pointcut rp =
sp.resolve(
... | private void checkWeave(
String label,
String filename,
String pointcutSource,
String[] formalTypes,
String[] formalNames)
throws IOException
{
final Pointcut sp = Pointcut.fromString(pointcutSource);
final Pointcut rp =
sp.resolve(
... |
public int /*long*/ SetDialog(int /*long*/ aDialog) {
return XPCOM.NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIWebProgressListener */
int /*long*/ OnLocationChange(int /*long*/ aWebProgress, int /*long*/ aRequest, int /*long*/ aLocation) {
return XPCOM.NS_OK;
}
int /*long*/ OnProgressChange(int /*long*/ aWebProgress, int /*... | public int /*long*/ SetDialog(int /*long*/ aDialog) {
return XPCOM.NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIWebProgressListener */
int /*long*/ OnLocationChange(int /*long*/ aWebProgress, int /*long*/ aRequest, int /*long*/ aLocation) {
return XPCOM.NS_OK;
}
int /*long*/ OnProgressChange(int /*long*/ aWebProgress, int /*... |
protected void setUp() throws Exception
{
super.setUp();
application.getPageSettings().addComponentResolver(new ScopedComponentResolver());
}
| protected void setUp() throws Exception
{
super.setUp();
application.getApplication().getPageSettings().addComponentResolver(new ScopedComponentResolver());
}
|
public void testRenderHomePage_12() throws Exception
{
executeTest(HeaderSectionPage_12.class, "HeaderSectionPageExpectedResult_12.html");
PackageResource res = (PackageResource) application.getSharedResources().get("wicket.markup.parser.filter.sub.HeaderSectionBorder/cborder.css");
assertNotNull(res);... | public void testRenderHomePage_12() throws Exception
{
executeTest(HeaderSectionPage_12.class, "HeaderSectionPageExpectedResult_12.html");
PackageResource res = (PackageResource) application.getApplication().getSharedResources().get("wicket.markup.parser.filter.sub.HeaderSectionBorder/cborder.css");
as... |
protected boolean isAuthorized()
{
return false;
}
};
tester.getSecuritySettings().setAuthorizationStrategy(authorizationStrategy);
tester.startPage(RedirectPage.class);
tester.assertRenderedPage(LoginPage.class);
}
| protected boolean isAuthorized()
{
return false;
}
};
tester.getApplication().getSecuritySettings().setAuthorizationStrategy(authorizationStrategy);
tester.startPage(RedirectPage.class);
tester.assertRenderedPage(LoginPage.class);
}
|
private void respondHeaderContribution(final Response response, final Component component)
{
Response encodingResponse = new StringResponse();
try
{
final IHeaderResponse headerResponse = new AjaxHeaderResponse(encodingResponse);
RequestCycle.get().setResponse(headerResponse.getResponse());
component.... | private void respondHeaderContribution(final Response response, final Component component)
{
Response encodingResponse = new StringResponse();
try
{
final IHeaderResponse headerResponse = new AjaxHeaderResponse(encodingResponse);
RequestCycle.get().setResponse(headerResponse.getResponse());
component.... |
protected final void renderHeaderSections(final Page page)
{
page.renderHead(new HeaderResponse(getResponse()));
}
| protected final void renderHeaderSections(final Page page)
{
page.internalRenderHead(new HeaderResponse(getResponse()));
}
|
public boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) {
if (isPublic()) return true;
SourceTypeBinding invocationType = scope.enclosingSourceType();
if (invocationType == declaringClass && invocationType == receiverType) return true;
if (isProtected()) {
// answer true... | public boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) {
if (isPublic()) return true;
SourceTypeBinding invocationType = scope.invocationType(); //enclosingSourceType();
if (invocationType == declaringClass && invocationType == receiverType) return true;
if (isProtected()... |
private Integer propertyOrder(PropertyDescriptor d) {
Integer order = (Integer) d.getValue(ORDER);
if (order == null)
order = new Integer(0);
return order;
}
}
/**
* Save values from the GUI fields into the property map
*/
void saveGuiFields() {
for (int i = 0; i < editors.length; i++) {
P... | private Integer propertyOrder(PropertyDescriptor d) {
Integer order = (Integer) d.getValue(ORDER);
if (order == null)
order = new Integer(0);
return order;
}
}
/**
* Save values from the GUI fields into the property map
*/
void saveGuiFields() {
for (int i = 0; i < editors.length; i++) {
P... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0;
if (wHint == SWT.DEFAULT) {
GC gc = new GC (this);
for (int i=0; i<itemCount; i++) {
Point extent = gc.stringExtent (items [i]);
width = Math.max (width, extent.x);
}
gc.dispose ();
// width += EXTRA_WIDTH... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0;
if (wHint == SWT.DEFAULT) {
GC gc = new GC (this);
for (int i=0; i<itemCount; i++) {
Point extent = gc.stringExtent (items [i]);
width = Math.max (width, extent.x);
}
gc.dispose ();
// width += EXTRA_WIDTH... |
public void addMenuListener (MenuListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Hide,typedListener);
addListener (SWT.Show,typedListener);
}
void createHandle () {
display.addMenu (this);
SW... | public void addMenuListener (MenuListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Hide,typedListener);
addListener (SWT.Show,typedListener);
}
void createHandle () {
display.addMenu (this);
NS... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
NSProgressIndicator widget = (NSProgressIndicator)view;
NSRect oldRect = widget.frame();
widget.sizeToFit();
NSRect newRect = widget.frame();
widget.setFrame (oldRect);
int size = (int)newRect.height;
int width = 0, height = 0;
i... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
NSProgressIndicator widget = (NSProgressIndicator)view;
NSRect oldRect = widget.frame();
widget.sizeToFit();
NSRect newRect = widget.frame();
widget.setFrame (oldRect);
int size = (int)newRect.height;
int width = 0, height = 0;
i... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0, height = 0;
if ((style & SWT.HORIZONTAL) != 0) {
width += DEFAULT_WIDTH; height += 5;
} else {
width += 5; height += DEFAULT_HEIGHT;
}
if (wHint != SWT.DEFAULT) width = wHint;
if (hHint != SWT.DEFAULT) height = ... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0, height = 0;
if ((style & SWT.HORIZONTAL) != 0) {
width += DEFAULT_WIDTH; height += 5;
} else {
width += 5; height += DEFAULT_HEIGHT;
}
if (wHint != SWT.DEFAULT) width = wHint;
if (hHint != SWT.DEFAULT) height = ... |
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
if (scrollView != null) {
NSSize size = new NSSize();
size.width = width;
size.height = height;
int border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder;
size = NSScrollView.frameSizeForContentSize(size, (style & SWT.H_SC... | public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
if (scrollView != null) {
NSSize size = new NSSize();
size.width = width;
size.height = height;
int border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder;
size = NSScrollView.frameSizeForContentSize(size, (style & SWT.H_SC... |
public void copy () {
checkWidget ();
// short [] selection = new short [2];
// if (OS.GetControlData (textHandle, (short)OS.kControlEntireControl, OS.kControlEditTextSelectionTag, 4, selection, null) != OS.noErr) return;
// if (selection [0] == selection [1]) return;
// int [] actualSize = new int [1];
// int [] ptr ... | public void copy () {
checkWidget ();
// short [] selection = new short [2];
// if (OS.GetControlData (textHandle, (short)OS.kControlEntireControl, OS.kControlEditTextSelectionTag, 4, selection, null) != OS.noErr) return;
// if (selection [0] == selection [1]) return;
// int [] actualSize = new int [1];
// int [] ptr ... |
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget ();
// CGRect oldBounds = new CGRect (), bounds = oldBounds;
// OS.HIViewGetFrame (handle, oldBounds);
// int MIN_SIZE = 100;
// if (oldBounds.width < MIN_SIZE || oldBounds.height < MIN_SIZE) {
// OS.HIViewSetDrawingEnabled (handle, fals... | public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget ();
// CGRect oldBounds = new CGRect (), bounds = oldBounds;
// OS.HIViewGetFrame (handle, oldBounds);
// int MIN_SIZE = 100;
// if (oldBounds.width < MIN_SIZE || oldBounds.height < MIN_SIZE) {
// OS.HIViewSetDrawingEnabled (handle, fals... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0;
if (wHint == SWT.DEFAULT) {
if (columnCount != 0) {
for (int i=0; i<columnCount; i++) {
width += columns [i].getWidth ();
}
} else {
int columnWidth = 0;
GC gc = new GC (this);
for (int i=0; i<item... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0;
if (wHint == SWT.DEFAULT) {
if (columnCount != 0) {
for (int i=0; i<columnCount; i++) {
width += columns [i].getWidth ();
}
} else {
int columnWidth = 0;
GC gc = new GC (this);
for (int i=0; i<item... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = wHint, height = hHint;
if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF;
if (hHint == SWT.DEFAULT) height = 0x7FFFFFFF;
int [] result = layout (width, height, false);
Point extent = new Point (result [1], result [2]);
if (w... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = wHint, height = hHint;
if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF;
if (hHint == SWT.DEFAULT) height = 0x7FFFFFFF;
int [] result = layout (width, height, false);
Point extent = new Point (result [1], result [2]);
if (w... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
int width = 0, height = 0;
if (wHint == SWT.DEFAULT) {
if (columnCount != 0) {
for (int i=0; i<columnCount; i++) {
width += columns [i].getWidth ();
}
} else {
// int levelIndent = DISCLOSURE_COLUMN_LEVEL_INDENT;
// ... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
int width = 0, height = 0;
if (wHint == SWT.DEFAULT) {
if (columnCount != 0) {
for (int i=0; i<columnCount; i++) {
width += columns [i].getWidth ();
}
} else {
// int levelIndent = DISCLOSURE_COLUMN_LEVEL_INDENT;
// ... |
private void processLine (String line) {
line = stripComment (line);
line = line.trim ();
if (line.isEmpty())
return;
_result.add (line);
}
| private void processLine (String line) {
line = stripComment (line);
line = line.trim ();
if (line.length() == 0)
return;
_result.add (line);
}
|
public void setWrapIndices (int [] indices) {
checkWidget ();
if (indices == null) indices = new int [0];
int count = getItemCount ();
for (int i=0; i<indices.length; i++) {
if (indices [i] < 0 || indices [i] >= count) {
error (SWT.ERROR_INVALID_RANGE);
}
}
setRedraw (false);
CoolItem [] items = getItems... | public void setWrapIndices (int [] indices) {
checkWidget ();
if (indices == null) indices = new int [0];
int count = getItemCount ();
for (int i=0; i<indices.length; i++) {
if (indices [i] < 0 || indices [i] >= count) {
error (SWT.ERROR_INVALID_RANGE);
}
}
setRedraw (false);
CoolItem [] items = getItems... |
public void setVisible (boolean visible) {
checkWidget();
if (visible == getVisible ()) return;
/*
* On Windows CE, use SIF_DISABLENOSCROLL to show and
* hide the scroll bar when the page size is equal to
* the range.
*/
if (OS.IsWinCE) {
SCROLLINFO info = new SCROLLINFO ();
info.cbSize = SCROLLINFO.sizeo... | public void setVisible (boolean visible) {
checkWidget();
if (visible == getVisible ()) return;
/*
* On Windows CE, use SIF_DISABLENOSCROLL to show and
* hide the scroll bar when the page size is equal to
* the range.
*/
if (OS.IsWinCE) {
SCROLLINFO info = new SCROLLINFO ();
info.cbSize = SCROLLINFO.sizeo... |
public void setVisible (boolean visible) {
checkWidget ();
/*
* Feature in Windows. When ShowWindow() is called used to hide
* a window, Windows attempts to give focus to the parent. If the
* parent is disabled by EnableWindow(), focus is assigned to
* another windows on the desktop. This means that if you hide... | public void setVisible (boolean visible) {
checkWidget ();
/*
* Feature in Windows. When ShowWindow() is called used to hide
* a window, Windows attempts to give focus to the parent. If the
* parent is disabled by EnableWindow(), focus is assigned to
* another windows on the desktop. This means that if you hide... |
public void setValues (int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement) {
checkWidget ();
if (minimum < 0) return;
if (maximum < 0) return;
if (thumb < 1) return;
if (increment < 1) return;
if (pageIncrement < 1) return;
this.increment = increment;
this.pageIncrement = pageI... | public void setValues (int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement) {
checkWidget ();
if (minimum < 0) return;
if (maximum < 0) return;
if (thumb < 1) return;
if (increment < 1) return;
if (pageIncrement < 1) return;
this.increment = increment;
this.pageIncrement = pageI... |
public void setChecked (boolean checked) {
checkWidget();
if ((parent.style & SWT.CHECK) == 0) return;
if (this.checked == checked) return;
setChecked (checked, false);
}
void setChecked (boolean checked, boolean notify) {
this.checked = checked;
if ((parent.style & SWT.VIRTUAL) != 0) cached = true;
if (notify)... | public void setChecked (boolean checked) {
checkWidget();
if ((parent.style & SWT.CHECK) == 0) return;
if (this.checked == checked) return;
setChecked (checked, false);
}
void setChecked (boolean checked, boolean notify) {
this.checked = checked;
if ((parent.style & SWT.VIRTUAL) != 0) cached = true;
if (notify)... |
public void showSelection () {
checkWidget ();
OS.SendMessage (handle, OS.EM_SCROLLCARET, 0, 0);
}
String verifyText (String string, int start, int end, Event keyEvent) {
if (ignoreVerify) return string;
Event event = new Event ();
event.text = string;
event.start = start;
event.end = end;
if (keyEvent != null... | public void showSelection () {
checkWidget ();
OS.SendMessage (handle, OS.EM_SCROLLCARET, 0, 0);
}
String verifyText (String string, int start, int end, Event keyEvent) {
if (ignoreVerify) return string;
Event event = new Event ();
event.text = string;
event.start = start;
event.end = end;
if (keyEvent != null... |
/*public*/ void setTabItemList (ToolItem [] tabList) {
checkWidget ();
if (tabList != null) {
for (int i=0; i<tabList.length; i++) {
ToolItem item = tabList [i];
if (item == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parent != this) err... | /*public*/ void setTabItemList (ToolItem [] tabList) {
checkWidget ();
if (tabList != null) {
for (int i=0; i<tabList.length; i++) {
ToolItem item = tabList [i];
if (item == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parent != this) err... |
public void setExpanded (boolean expanded) {
checkWidget ();
/* Do nothing when the item is a leaf or already expanded */
int /*long*/ hwnd = parent.handle;
if (OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_CHILD, handle) == 0) {
return;
}
int state = 0;
if (OS.IsWinCE) {
TVITEM tvItem = new TVITEM ();... | public void setExpanded (boolean expanded) {
checkWidget ();
/* Do nothing when the item is a leaf or already expanded */
int /*long*/ hwnd = parent.handle;
if (OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_CHILD, handle) == 0) {
return;
}
int state = 0;
if (OS.IsWinCE) {
TVITEM tvItem = new TVITEM ();... |
public void testGetTargetSetter() {
Address address = new Address();
// FIXME: We shouldn't need to run this first in order for the getName() stuff to work.
// See WICKET-668 for details.
PropertyResolver.setValue("number", address, new Integer(1), CONVERTER);
Method method = PropertyResolver.getProper... | public void testGetTargetSetter() {
Address address = new Address();
// FIXME: We shouldn't need to run this first in order for the getName() stuff to work.
// See WICKET-668 for details.
//PropertyResolver.setValue("number", address, new Integer(1), CONVERTER);
Method method = PropertyResolver.getProp... |
public HangmanApplication()
{
getPages().setHomePage(Home.class);
getSettings().setStripComponentNames(true);
}
| public HangmanApplication()
{
getPages().setHomePage(Home.class);
getSettings().setStripComponentIds(true);
}
|
private ComponentTag handleNext(ComponentTag tag) throws ParseException
{
// Ignore all close tags. Wicket params tags must not be close tags
// and components preceding the param tag can not be close tags
// either.
if (tag.isClose())
{
return tag;
}
// Wicket component tags will have a component n... | private ComponentTag handleNext(ComponentTag tag) throws ParseException
{
// Ignore all close tags. Wicket params tags must not be close tags
// and components preceding the param tag can not be close tags
// either.
if (tag.isClose())
{
return tag;
}
// Wicket component tags will have a component n... |
public void setUp() {
super.setUp(CLEAR_TABLES, Magazine.class, Publisher.class);
createData();
}
/**
* Create Magazine and associate Publisher unless its name is null.
*/
void createData() {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
for (int i = 0; i < MAGAZINE_PUBLI... | public void setUp() {
super.setUp(CLEAR_TABLES, Magazine.class, Publisher.class);
createData();
}
/**
* Create Magazine and associate Publisher unless its name is null.
*/
void createData() {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
for (int i = 0; i < MAGAZINE_PUBLI... |
protected String getEntityRef( char ch )
{
return null;
}
}
| protected String getEntityRef( int ch )
{
return null;
}
}
|
protected String getEntityRef( char ch )
{
// Encode special XML characters into the equivalent character references.
// These five are defined by default for all XML documents.
switch ( ch ) {
case '<':
return "lt";
case '>':
return "gt";
... | protected String getEntityRef(int ch)
{
// Encode special XML characters into the equivalent character references.
// These five are defined by default for all XML documents.
switch ( ch ) {
case '<':
return "lt";
case '>':
return "gt";
cas... |
protected void scanAttribute(XMLAttributes attributes)
throws IOException, XNIException {
if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()");
// name
if (fNamespaces) {
fEntityScanner.scanQName(fAttributeQName);
}
else {
St... | protected void scanAttribute(XMLAttributes attributes)
throws IOException, XNIException {
if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()");
// name
if (fNamespaces) {
fEntityScanner.scanQName(fAttributeQName);
}
else {
St... |
protected void handleStartElement(QName element, XMLAttributes attributes,
Augmentations augs,
boolean isEmpty) throws XNIException {
// add new namespace context
fNamespaceContext.pushContext();
if (element.prefix... | protected void handleStartElement(QName element, XMLAttributes attributes,
Augmentations augs,
boolean isEmpty) throws XNIException {
// add new namespace context
fNamespaceContext.pushContext();
if (element.prefix... |
protected final void startNamespaceScope (QName element, XMLAttributes attributes,
Augmentations augs) throws XNIException {
// add new namespace context
fNamespaceContext.pushContext();
if (element.prefix == XMLSymbols.PREFIX_XMLNS) {
... | protected final void startNamespaceScope (QName element, XMLAttributes attributes,
Augmentations augs) throws XNIException {
// add new namespace context
fNamespaceContext.pushContext();
if (element.prefix == XMLSymbols.PREFIX_XMLNS) {
... |
private InputStream decompress(final String name,
final InputStream istream)
throws IOException, BuildException {
final String v = getValue();
if (GZIP.equals(v)) {
return new GZIPInputStream(istream);
} else ... | public InputStream decompress(final String name,
final InputStream istream)
throws IOException, BuildException {
final String v = getValue();
if (GZIP.equals(v)) {
return new GZIPInputStream(istream);
} else {... |
public void removeVerifyListener (VerifyListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook (SWT.Verify, listener);
}
boolean sendKeyEvent (int type, int msg, int wParam, int lParam, Event event) {
if (!super.sendKeyEvent (... | public void removeVerifyListener (VerifyListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook (SWT.Verify, listener);
}
boolean sendKeyEvent (int type, int msg, int wParam, int lParam, Event event) {
if (!super.sendKeyEvent (... |
public void selectAll () {
checkWidget ();
OS.SendMessage (handle, OS.EM_SETSEL, 0, -1);
}
boolean sendKeyEvent (int type, int msg, int wParam, int lParam, Event event) {
if (!super.sendKeyEvent (type, msg, wParam, lParam, event)) {
return false;
}
if ((style & SWT.READ_ONLY) != 0) return true;
if (ignoreVerif... | public void selectAll () {
checkWidget ();
OS.SendMessage (handle, OS.EM_SETSEL, 0, -1);
}
boolean sendKeyEvent (int type, int msg, int wParam, int lParam, Event event) {
if (!super.sendKeyEvent (type, msg, wParam, lParam, event)) {
return false;
}
if ((style & SWT.READ_ONLY) != 0) return true;
if (ignoreVerif... |
public boolean dragDetect (MouseEvent event) {
checkWidget ();
if (event == null) error (SWT.ERROR_NULL_ARGUMENT);
return dragDetect (event.button, event.count, event.stateMask, event.x, event.y);
}
boolean dragDetect (int button, int count, int stateMask, int x, int y) {
if (button != 1 || count != 1) return fals... | public boolean dragDetect (MouseEvent event) {
checkWidget ();
if (event == null) error (SWT.ERROR_NULL_ARGUMENT);
return dragDetect (event.button, event.count, event.stateMask, event.x, event.y);
}
boolean dragDetect (int button, int count, int stateMask, int x, int y) {
if (button != 1 || count != 1) return fals... |
private void copyReference(String oldKey, String newKey) {
Object orig = getProject().getReference(oldKey);
Class c = orig.getClass();
Object copy = orig;
try {
Method cloneM = c.getMethod("clone", new Class[0]);
if (cloneM != null) {
copy = cl... | private void copyReference(String oldKey, String newKey) {
Object orig = getProject().getReference(oldKey);
Class c = orig.getClass();
Object copy = orig;
try {
Method cloneM = c.getMethod("clone", new Class[0]);
if (cloneM != null) {
copy = cl... |
protected void pack() {
CBZip2OutputStream zOut = null;
try {
BufferedOutputStream bos =
new BufferedOutputStream(new FileOutputStream(zipFile));
bos.write('B');
bos.write('Z');
zOut = new CBZip2OutputStream(bos);
zipFile(so... | protected void pack() {
CBZip2OutputStream zOut = null;
try {
BufferedOutputStream bos =
new BufferedOutputStream(new FileOutputStream(zipFile));
bos.write('B');
bos.write('Z');
zOut = new CBZip2OutputStream(bos);
zipFile(so... |
public void execute() throws BuildException {
if (callee == null) {
init();
}
if (subTarget == null) {
throw new BuildException("Attribute target is required.",
location);
}
callee.setAntfile(getP... | public void execute() throws BuildException {
if (callee == null) {
init();
}
if (subTarget == null) {
throw new BuildException("Attribute target is required.",
getLocation());
}
callee.setAntfile... |
public void execute() throws BuildException {
if (usedMatchingTask) {
log("DEPRECATED - Use of the implicit FileSet is deprecated. "
+ "Use a nested fileset element instead.");
}
if (file == null && dir == null && filesets.size() == 0) {
throw new Bu... | public void execute() throws BuildException {
if (usedMatchingTask) {
log("DEPRECATED - Use of the implicit FileSet is deprecated. "
+ "Use a nested fileset element instead.");
}
if (file == null && dir == null && filesets.size() == 0) {
throw new Bu... |
protected void initZipOutputStream(ZipOutputStream zOut)
throws IOException, BuildException {
// If no webxml file is specified, it's an error.
if (deploymentDescriptor == null && !isInUpdateMode()) {
throw new BuildException("appxml attribute is required", location);
}
... | protected void initZipOutputStream(ZipOutputStream zOut)
throws IOException, BuildException {
// If no webxml file is specified, it's an error.
if (deploymentDescriptor == null && !isInUpdateMode()) {
throw new BuildException("appxml attribute is required", getLocation());
... |
public void execute() throws BuildException {
boolean isFiltersFromFile =
filtersFile != null && token == null && value == null;
boolean isSingleFilter =
filtersFile == null && token != null && value != null;
if (!isFiltersFromFile && !isSingleFilter) {
t... | public void execute() throws BuildException {
boolean isFiltersFromFile =
filtersFile != null && token == null && value == null;
boolean isSingleFilter =
filtersFile == null && token != null && value != null;
if (!isFiltersFromFile && !isSingleFilter) {
t... |
public void setTablength(int tlength) throws BuildException {
if (tlength < 2 || tlength > 80) {
throw new BuildException("tablength must be between 2 and 80",
location);
}
tablength = tlength;
StringBuffer sp = new StringBuffer();
... | public void setTablength(int tlength) throws BuildException {
if (tlength < 2 || tlength > 80) {
throw new BuildException("tablength must be between 2 and 80",
getLocation());
}
tablength = tlength;
StringBuffer sp = new StringBuffer()... |
protected void extract() {
if (source.lastModified() > dest.lastModified()) {
log("Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath());
FileOutputStream out = null;
GZIPInputStream zIn = null;
FileInputStream fis ... | protected void extract() {
if (source.lastModified() > dest.lastModified()) {
log("Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath());
FileOutputStream out = null;
GZIPInputStream zIn = null;
FileInputStream fis ... |
protected void pack() {
GZIPOutputStream zOut = null;
try {
zOut = new GZIPOutputStream(new FileOutputStream(zipFile));
zipFile(source, zOut);
} catch (IOException ioe) {
String msg = "Problem creating gzip " + ioe.getMessage();
throw new Build... | protected void pack() {
GZIPOutputStream zOut = null;
try {
zOut = new GZIPOutputStream(new FileOutputStream(zipFile));
zipFile(source, zOut);
} catch (IOException ioe) {
String msg = "Problem creating gzip " + ioe.getMessage();
throw new Build... |
public final void execute()
throws BuildException {
//validation
if (srcFile == null) {
throw new BuildException("source file not defined");
}
if (property == null) {
throw new BuildException("output property not defined");
}
FileInputS... | public final void execute()
throws BuildException {
//validation
if (srcFile == null) {
throw new BuildException("source file not defined");
}
if (property == null) {
throw new BuildException("output property not defined");
}
FileInputS... |
public final void execute() throws BuildException {
//validation
if (srcFile == null) {
throw new BuildException("Source file not defined.");
}
if (!srcFile.exists()) {
throw new BuildException("Source file does not exist.");
}
if (!srcFile.i... | public final void execute() throws BuildException {
//validation
if (srcFile == null) {
throw new BuildException("Source file not defined.");
}
if (!srcFile.exists()) {
throw new BuildException("Source file does not exist.");
}
if (!srcFile.i... |
public void execute() throws BuildException {
try {
Date d = new Date();
Enumeration i = customFormats.elements();
while (i.hasMoreElements()) {
CustomFormat cts = (CustomFormat) i.nextElement();
cts.execute(getProject(), d, location);
... | public void execute() throws BuildException {
try {
Date d = new Date();
Enumeration i = customFormats.elements();
while (i.hasMoreElements()) {
CustomFormat cts = (CustomFormat) i.nextElement();
cts.execute(getProject(), d, getLocation())... |
protected void initZipOutputStream(ZipOutputStream zOut)
throws IOException, BuildException {
// If no webxml file is specified, it's an error.
if (deploymentDescriptor == null && !isInUpdateMode()) {
throw new BuildException("webxml attribute is required", location);
}
... | protected void initZipOutputStream(ZipOutputStream zOut)
throws IOException, BuildException {
// If no webxml file is specified, it's an error.
if (deploymentDescriptor == null && !isInUpdateMode()) {
throw new BuildException("webxml attribute is required", getLocation());
... |
public void execute() throws BuildException {
File savedBaseDir = baseDir;
DirectoryScanner scanner;
String[] list;
String[] dirs;
if (xslFile == null) {
throw new BuildException("no stylesheet specified", location);
}
try {
... | public void execute() throws BuildException {
File savedBaseDir = baseDir;
DirectoryScanner scanner;
String[] list;
String[] dirs;
if (xslFile == null) {
throw new BuildException("no stylesheet specified", getLocation());
}
try {... |
public Mapper createMapper() throws BuildException {
if (mapper != null) {
throw new BuildException("Cannot define more than one mapper",
location);
}
mapper = new Mapper(getProject());
return mapper;
}
| public Mapper createMapper() throws BuildException {
if (mapper != null) {
throw new BuildException("Cannot define more than one mapper",
getLocation());
}
mapper = new Mapper(getProject());
return mapper;
}
|
public void execute() throws BuildException {
// first off, make sure that we've got a from and to extension
if (fromExtension == null || toExtension == null || srcDir == null) {
throw new BuildException("srcDir, fromExtension and toExtension "
+ "attributes must be set... | public void execute() throws BuildException {
// first off, make sure that we've got a from and to extension
if (fromExtension == null || toExtension == null || srcDir == null) {
throw new BuildException("srcDir, fromExtension and toExtension "
+ "attributes must be set... |
public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// build the command line from what we got the format is
// ccm co /t .. files
// as specified in the CLEARTOOL.EXE help
c... | public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// build the command line from what we got the format is
// ccm co /t .. files
// as specified in the CLEARTOOL.EXE help
c... |
public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// build the command line from what we got the format
// as specified in the CCM.EXE help
commandLine.setExecutable(getCcmCommand(... | public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// build the command line from what we got the format
// as specified in the CCM.EXE help
commandLine.setExecutable(getCcmCommand(... |
protected int run(Commandline cmd, ExecuteStreamHandler handler) {
try {
Execute exe = new Execute(handler);
exe.setAntRun(getProject());
exe.setWorkingDirectory(getProject().getBaseDir());
exe.setCommandline(cmd.getCommandline());
return exe.execu... | protected int run(Commandline cmd, ExecuteStreamHandler handler) {
try {
Execute exe = new Execute(handler);
exe.setAntRun(getProject());
exe.setWorkingDirectory(getProject().getBaseDir());
exe.setCommandline(cmd.getCommandline());
return exe.execu... |
public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... | public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... |
public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... | public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... |
public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... | public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... |
public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... | public void execute() throws BuildException {
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;
// Default the viewpath to basedir if it is not specified
if (getViewPath() == null) {
setViewPath(aProj.getBaseDir().getPath(... |
protected int run(Commandline cmd) {
try {
Project aProj = getProject();
Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
exe.setAntRun(aProj);
exe.setWorkingDirectory(aProj.getBaseDir());
exe.setCommandlin... | protected int run(Commandline cmd) {
try {
Project aProj = getProject();
Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
exe.setAntRun(aProj);
exe.setWorkingDirectory(aProj.getBaseDir());
exe.setCommandlin... |
public void execute() throws BuildException {
//Be sure everything has been set.
if (outfile == null) {
throw new BuildException("outfile attribute is required! "
+ "Please set.");
}
if (!haveAddFiles() && !haveMergeFiles()) {
throw new Build... | public void execute() throws BuildException {
//Be sure everything has been set.
if (outfile == null) {
throw new BuildException("outfile attribute is required! "
+ "Please set.");
}
if (!haveAddFiles() && !haveMergeFiles()) {
throw new Build... |
public void execute() throws BuildException {
if (!destinationDirectory.isDirectory()) {
throw new BuildException("destination directory " + destinationDirectory.getPath() +
" is not valid");
}
if (!sourceDirec... | public void execute() throws BuildException {
if (!destinationDirectory.isDirectory()) {
throw new BuildException("destination directory " + destinationDirectory.getPath() +
" is not valid");
}
if (!sourceDirec... |
protected int run(Commandline cmd) {
try {
Execute exe = new Execute(new LogStreamHandler(this,
Project.MSG_INFO,
Project.MSG_WARN));
// If location of ss.ini is sp... | protected int run(Commandline cmd) {
try {
Execute exe = new Execute(new LogStreamHandler(this,
Project.MSG_INFO,
Project.MSG_WARN));
// If location of ss.ini is sp... |
public final IModel getNestedModel()
{
return null;
}
} | public IModel getNestedModel()
{
return null;
}
} |
public NSSize contentViewMargins() {
NSSize result = new NSSize();
OS.objc_msgSend_stret(result, this.id, OS.sel_contentViewMargins);
return result;
}
| public NSSize contentViewMargins() {
NSSize result = new NSSize();
OS.objc_msgSend_struct(result, this.id, OS.sel_contentViewMargins);
return result;
}
|
public ResourceBundle getResourceBundle() {
try {
if (resourceBundle == null)
resourceBundle = ResourceBundle
.getBundle("org.eclipse.ecf.discovery.DiscoveryPluginResources");
} catch (MissingResourceException x) {
resourceBundle = null;
}
return resourceBundle;
}
| public ResourceBundle getResourceBundle() {
try {
if (resourceBundle == null)
resourceBundle = ResourceBundle
.getBundle("org.eclipse.ecf.discovery.DiscoveryPluginResources"); //$NON-NLS-1$
} catch (MissingResourceException x) {
resourceBundle = null;
}
return resourceBundle;
}
|
public WebApplication createApplication(WicketFilter filter)
{
ServletContext sc = filter.getFilterConfig().getServletContext();
WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(sc);
if (getContextConfigLocation(filter) != null)
{
additionalContext = createWebApplicationCont... | public WebApplication createApplication(WicketFilter filter)
{
ServletContext sc = filter.getFilterConfig().getServletContext();
WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(sc);
if (getContextConfigLocation(filter) != null)
{
additionalContext = createWebApplicationCont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.