buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
protected CharSequence getPreconditionScript()
{
return "return Wicket.$$(this)&&Wicket.$$('" + getForm().getMarkupId() + "')";
}
| protected CharSequence getPreconditionScript()
{
return "return Wicket.$$(this)&&Wicket.$$('" + getForm().getMarkupId() + "')";
}
|
private void saveSample(SampleResult s, int num) {
// Should we save the sample?
if (s.isSuccessful()){
if (getErrorsOnly()){
return;
}
} else {
if (getSuccessOnly()){
return;
}
}
String fileName... | private void saveSample(SampleResult s, int num) {
// Should we save the sample?
if (s.isSuccessful()){
if (getErrorsOnly()){
return;
}
} else {
if (getSuccessOnly()){
return;
}
}
String fileName... |
public void execute()
throws TaskException
{
validate();
final String message = "Building: " + m_zipFile.getAbsolutePath();
getContext().info( message );
pack();
}
| public void execute()
throws TaskException
{
validate();
final String message = "Building: " + m_zipFile.getAbsolutePath();
getContext().verbose( message );
pack();
}
|
public void execute()
throws TaskException
{
validate();
final File src = getSrc();
final File dest = getDest();
if( src.lastModified() > dest.lastModified() )
{
final String message = "Expanding " + src.getAbsolutePath() +
" to " + d... | public void execute()
throws TaskException
{
validate();
final File src = getSrc();
final File dest = getDest();
if( src.lastModified() > dest.lastModified() )
{
final String message = "Expanding " + src.getAbsolutePath() +
" to " + d... |
public void execute()
{
final Map properties = getContext().getProperties();
final Iterator iterator = properties.keySet().iterator();
while( iterator.hasNext() )
{
final String key = (String)iterator.next();
final Object value = properties.get( key );
... | public void execute()
{
final Map properties = getContext().getProperties();
final Iterator iterator = properties.keySet().iterator();
while( iterator.hasNext() )
{
final String key = (String)iterator.next();
final Object value = properties.get( key );
... |
public void execute()
throws TaskException
{
final String[] files = m_path.listFiles( getContext() );
for( int i = 0; i < files.length; i++ )
{
final String file = files[ i ];
getContext().warn( file );
}
}
| public void execute()
throws TaskException
{
final String[] files = m_path.listFiles( getContext() );
for( int i = 0; i < files.length; i++ )
{
final String file = files[ i ];
getContext().info( file );
}
}
|
public void execute()
throws TaskException
{
final ExecuteJava exe = new ExecuteJava();
exe.setClassName( "COM.sun.labs.jjtree.Main" );
// load command line with optional attributes
Enumeration iter = optionalAttrs.keys();
while( iter.hasMoreElements() )
... | public void execute()
throws TaskException
{
final ExecuteJava exe = new ExecuteJava();
exe.setClassName( "COM.sun.labs.jjtree.Main" );
// load command line with optional attributes
Enumeration iter = optionalAttrs.keys();
while( iter.hasMoreElements() )
... |
private void execP4Add( final StringBuffer list )
throws TaskException
{
if( getContext().isInfoEnabled() )
{
final String message = "Execing add " + m_p4CmdOpts + " " + addCmd + list;
getContext().info( message );
}
final String command = "-s add... | private void execP4Add( final StringBuffer list )
throws TaskException
{
if( getContext().isInfoEnabled() )
{
final String message = "Execing add " + m_p4CmdOpts + " " + addCmd + list;
getContext().verbose( message );
}
final String command = "-s ... |
public void execute()
throws TaskException
{
if( baseDir == null )
{
throw new TaskException( "base attribute must be set!" );
}
if( !baseDir.exists() )
{
throw new TaskException( "base does not exist!" );
}
if( verify )
... | public void execute()
throws TaskException
{
if( baseDir == null )
{
throw new TaskException( "base attribute must be set!" );
}
if( !baseDir.exists() )
{
throw new TaskException( "base does not exist!" );
}
if( verify )
... |
protected void doReplace( File f, int options )
throws IOException, TaskException
{
File parentDir = new File( new File( f.getAbsolutePath() ).getParent() );
File temp = File.createTempFile( "replace", ".txt", parentDir );
FileReader r = null;
FileWriter w = null;
... | protected void doReplace( File f, int options )
throws IOException, TaskException
{
File parentDir = new File( new File( f.getAbsolutePath() ).getParent() );
File temp = File.createTempFile( "replace", ".txt", parentDir );
FileReader r = null;
FileWriter w = null;
... |
protected String[] getPossibleInterpreterNames() {
return new String[] { "zorba" };
}
| protected String[] getPossibleInterpreterNames() {
return new String[] { "zorba", "zorba_sausastore" };
}
|
public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
JMeterContext jmctx = JMeterContextService.getContext();
JMeterVariables vars = jmctx.getVariables();
String script = ((CompoundVariable) values[0]).execute... | public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
JMeterContext jmctx = JMeterContextService.getContext();
JMeterVariables vars = jmctx.getVariables();
String script = ((CompoundVariable) values[0]).execute... |
private Unknown getSourceDebugExtensionAttribute() {
int nameIndex = constantPoolGen.addUtf8("SourceDebugExtension");
String data = getSourceDebugExtensionString();
System.err.println(data);
byte[] bytes = Utility.stringToUTF(data);
int length = bytes.length;
return new Unknown(nameIndex, length, bytes, c... | private Unknown getSourceDebugExtensionAttribute() {
int nameIndex = constantPoolGen.addUtf8("SourceDebugExtension");
String data = getSourceDebugExtensionString();
//System.err.println(data);
byte[] bytes = Utility.stringToUTF(data);
int length = bytes.length;
return new Unknown(nameIndex, length, bytes,... |
package org.apache.wicket.threadtest.tester;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lic... | package org.apache.wicket.threadtest.tester;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lic... |
public void handleEvent(Event event) {
if (buttons[0] != null) checkValue[0] = buttons[0].getSelection() ? 1 : 0;
user[0] = userText.getText();
pass[0] = passwordText.getText();
result[0] = event.widget == buttons[1] ? 1 : 0;
shell.close();
}
};
if (check != null) {
buttons[0] = new Bu... | public void handleEvent(Event event) {
if (buttons[0] != null) checkValue[0] = buttons[0].getSelection() ? 1 : 0;
user[0] = userText.getText();
pass[0] = passwordText.getText();
result[0] = event.widget == buttons[1] ? 1 : 0;
shell.close();
}
};
if (check != null) {
buttons[0] = new Bu... |
private static final List LOCALES = Arrays.asList(new Locale[]
{ Locale.US, new Locale("nl"), Locale.GERMANY });
| private static final List LOCALES = Arrays.asList(new Locale[]
{ Locale.US, new Locale("nl"), Locale.GERMANY , Locale.SIMPLIFIED_CHINESE });
|
public final void onSubmit()
{
// Construct a copy of the edited comment
final Comment comment = (Comment)getRootModelObject();
final Comment newComment = new Comment(comment);
// Set date of comment to add
newComment.setDate(new Date());
// Add the component we edited to the list of comments
... | public final void onSubmit()
{
// Construct a copy of the edited comment
final Comment comment = (Comment)getRootModelObject();
final Comment newComment = new Comment(comment);
// Set date of comment to add
newComment.setDate(new Date());
// Add the component we edited to the list of comments
... |
private void refreshFiles()
{
fileListView.modelChangeImpending();
files.clear();
files.addAll(Arrays.asList(uploadFolder.listFiles()));
}
| private void refreshFiles()
{
fileListView.modelChanging();
files.clear();
files.addAll(Arrays.asList(uploadFolder.listFiles()));
}
|
public NumberFormat getNumberFormat(Locale locale)
{
NumberFormat numberFormat = numberFormats.get(locale);
if (numberFormat == null)
{
numberFormat = NumberFormat.getInstance(locale);
if (numberFormat instanceof DecimalFormat)
((DecimalFormat)numberFormat).setParseBigDecimal(true);
numberFormats.... | public NumberFormat getNumberFormat(Locale locale)
{
NumberFormat numberFormat = numberFormats.get(locale);
if (numberFormat == null)
{
numberFormat = newNumberFormat(locale);
if (numberFormat instanceof DecimalFormat)
((DecimalFormat)numberFormat).setParseBigDecimal(true);
numberFormats.put(local... |
public void testLogfilePlacement() {
File[] logFiles = new File[] {
getProject().resolveFile("test1.log"),
getProject().resolveFile("test2.log"),
getProject().resolveFile("ant/test3.log"),
getProject().resolveFile("ant/test3.log")
};
for (int i... | public void testLogfilePlacement() {
File[] logFiles = new File[] {
getProject().resolveFile("test1.log"),
getProject().resolveFile("test2.log"),
getProject().resolveFile("ant/test3.log"),
getProject().resolveFile("ant/test4.log")
};
for (int i... |
public ICrypt newCrypt()
{
if (cache == null)
{
cache = delegate.newCrypt();
}
return cache;
}
} | public final ICrypt newCrypt()
{
if (cache == null)
{
cache = delegate.newCrypt();
}
return cache;
}
} |
public void configure(TestElement config) {
super.configure(config);
argsPanel.configure((Arguments) config.getProperty(JavaSampler.ARGUMENTS).getObjectValue());
String className = config.getPropertyAsString(JavaSampler.CLASSNAME);
if(checkContainsClassName(classnameCombo.getModel(... | public void configure(TestElement config) {
super.configure(config);
argsPanel.configure((Arguments) config.getProperty(JavaSampler.ARGUMENTS).getObjectValue());
String className = config.getPropertyAsString(JavaSampler.CLASSNAME);
if(checkContainsClassName(classnameCombo.getModel(... |
public Panel getPanel(MarkupContainer parent, String panelId)
{
return new TabPanel3(parent, panelId);
}
});
add(new AjaxTabbedPanel(this, "tabs", tabs));
}
| public Panel getPanel(MarkupContainer parent, String panelId)
{
return new TabPanel3(parent, panelId);
}
});
new AjaxTabbedPanel(this, "tabs", tabs);
}
|
public FirstPanel(MarkupContainer parent, final String id,
final IBreadCrumbModel breadCrumbModel)
{
super(parent, id, breadCrumbModel);
add(new BreadCrumbPanelLink(this, "linkToSecond", this, SecondPanel.class));
}
| public FirstPanel(MarkupContainer parent, final String id,
final IBreadCrumbModel breadCrumbModel)
{
super(parent, id, breadCrumbModel);
new BreadCrumbPanelLink(this, "linkToSecond", this, SecondPanel.class);
}
|
public ResultPanel(MarkupContainer parent, final String id,
final IBreadCrumbModel breadCrumbModel, String result)
{
super(parent, id, breadCrumbModel);
if (result == null || "".equals(result.trim()))
{
result = "(hey, you didn't even provide some input!)";
}
add(new Label(this, "result", result));
... | public ResultPanel(MarkupContainer parent, final String id,
final IBreadCrumbModel breadCrumbModel, String result)
{
super(parent, id, breadCrumbModel);
if (result == null || "".equals(result.trim()))
{
result = "(hey, you didn't even provide some input!)";
}
new Label(this, "result", result);
}
|
public Index()
{
// normal link instead of an autolink as it looks a bit weird to refer
// to PageWithCustomLoading.html while the template has got a very
// different name (CustomLoadedTemplate.html)
add(new BookmarkablePageLink(this, "customLoadingPageLink", PageWithCustomLoading.class));
}
| public Index()
{
// normal link instead of an autolink as it looks a bit weird to refer
// to PageWithCustomLoading.html while the template has got a very
// different name (CustomLoadedTemplate.html)
new BookmarkablePageLink(this, "customLoadingPageLink", PageWithCustomLoading.class);
}
|
public MyPageableListViewNavigator(MarkupContainer parent, final String id,
final PageableListView pageableListView)
{
super(parent, id, pageableListView);
this.pageableListView = pageableListView;
add(new Label(this, "headline", new PropertyModel(this, "headlineText")));
}
| public MyPageableListViewNavigator(MarkupContainer parent, final String id,
final PageableListView pageableListView)
{
super(parent, id, pageableListView);
this.pageableListView = pageableListView;
new Label(this, "headline", new PropertyModel(this, "headlineText"));
}
|
public LibraryApplicationBorder(MarkupContainer parent, final String id)
{
super(parent, id);
add(new BoxBorder(this, "boxBorder"));
}
| public LibraryApplicationBorder(MarkupContainer parent, final String id)
{
super(parent, id);
new BoxBorder(this, "boxBorder");
}
|
public BookDetails(final Book book)
{
add(new Label(this, "title", book.getTitle()));
}
| public BookDetails(final Book book)
{
new Label(this, "title", book.getTitle());
}
|
public DataGridPage()
{
ICellPopulator[] columns = new ICellPopulator[5];
columns[0] = new PropertyPopulator("id");
columns[1] = new PropertyPopulator("firstName");
columns[2] = new PropertyPopulator("lastName");
columns[3] = new PropertyPopulator("homePhone");
columns[4] = new PropertyPopulator("cellPho... | public DataGridPage()
{
ICellPopulator[] columns = new ICellPopulator[5];
columns[0] = new PropertyPopulator("id");
columns[1] = new PropertyPopulator("firstName");
columns[2] = new PropertyPopulator("lastName");
columns[3] = new PropertyPopulator("homePhone");
columns[4] = new PropertyPopulator("cellPho... |
protected Apt getApt() {
return (Apt) getJavac();
}
static void setAptCommandlineSwitches(Apt apt, Commandline cmd) {
if (apt.isNoCompile()) {
cmd.createArgument().setValue("-nocompile");
}
// Process the factory class
String factory = apt.getFactory();... | protected Apt getApt() {
return (Apt) getJavac();
}
static void setAptCommandlineSwitches(Apt apt, Commandline cmd) {
if (!apt.isCompile()) {
cmd.createArgument().setValue("-nocompile");
}
// Process the factory class
String factory = apt.getFactory();
... |
private SSLContext createContext() throws GeneralSecurityException {
SSLContext context;
if (pro != null) {
context = SSLContext.getInstance(DEFAULT_SSL_PROTOCOL, pro); // $NON-NLS-1$
} else {
context = SSLContext.getInstance(DEFAULT_SSL_PROTOCOL); // $NON-NLS-1$
}
... | private SSLContext createContext() throws GeneralSecurityException {
SSLContext context;
if (pro != null) {
context = SSLContext.getInstance(DEFAULT_SSL_PROTOCOL, pro); // $NON-NLS-1$
} else {
context = SSLContext.getInstance(DEFAULT_SSL_PROTOCOL); // $NON-NLS-1$
}
... |
public Control [] getTabList () {
checkWidget ();
Control [] tabList = _getTabList ();
if (tabList == null) {
int count = 0;
Control [] list =_getChildren ();
for (int i=0; i<list.length; i++) {
if (list [i].isTabGroup ()) count++;
}
tabList = new Control [count];
int index = 0;
for (int i=0; i<list... | public Control [] getTabList () {
checkWidget ();
Control [] tabList = _getTabList ();
if (tabList == null) {
int count = 0;
Control [] list =_getChildren ();
for (int i=0; i<list.length; i++) {
if (list [i].isTabGroup ()) count++;
}
tabList = new Control [count];
int index = 0;
for (int i=0; i<list... |
public void setSelection (TreeItem[] items) {
checkWidget ();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
if (items.length == 0 || ((style & SWT.SINGLE) != 0 && items.length > 1)) {
deselectAll ();
return;
}
TreeItem[] oldSelection = selectedItems;
/* remove null and duplicate items */
int index = ... | public void setSelection (TreeItem[] items) {
checkWidget ();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
if (items.length == 0 || ((style & SWT.SINGLE) != 0 && items.length > 1)) {
deselectAll ();
return;
}
TreeItem[] oldSelection = selectedItems;
/* remove null and duplicate items */
int index = ... |
public void testReceives() throws Exception {
for (Iterator i = srcFiles.iterator(); i.hasNext(); ) {
testReceive((String) i.next());
}
Thread.sleep(50000);
}
| public void testReceives() throws Exception {
for (Iterator i = srcFiles.iterator(); i.hasNext(); ) {
testReceive((String) i.next());
}
Thread.sleep(10000);
}
|
public void testReceives() throws Exception {
for (Iterator i = srcFiles.iterator(); i.hasNext(); ) {
testReceive((String) i.next());
}
sleep(50000, "Starting sleeping", "Ending sleeping");
}
| public void testReceives() throws Exception {
for (Iterator i = srcFiles.iterator(); i.hasNext(); ) {
testReceive((String) i.next());
}
sleep(10000, "Starting sleeping", "Ending sleeping");
}
|
public void testTwoClientsToSendAndReceive() throws Exception {
// Setup two clients. Client 0 is the receiver, client 1 is the sender
setClientCount(2);
clients = createClients();
adapter0 = getOutgoingFileTransfer(0);
adapter0.addListener(requestListener);
adapter1 = getOutgoingFileTransfer(1);
for (i... | public void testTwoClientsToSendAndReceive() throws Exception {
// Setup two clients. Client 0 is the receiver, client 1 is the sender
setClientCount(2);
clients = createClients();
adapter0 = getOutgoingFileTransfer(0);
adapter0.addListener(requestListener);
adapter1 = getOutgoingFileTransfer(1);
for (i... |
protected byte[] getImageData()
{
if(thumbnail == null)
{
final BufferedImage image = getScaledImageInstance();
thumbnail = toImageData(image);
lastModifiedTime = Time.now();
}
return thumbnail;
}
| protected byte[] getImageData()
{
if(thumbnail == null)
{
final BufferedImage image = getScaledImageInstance();
thumbnail = toImageData(image);
setLastModifiedTime(Time.now());
}
return thumbnail;
}
|
public boolean getVisible () {
checkWidget();
return (state & HIDDEN) == 0;
}
int /*long*/ getVisibleRegion () {
if (visibleRgn == 0) {
visibleRgn = OS.NewRgn ();
calculateVisibleRegion (view, visibleRgn, true);
}
int /*long*/ result = OS.NewRgn ();
OS.CopyRgn (visibleRgn, result);
return result;
}
boolean... | public boolean getVisible () {
checkWidget();
return (state & HIDDEN) == 0;
}
int /*long*/ getVisibleRegion () {
if (visibleRgn == 0) {
visibleRgn = OS.NewRgn ();
calculateVisibleRegion (view, visibleRgn, true);
}
int /*long*/ result = OS.NewRgn ();
OS.CopyRgn (visibleRgn, result);
return result;
}
boolean... |
public void testOverrideStringResourceLoaderSetup()
{
Application dummy = new DummyApplication();
dummy.init();
Settings settings = new Settings(dummy);
settings.addStringResourceLoader(new BundleStringResourceLoader(
"wicket.resource.DummyResources"));
settings.addStringResourceLoader(new ComponentStri... | public void testOverrideStringResourceLoaderSetup()
{
Application dummy = new DummyApplication();
dummy.init();
Settings settings = new Settings(dummy);
settings.addStringResourceLoader(new BundleStringResourceLoader(
"wicket.resource.DummyResources"));
settings.addStringResourceLoader(new ComponentStri... |
protected IStringResourceLoader createLoader()
{
return new ClassStringResourceLoader(application, application.getClass());
}
| protected IStringResourceLoader createLoader()
{
return new ClassStringResourceLoader(application.getClass());
}
|
private String pad(int n) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < n; i++)
buf.append(SPACE);
return buf.toString();
}
| private String pad(int n) {
StringBuilder buf = new StringBuilder();
for (int i = 0; i < n; i++)
buf.append(SPACE);
return buf.toString();
}
|
private void setCollectionValuedParameter(Map<Integer,Object> result,
Collection values, Integer[] indices, Object param, Broker broker) {
int n = values.size();
Object[] array = values.toArray();
if (n > indices.length || indices.length%n != 0) {
throw new UserException... | private void setCollectionValuedParameter(Map<Integer,Object> result,
Collection values, Integer[] indices, Object param, Broker broker) {
int n = values.size();
Object[] array = values.toArray();
if (n == 0 || n > indices.length || indices.length%n != 0) {
throw new Use... |
public void update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
throws SQLException {
if (field.getMappedBy() != null && !field.isBiMTo1JT())
return;
Map map = (Map) sm.fetchObject(field.getIndex());
ChangeTracker ct = null;
if (map instanceof Proxy) {... | public void update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
throws SQLException {
if (field.getMappedBy() != null && !field.isBiMTo1JT())
return;
Map map = (Map) sm.fetchObject(field.getIndex());
ChangeTracker ct = null;
if (map instanceof Proxy) {... |
public static final PCState PDELETEDFLUSHED = new PDeletedFlushedState();
private static Localizer _loc = Localizer.forPackage(PCState.class);
/**
* Called when this state is first assigned to the given state manager.
*/
void initialize(StateManagerImpl context) {
}
| public static final PCState PDELETEDFLUSHED = new PDeletedFlushedState();
private static Localizer _loc = Localizer.forPackage(PCState.class);
/**
* Called when this state is first assigned to the given state manager.
*/
void initialize(StateManagerImpl context, PCState previousState) {
... |
protected String[] getConfs(boolean confs1) {
String fullProvider = provider;
String props = Configurations.getProperties
(System.getProperty("openjpa.RemoteCommitProvider"));
if (props == null || props.length() == 0)
props = Configurations.getProperties(provider);
... | protected String[] getConfs(boolean confs1) {
String fullProvider = provider;
String props = Configurations.getProperties
(System.getProperty("openjpa.RemoteCommitProvider"));
if (props == null || props.length() == 0)
props = Configurations.getProperties(provider);
... |
public void setUp() {
setUp(
Account.class, AccountGroup.class, Person.class);
}
| public void setUp() {
setUp( CLEAR_TABLES,
Account.class, AccountGroup.class, Person.class);
}
|
public void setUp() {
setUp(AnnoTest1.class, AnnoTest2.class, AnnoTest3.class, Flat1.class,
EmbedOwner.class, EmbedValue.class, CLEAR_TABLES
,"openjpa.Log","SQL=trace"
,"openjpa.ConnectionFactoryProperties","printParameters=true"
);
EntityManager em = em... | public void setUp() {
setUp(AnnoTest1.class, AnnoTest2.class, AnnoTest3.class, Flat1.class,
EmbedOwner.class, EmbedValue.class, CLEAR_TABLES
// ,"openjpa.Log","SQL=trace"
,"openjpa.ConnectionFactoryProperties","printParameters=true"
);
EntityM... |
public void testDoubleMin() {
try {
AllFieldTypesTest aftt = new AllFieldTypesTest();
aftt.setTestdouble(Double.MIN_VALUE);
saveAndQuery(aftt, "testdouble =",
new Double(Double.MIN_VALUE));
} catch (Exception e) {
bug(EnumSet.of(Abs... | public void testDoubleMin() {
try {
AllFieldTypesTest aftt = new AllFieldTypesTest();
aftt.setTestdouble(Double.MIN_VALUE);
saveAndQuery(aftt, "testdouble =",
new Double(Double.MIN_VALUE));
} catch (Exception e) {
bug(EnumSet.of(Abs... |
public Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c) {
SubqueryImpl<?> subquery = c.getDelegator();
Path var = null;
Value val = null;
String alias = c.getAlias(this);
if (!alias.equalsIgnoreCase(c.ctx().schemaAlias)
&& (val = c.getRegisteredRoo... | public Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c) {
SubqueryImpl<?> subquery = c.getDelegator();
Path var = null;
Value val = null;
String alias = c.getAlias(this);
if (c.ctx() != null && !alias.equalsIgnoreCase(c.ctx().schemaAlias)
&& (val =... |
public String asExpression(AliasContext ctx) {
StringBuffer tmp = new StringBuffer("CASE ");
if (_caseOperand != null) {
tmp.append(toJPQL(ctx, _caseOperand));
}
for (WhenClause when : _whens) {
tmp.append(when.toJPQL(ctx));
}
return tmp.toString();
}
| public String asExpression(AliasContext ctx) {
StringBuilder tmp = new StringBuilder("CASE ");
if (_caseOperand != null) {
tmp.append(toJPQL(ctx, _caseOperand));
}
for (WhenClause when : _whens) {
tmp.append(when.toJPQL(ctx));
}
return tmp.toString();
}
|
protected String getSpanClass()
{
return "org.apache.wicket-ajax-indicator";
}
| protected String getSpanClass()
{
return "wicket-ajax-indicator";
}
|
public ApacheLicenceHeaderTest()
{
// addHeaders = true;
htmlIgnore = new String[] {
// This is a quickstart project, so too much information in the HTML file
// will confuse.
"src/main/java/org.apache.wicket/quickstart/Index.html",
// Small redirect file with no clever content.
"src/main/we... | public ApacheLicenceHeaderTest()
{
// addHeaders = true;
htmlIgnore = new String[] {
// This is a quickstart project, so too much information in the HTML file
// will confuse.
"src/main/java/org/apache/wicket/quickstart/Index.html",
// Small redirect file with no clever content.
"src/main/we... |
public Object component(Component component)
{
if (component.isVisible())
{
component.renderHead(header);
return CONTINUE_TRAVERSAL;
}
else
{
return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
}
});
}
// revert to old response
RequestCycle.get().setR... | public Object component(Component component)
{
if (component.isVisible())
{
component.renderHead(header);
return CONTINUE_TRAVERSAL;
}
else
{
return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
}
});
}
// revert to old response
RequestCycle.get().setR... |
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
String url = tag.getAttributes().getString("src");
url = url + ((url.indexOf("?") >= 0) ? "&" : "?");
url = url + "org.apache.wicket:antiCache=" + System.currentTimeMillis();
tag.put("src", url);
}
| protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
String url = tag.getAttributes().getString("src");
url = url + ((url.indexOf("?") >= 0) ? "&" : "?");
url = url + "wicket:antiCache=" + System.currentTimeMillis();
tag.put("src", url);
}
|
public void onComponentTag(final Component component, final ComponentTag tag)
{
tag.put("xmlns:org.apache.wicket", "http://org.apache.wicket.sourceforge.net");
final RequestCycle requestCycle = RequestCycle.get();
// Temporarily replace the web response with a String response
this.webResponse = requestCycle... | public void onComponentTag(final Component component, final ComponentTag tag)
{
tag.put("xmlns:wicket", "http://wicket.apache.org");
final RequestCycle requestCycle = RequestCycle.get();
// Temporarily replace the web response with a String response
this.webResponse = requestCycle.getResponse();
// Creat... |
public void init(FilterConfig filterConfig) throws ServletException
{
this.filterConfig = filterConfig;
if (SERVLET_PATH_HOLDER.equals(filterConfig.getInitParameter(FILTER_MAPPING_PARAM)))
{
servletMode = true;
}
final ClassLoader previousClassLoader = Thread.currentThread().getContextClassLoader();
... | public void init(FilterConfig filterConfig) throws ServletException
{
this.filterConfig = filterConfig;
if (SERVLET_PATH_HOLDER.equals(filterConfig.getInitParameter(FILTER_MAPPING_PARAM)))
{
servletMode = true;
}
final ClassLoader previousClassLoader = Thread.currentThread().getContextClassLoader();
... |
public void init(FilterConfig filterConfig) throws ServletException
{
servletPath = filterConfig.getInitParameter("servletPath");
if (servletPath == null)
{
throw new ServletException(
"you must provide init parameter servlet-path if you want to use "
+ getClass().getName());
}
if (servletP... | public void init(FilterConfig filterConfig) throws ServletException
{
servletPath = filterConfig.getInitParameter("servletPath");
if (servletPath == null)
{
throw new ServletException(
"you must provide init parameter servlet-path if you want to use "
+ getClass().getName());
}
if (servletP... |
public static final boolean validatePage(String document, final Class clazz, final String file,
boolean failWithAssert) throws IOException
{
String filename = clazz.getPackage().getName();
filename = filename.replace('.', '/');
filename += "/" + file;
InputStream in = clazz.getClassLoader().getResourceAsS... | public static final boolean validatePage(String document, final Class clazz, final String file,
boolean failWithAssert) throws IOException
{
String filename = clazz.getPackage().getName();
filename = filename.replace('.', '/');
filename += "/" + file;
InputStream in = clazz.getClassLoader().getResourceAsS... |
public final void testWicketTag() throws ParseException, ResourceStreamNotFoundException,
IOException
{
WicketTagIdentifier.registerWellKnownTagName("body");
WicketTagIdentifier.registerWellKnownTagName("border");
WicketTagIdentifier.registerWellKnownTagName("panel");
final MarkupParser parser = new Marku... | public final void testWicketTag() throws ParseException, ResourceStreamNotFoundException,
IOException
{
WicketTagIdentifier.registerWellKnownTagName("body");
WicketTagIdentifier.registerWellKnownTagName("border");
WicketTagIdentifier.registerWellKnownTagName("panel");
final MarkupParser parser = new Marku... |
public CharSequence transform(Component component, String output)
{
// Convert all text to uppercase
return output.toUpperCase();
}
};
add(borderContainer);
Border border = new SimpleBorder("myBorder");
borderContainer.add(border);
MarkupContainer xsltContainer = new XsltOutp... | public CharSequence transform(Component component, String output)
{
// Convert all text to uppercase
return output.toUpperCase();
}
};
add(borderContainer);
Border border = new SimpleBorder("myBorder");
borderContainer.add(border);
MarkupContainer xsltContainer = new XsltOutp... |
public boolean authenticate(final String username, final String password)
{
// Check username and password
return username.equals("org.apache.wicket") && password.equals("org.apache.wicket");
}
| public boolean authenticate(final String username, final String password)
{
// Check username and password
return username.equals("wicket") && password.equals("wicket");
}
|
protected void explain()
{
String html = "<org.apache.wicket:fragment wicket:id=\"fragmentid\">...</org.apache.wicket:fragment>";
String code = "private class MyFragment extends Fragment {\n ...\n"
+ "add(new MyFragment(\"fragment\", \"fragmentid\"));";
add(new ExplainPanel(html, code));
}
| protected void explain()
{
String html = "<wicket:fragment wicket:id=\"fragmentid\">...</wicket:fragment>";
String code = "private class MyFragment extends Fragment {\n ...\n"
+ "add(new MyFragment(\"fragment\", \"fragmentid\"));";
add(new ExplainPanel(html, code));
}
|
public FormInputModel()
{
try
{
urlProperty = new URL("http://org.apache.wicket.sourceforge.net");
}
| public FormInputModel()
{
try
{
urlProperty = new URL("http://wicket.apache.org");
}
|
public final User authenticate(final String username, final String password)
{
if (user == null)
{
// Trivial password "db"
if ("org.apache.wicket".equalsIgnoreCase(username) && "org.apache.wicket".equalsIgnoreCase(password))
{
// Create User object
final User user = new User();
user.setName... | public final User authenticate(final String username, final String password)
{
if (user == null)
{
// Trivial password "db"
if ("wicket".equalsIgnoreCase(username) && "wicket".equalsIgnoreCase(password))
{
// Create User object
final User user = new User();
user.setName(username);
final... |
public final boolean authenticate(final String username, final String password)
{
if (user == null)
{
// Trivial password "db"
if ("org.apache.wicket".equalsIgnoreCase(username) && "org.apache.wicket".equalsIgnoreCase(password))
{
user = username;
}
}
return user != null;
}
| public final boolean authenticate(final String username, final String password)
{
if (user == null)
{
// Trivial password "db"
if ("wicket".equalsIgnoreCase(username) && "wicket".equalsIgnoreCase(password))
{
user = username;
}
}
return user != null;
}
|
protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
uploadFolder = new Folder(System.getProperty("java.io.tmpdir"), "org.apache.wicket-uploads");
// Ensure folder exists
uploadFolder.mkdirs();
mountBookmarkablePage("/multi", MultiUploadPage.class);
mountBookmarkableP... | protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
uploadFolder = new Folder(System.getProperty("java.io.tmpdir"), "wicket-uploads");
// Ensure folder exists
uploadFolder.mkdirs();
mountBookmarkablePage("/multi", MultiUploadPage.class);
mountBookmarkablePage("/singl... |
public static void main(String[] args) throws Exception {
List<String> gets = Arrays
.asList(new String[] { "/app1?org.apache.wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app1.Home" });
SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5);
// getCmd.setPrintResponse(true);
Tester tes... | public static void main(String[] args) throws Exception {
List<String> gets = Arrays
.asList(new String[] { "/app1?wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app1.Home" });
SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5);
// getCmd.setPrintResponse(true);
Tester tester = new T... |
public static void main(String[] args) throws Exception {
List<String> gets = Arrays
.asList(new String[] { "/app2?org.apache.wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app2.Home" });
SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5);
// getCmd.setPrintResponse(true);
// AS OF ... | public static void main(String[] args) throws Exception {
List<String> gets = Arrays
.asList(new String[] { "/app2?wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app2.Home" });
SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5);
// getCmd.setPrintResponse(true);
// AS OF OCTOBER 9 2... |
public FormInputModel() {
try {
urlProperty = new URL("http://org.apache.wicket.sourceforge.net");
} catch (MalformedURLException e) {
e.printStackTrace();
}
| public FormInputModel() {
try {
urlProperty = new URL("http://wicket.apache.org");
} catch (MalformedURLException e) {
e.printStackTrace();
}
|
protected DirectoryScanner getDirectoryScanner( File baseDir )
throws TaskException
{
fileset.setDir( baseDir );
fileset.setDefaultexcludes( useDefaultExcludes );
return fileset.getDirectoryScanner( getProject() );
}
| protected DirectoryScanner getDirectoryScanner( File baseDir )
throws TaskException
{
fileset.setDir( baseDir );
fileset.setDefaultexcludes( useDefaultExcludes );
return fileset.getDirectoryScanner();
}
|
protected void doFileOperations()
throws TaskException
{
//Attempt complete directory renames, if any, first.
if( getCompleteDirMap().size() > 0 )
{
Enumeration e = getCompleteDirMap().keys();
while( e.hasMoreElements() )
{
File... | protected void doFileOperations()
throws TaskException
{
//Attempt complete directory renames, if any, first.
if( getCompleteDirMap().size() > 0 )
{
Enumeration e = getCompleteDirMap().keys();
while( e.hasMoreElements() )
{
File... |
protected ArrayList getFileList()
throws TaskException
{
ArrayList files = new ArrayList();
if( filesets.size() == 0 )
{
// get files from old methods - includes and nested include
appendFiles( files, super.getDirectoryScanner( baseDir ) );
}
... | protected ArrayList getFileList()
throws TaskException
{
ArrayList files = new ArrayList();
if( filesets.size() == 0 )
{
// get files from old methods - includes and nested include
appendFiles( files, super.getDirectoryScanner( baseDir ) );
}
... |
private void translate()
throws TaskException
{
for( int i = 0; i < filesets.size(); i++ )
{
FileSet fs = (FileSet)filesets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner( getProject() );
String[] srcFiles = ds.getIncludedFiles();
f... | private void translate()
throws TaskException
{
for( int i = 0; i < filesets.size(); i++ )
{
FileSet fs = (FileSet)filesets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner();
String[] srcFiles = ds.getIncludedFiles();
for( int j = 0;... |
protected void importFileset( FileSet fileset )
{
DirectoryScanner ds = fileset.getDirectoryScanner( this.getProject() );
if( ds.getIncludedFiles().length == 0 )
{
return;
}
String[] includes = null;
String[] excludes = null;
// Hack to get i... | protected void importFileset( FileSet fileset )
{
DirectoryScanner ds = fileset.getDirectoryScanner();
if( ds.getIncludedFiles().length == 0 )
{
return;
}
String[] includes = null;
String[] excludes = null;
// Hack to get includes and exclude... |
private String[] getFilenames()
{
ArrayList v = new ArrayList();
final int size = this.filesets.size();
for( int j = 0; j < size; j++ )
{
FileSet fs = (FileSet)filesets.get( j );
DirectoryScanner ds = fs.getDirectoryScanner( project );
ds.scan(... | private String[] getFilenames()
{
ArrayList v = new ArrayList();
final int size = this.filesets.size();
for( int j = 0; j < size; j++ )
{
FileSet fs = (FileSet)filesets.get( j );
DirectoryScanner ds = fs.getDirectoryScanner();
ds.scan();
... |
protected File[] getFiles()
{
ArrayList v = new ArrayList();
final int size = filesets.size();
for( int i = 0; i < size; i++ )
{
FileSet fs = (FileSet)filesets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner( getProject() );
ds.scan();
... | protected File[] getFiles()
{
ArrayList v = new ArrayList();
final int size = filesets.size();
for( int i = 0; i < size; i++ )
{
FileSet fs = (FileSet)filesets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner();
ds.scan();
Str... |
protected Hashtable scanFileSets()
{
Hashtable files = new Hashtable();
for( int i = 0; i < fileSets.size(); i++ )
{
FileSet fs = (FileSet)fileSets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner( getProject() );
ds.scan();
String[] ... | protected Hashtable scanFileSets()
{
Hashtable files = new Hashtable();
for( int i = 0; i < fileSets.size(); i++ )
{
FileSet fs = (FileSet)fileSets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner();
ds.scan();
String[] f = ds.getIncl... |
public void doMail()
throws MessagingException, AddressException, TaskException
{
Properties props = new Properties();
props.put( "mail.smtp.host", mailhost );
//Aside, the JDK is clearly unaware of the scottish 'session', which
//involves excessive quantities of alcohol... | public void doMail()
throws MessagingException, AddressException, TaskException
{
Properties props = new Properties();
props.put( "mail.smtp.host", mailhost );
//Aside, the JDK is clearly unaware of the scottish 'session', which
//involves excessive quantities of alcohol... |
public void execute()
throws TaskException
{
if( P4View != null )
{
addCmd = P4View;
}
P4CmdOpts = ( m_changelist > 0 ) ? ( "-c " + m_changelist ) : "";
StringBuffer filelist = new StringBuffer();
for( int i = 0; i < filesets.size(); i++ )
... | public void execute()
throws TaskException
{
if( P4View != null )
{
addCmd = P4View;
}
P4CmdOpts = ( m_changelist > 0 ) ? ( "-c " + m_changelist ) : "";
StringBuffer filelist = new StringBuffer();
for( int i = 0; i < filesets.size(); i++ )
... |
protected File[] getSnapshots()
throws TaskException
{
ArrayList v = new ArrayList();
final int size = filesets.size();
for( int i = 0; i < size; i++ )
{
FileSet fs = (FileSet)filesets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner( getProj... | protected File[] getSnapshots()
throws TaskException
{
ArrayList v = new ArrayList();
final int size = filesets.size();
for( int i = 0; i < size; i++ )
{
FileSet fs = (FileSet)filesets.get( i );
DirectoryScanner ds = fs.getDirectoryScanner();
... |
public void execute()
throws TaskException
{
if( regex == null )
throw new TaskException( "No expression to match." );
if( subs == null )
throw new TaskException( "Nothing to replace expression with." );
if( file != null && filesets.size() > 0 )
... | public void execute()
throws TaskException
{
if( regex == null )
throw new TaskException( "No expression to match." );
if( subs == null )
throw new TaskException( "Nothing to replace expression with." );
if( file != null && filesets.size() > 0 )
... |
public DirectoryScanner getDirectoryScanner( Project p )
{
DependScanner scanner = new DependScanner();
scanner.setBasedir( getDir( p ) );
scanner.setRootClasses( rootClasses );
scanner.scan();
return scanner;
}
| public DirectoryScanner getDirectoryScanner( Project p )
{
DependScanner scanner = new DependScanner();
scanner.setBasedir( getDir() );
scanner.setRootClasses( rootClasses );
scanner.scan();
return scanner;
}
|
protected ReplicaSharedObjectDescription getReplicaDescription(ID remoteMember) {
HashMap map = new HashMap();
map.put("args", new Object[] { transferParams, eclipseStageID });
map.put("types", new String[] { FileTransferParams.class.getName(),
ID.class.getName() });
return new ReplicaSharedObjectDescripti... | protected ReplicaSharedObjectDescription getReplicaDescription(ID remoteMember) {
HashMap map = new HashMap();
map.put("args", new Object[] { transferParams, eclipseStageID });
map.put("types", new String[] { FileTransferParams.class.getName(),
ID.class.getName() });
return new ReplicaSharedObjectDescripti... |
protected void synchronizeChildren() {
// no need to sync in the future
syncChildren = false;
// create children and link them as siblings
DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument;
NodeImpl last = null;
for (int index = ownerDocu... | protected void synchronizeChildren() {
// no need to sync in the future
syncChildren = false;
// create children and link them as siblings
DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument;
NodeImpl last = null;
for (int index = ownerDocu... |
protected void synchronizeChildren() {
if (syncData) {
synchronizeData();
}
// no need to sync in the future
syncChildren = false;
getNodeType(0);
// create children and link them as siblings
NodeImpl last = null;
for (int index = getFi... | protected void synchronizeChildren() {
if (syncData) {
synchronizeData();
}
// no need to sync in the future
syncChildren = false;
getNodeType(0);
// create children and link them as siblings
NodeImpl last = null;
for (int index = getFi... |
private void traverseComplexContent(Element complexContentElement,
XSComplexTypeDecl typeInfo,
boolean mixedOnType, XSDocumentInfo schemaDoc,
SchemaGrammar grammar)
throws ComplexTypeRecoverab... | private void traverseComplexContent(Element complexContentElement,
XSComplexTypeDecl typeInfo,
boolean mixedOnType, XSDocumentInfo schemaDoc,
SchemaGrammar grammar)
throws ComplexTypeRecoverab... |
public void formComponent(final FormComponent formComponent)
{
// Only update the component when it is visible and valid
if (formComponent.isVisibleInHierarchy() && formComponent.isValid())
{
// Potentially update the model
formComponent.updateModel();
}
}
});
}
| public void formComponent(final FormComponent formComponent)
{
// Only update the component when it is visible and valid
if (formComponent.isVisibleInHierarchy() && formComponent.isEnabled() && formComponent.isValid())
{
// Potentially update the model
formComponent.updateModel();
}
}... |
public static int COMPILE_MAX_SECONDS = 300;
/**
* Wait until this holder has not changed the number of messages
* in secs seconds, as a weak form of determining when the
* compile has completed.
* XXX implement "compile-complete" message instead.
* @param holder the IMessageHolder to ... | public static int COMPILE_MAX_SECONDS = 300;
/**
* Wait until this holder has not changed the number of messages
* in secs seconds, as a weak form of determining when the
* compile has completed.
* XXX implement "compile-complete" message instead.
* @param holder the IMessageHolder to ... |
public void run() {
final long waitBetweenAdds = interval * 1000l;
long curTime = System.currentTimeMillis();
final long timeout = curTime + MAX_MILLIS;
final Thread thread = Thread.currentThread();
int numAdded = 0;
while (!stop && (timeout > curTime)
&&... | public void run() {
final long waitBetweenAdds = interval * 1000l;
long curTime = System.currentTimeMillis();
final long timeout = curTime + MAX_MILLIS;
final Thread thread = Thread.currentThread();
int numAdded = 0;
while (!stop && (timeout > curTime)
&&... |
protected void doEndSuite(File suite, long duration) {
super.doEndSuite(suite, duration);
String suiteName = suite.getName();
// junit reporter doesn't like ".xml" on the end
suiteName = suiteName.substring(0,suiteName.indexOf('.'));
PrintStream out = streamsHandler.getLogStream();
out.println("<?xml versi... | protected void doEndSuite(File suite, long duration) {
super.doEndSuite(suite, duration);
String suiteName = suite.getName();
// junit reporter doesn't like ".xml" on the end
suiteName = suiteName.substring(0,suiteName.indexOf('.'));
PrintStream out = streamsHandler.getLogStream();
out.println("<?xml versi... |
private IWebService obtainInstance(IWebServiceProject wsProject, String implName)
{
for (IWebService ws : wsProject.getWebServices())
{
if (ws.getImplementation().equals(implName))
{
return ws;
}
}
final IWebService newWs = DomFactory.eINSTANCE.createIWebService();
util().setFeatureValue(newWs,... | private IWebService obtainInstance(IWebServiceProject wsProject, String implName)
{
for (IWebService ws : wsProject.getWebServices())
{
if (ws.getImplementation()!= null && ws.getImplementation().equals(implName))
{
return ws;
}
}
final IWebService newWs = DomFactory.eINSTANCE.createIWebService()... |
public PartialBlackBoxTestCase() {
super("test/data/blackbox/partial");
addTest(0, 0.0f);
addTest(1, 90.0f);
addTest(1, 180.0f);
addTest(0, 270.0f);
}
| public PartialBlackBoxTestCase() {
super("test/data/blackbox/partial");
addTest(1, 0.0f);
addTest(1, 90.0f);
addTest(1, 180.0f);
addTest(0, 270.0f);
}
|
public UnsupportedBlackBoxTestCase() {
super("test/data/blackbox/unsupported");
addTest(0, 0.0f);
addTest(0, 90.0f);
addTest(1, 180.0f);
addTest(0, 270.0f);
}
| public UnsupportedBlackBoxTestCase() {
super("test/data/blackbox/unsupported");
addTest(1, 0.0f);
addTest(0, 90.0f);
addTest(1, 180.0f);
addTest(0, 270.0f);
}
|
public Code128BlackBox2TestCase() {
super("test/data/blackbox/code128-2", new MultiFormatReader(), BarcodeFormat.CODE_128);
addTest(33, 39, 0.0f);
addTest(34, 37, 180.0f);
}
| public Code128BlackBox2TestCase() {
super("test/data/blackbox/code128-2", new MultiFormatReader(), BarcodeFormat.CODE_128);
addTest(33, 39, 0.0f);
addTest(34, 39, 180.0f);
}
|
public EAN13BlackBox2TestCase() {
super("test/data/blackbox/ean13-2", new MultiFormatReader(), BarcodeFormat.EAN_13);
addTest(10, 14, 0.0f);
addTest(10, 16, 180.0f);
}
| public EAN13BlackBox2TestCase() {
super("test/data/blackbox/ean13-2", new MultiFormatReader(), BarcodeFormat.EAN_13);
addTest(10, 16, 0.0f);
addTest(10, 16, 180.0f);
}
|
protected String getDocumentClassName() {
return documentClassName;
}
| protected String getDocumentClassName() {
return fDocumentClassName;
}
|
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
IValueMap attrs = tag.getAttributes();
String onFocus = getPalette().getChoicesOnFocusJS();
if (onFocus != null)
{
attrs.put("onFocus", onFocus);
}
tag.getAttributes().put("ondblclick", getPalette().getAddOnClickJS());
}
| protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
IValueMap attrs = tag.getAttributes();
String onFocus = getPalette().getChoicesOnFocusJS();
if (onFocus != null)
{
attrs.put("onfocus", onFocus);
}
tag.getAttributes().put("ondblclick", getPalette().getAddOnClickJS());
}
|
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
IValueMap attrs = tag.getAttributes();
String onFocus = getPalette().getSelectionOnFocusJS();
if (onFocus != null)
{
attrs.put("onFocus", onFocus);
}
tag.getAttributes().put("ondblclick", getPalette().getRemoveOnClickJS())... | protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
IValueMap attrs = tag.getAttributes();
String onFocus = getPalette().getSelectionOnFocusJS();
if (onFocus != null)
{
attrs.put("onfocus", onFocus);
}
tag.getAttributes().put("ondblclick", getPalette().getRemoveOnClickJS())... |
String[] value() default "";
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distributi... | String[] value() default "";
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distributi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.