try {
file = File.createTempFile(tempFileName, null);
} catch (final IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
-
}
public void cancel() {
stream = new FileInputStream(file);
return stream;
} catch (final FileNotFoundException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
return null;
try {
return new FileOutputStream(file);
} catch (final FileNotFoundException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
return null;
mem.append(" | Non-Heap (M):");
mem.append(mmBean.getNonHeapMemoryUsage().getUsed() / 1048576);
memoryStatus.setValue(mem.toString());
-
}
@Override
setTheme("runo");
w.addComponent(main);
setMainWindow(w);
-
}
}
try {
file = File.createTempFile(tempFileName, null);
} catch (final IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
-
}
@Override
try {
return new FileInputStream(file);
} catch (final FileNotFoundException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
return null;
};
} catch (final FileNotFoundException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
return null;
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
throwExecption.setValue(false);
throw new RuntimeException("Test execption in receiver.");
}
-
}
}
if (c != null) {
testPanelLayout.addComponent(c);
}
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException
+ | IllegalAccessException e) {
e.printStackTrace();
}
}
cont.addItem(t);
}
- } catch (ClassNotFoundException e) {
- // TODO Auto-generated catch block
- // e.printStackTrace();
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- // e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException e) {
// e.printStackTrace();
}
}
table.addActionHandler(new Handler() {
- Action[] actions = { new Action("FOO"),
- new Action("BAR"), new Action("CAR") };
+ Action[] actions = { new Action("FOO"), new Action("BAR"),
+ new Action("CAR") };
@Override
public Action[] getActions(Object target, Object sender) {
item.getItemProperty(propId).getValue());
}
- // TODO Auto-generated method stub
} catch (CloneNotSupportedException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
-
}
});
return table;
sb.append("\n");
}
- ByteArrayInputStream istream;
try {
- istream = new ByteArrayInputStream(
+ return new ByteArrayInputStream(
sb.toString().getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
return null;
}
- return istream; // new DownloadStream (istream,null,null);
-
}
}
}));
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
try {
is.close();
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
addComponent(cl);
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
t.addTab(GDocs(""), "Abr 2012");
} catch (MalformedURLException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
hP.addComponent(t);
addComponent(custom);
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
// try {
// Thread.sleep(200);
// } catch (InterruptedException e) {
- // // TODO Auto-generated catch block
// e.printStackTrace();
// }
// System.out.println("Done get to work.");
item.getItemProperty(propId).getValue());
}
- // TODO Auto-generated method stub
} catch (CloneNotSupportedException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
try {
fg.commit();
} catch (CommitException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
} else {
try {
l = (Layout) currentValue.newInstance();
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
}
cc.setWidth("300px");
cc.setHeight("300px");
return cc;
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
return null;
try {
return (Layout) value.newInstance();
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
return null;
AbstractComponent newInstance = null;
try {
newInstance = (AbstractComponent) componentClass.newInstance();
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
if (componentClass == Label.class) {
AbstractOrderedLayout layout = null;
try {
layout = (AbstractOrderedLayout) layoutClass.newInstance();
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
layout.setMargin(false);
protected static final String CALENDAR_32_PNG = "../runo/icons/16/calendar.png";
protected static final String LOCK_16_PNG = "../runo/icons/16/lock.png";
protected static final String GLOBE_16_PNG = "../runo/icons/16/globe.png";
- public Alignment[] alignments = { Alignment.TOP_CENTER,
- Alignment.TOP_LEFT, Alignment.TOP_RIGHT, Alignment.BOTTOM_CENTER,
- Alignment.BOTTOM_LEFT, Alignment.BOTTOM_RIGHT,
- Alignment.MIDDLE_CENTER, Alignment.MIDDLE_LEFT,
- Alignment.MIDDLE_RIGHT };
+ public Alignment[] alignments = { Alignment.TOP_CENTER, Alignment.TOP_LEFT,
+ Alignment.TOP_RIGHT, Alignment.BOTTOM_CENTER, Alignment.BOTTOM_LEFT,
+ Alignment.BOTTOM_RIGHT, Alignment.MIDDLE_CENTER,
+ Alignment.MIDDLE_LEFT, Alignment.MIDDLE_RIGHT };
- public final String[] CAPTIONS = { "",
- "VeryLongOneWordCaption",
+ public final String[] CAPTIONS = { "", "VeryLongOneWordCaption",
"Very long caption of 50 approximately symbols aaaaaaaaaaaa aaaaaa aaa " };
Resource[] ICONS = { new ThemeResource(CALENDAR_32_PNG),
new ThemeResource(LOCK_16_PNG), new ThemeResource(GLOBE_16_PNG) };
l1.setSpacing(false);
l2.setMargin(false);
l2.setSpacing(false);
- } catch (InstantiationException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (IllegalAccessException e1) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e1) {
e1.printStackTrace();
}
if (layoutClass.equals(HorizontalLayout.class)) {
((AbstractOrderedLayout) curLayout).setMargin(false);
((AbstractOrderedLayout) curLayout).setSpacing(false);
}
- } catch (InstantiationException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (IllegalAccessException e1) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e1) {
e1.printStackTrace();
}
final Component[] components = new Component[CAPTIONS.length];
AbstractComponent comp = null;
try {
comp = compType.newInstance();
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
+ } catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
components[i] = comp;
try {
Thread.sleep(5000);
} catch (InterruptedException e1) {
- // TODO Auto-generated catch block
e1.printStackTrace();
}
// Breakpoint here
try {
Thread.sleep(200);
} catch (InterruptedException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
access(new Runnable() {
t.getVisibleColumns().length, t.size(),
iteration++));
}
-
});
}
-
}
};
Thread tr = new Thread(r);
item.getItemProperty("Property" + col).setValue(
"Row " + row + " col " + col + "(" + iter + ")");
}
-
}
-
return ic;
}
os.close();
hugeFileResource = new FileResource(hugeFile);
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
-
}
@Override
try {
return new FileInputStream("FIXME C:/temp/file.xls");
} catch (FileNotFoundException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
return null;
}
try {
c.saveEditor();
} catch (CommitException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebElement;
-import com.vaadin.testbench.elements.TableElement;
import com.vaadin.testbench.elements.ButtonElement;
+import com.vaadin.testbench.elements.TableElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
btnDel.click();
return diffsInWorkingTree;
- } catch (IOException e) {
- e.printStackTrace();
- } catch (NoWorkTreeException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (GitAPIException e) {
- // TODO Auto-generated catch block
+ } catch (IOException | NoWorkTreeException | GitAPIException e) {
e.printStackTrace();
}
return null;
List<?> l = findClasses(baseClass, basePackage, ignorePackages);
return l.toArray(new Class[] {});
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
return null;
public int compare(Class<? extends T> o1, Class<? extends T> o2) {
return o1.getName().compareTo(o2.getName());
}
-
});
return classes;
addClassIfMatches(result, fullyQualifiedClassName, baseClass);
}
}
-
}
/**
return true;
}
-}
\ No newline at end of file
+}