rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
this.setLineStyle(Graphics.LINE_SOLID);
public ClassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0;...
org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_NameContainer0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
classFigure_NameContainer0.setLineStyle(Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizonta...
GridLayoutData constraintClassFigure_NameContainer0 = new GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout();
CenterLayout layoutClassFigure_NameContainer0 = new CenterLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel();
WrapLabel classFigure_name1 = new WrapLabel();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_Body0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_Body0.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gm...
GridLayoutData constraintClassFigure_Body0 = new GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout();
ToolbarLayout layoutClassFigure_Body0 = new ToolbarLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER
layoutClassFigure_Body0.setMinorAlignment(ToolbarLayout.ALIGN_CENTER
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_PropertiesCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_PropertiesCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_OperationsCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_OperationsCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_ClassesCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_ClassesCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_LiteralsCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_LiteralsCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_OthersCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_OthersCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutline...
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_ClassesCompartment() {
public RectangleFigure getFigureClassFigure_ClassesCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_ClassesCompartment() { return fClassFigure_ClassesCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_LiteralsCompartment() {
public RectangleFigure getFigureClassFigure_LiteralsCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_LiteralsCompartment() { return fClassFigure_LiteralsCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OperationsCompartment() {
public RectangleFigure getFigureClassFigure_OperationsCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OperationsCompartment() { return fClassFigure_OperationsCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OthersCompartment() {
public RectangleFigure getFigureClassFigure_OthersCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OthersCompartment() { return fClassFigure_OthersCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_PropertiesCompartment() {
public RectangleFigure getFigureClassFigure_PropertiesCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_PropertiesCompartment() { return fClassFigure_PropertiesCompartment; }
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureClassFigure_name() {
public WrapLabel getFigureClassFigure_name() {
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureClassFigure_name() { return fClassFigure_name; }
private void setFigureClassFigure_ClassesCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_ClassesCompartment(RectangleFigure fig) {
private void setFigureClassFigure_ClassesCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_ClassesCompartment = fig; }
private void setFigureClassFigure_LiteralsCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_LiteralsCompartment(RectangleFigure fig) {
private void setFigureClassFigure_LiteralsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_LiteralsCompartment = fig; }
private void setFigureClassFigure_OperationsCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_OperationsCompartment(RectangleFigure fig) {
private void setFigureClassFigure_OperationsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_OperationsCompartment = fig; }
private void setFigureClassFigure_OthersCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_OthersCompartment(RectangleFigure fig) {
private void setFigureClassFigure_OthersCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_OthersCompartment = fig; }
private void setFigureClassFigure_PropertiesCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_PropertiesCompartment(RectangleFigure fig) {
private void setFigureClassFigure_PropertiesCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_PropertiesCompartment = fig; }
private void setFigureClassFigure_name(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) {
private void setFigureClassFigure_name(WrapLabel fig) {
private void setFigureClassFigure_name(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fClassFigure_name = fig; }
SimplePlotUtil.flipArray(pixels[1], size.height);
public Shape draw(Dimension size){ if(visible){ MicroSecondTimeRange overTimeRange = timeConfig.getTimeRange(seismogram). getOversizedTimeRange(BasicSeismogramDisplay.OVERSIZED_SCALE); try{ int[][] pixels = SimplePlotUtil.compressYvalues(seismogram, overTimeRange, ampConfig.getAmpRange(seismogram), size);...
this.stopImageCreation(); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); parent.removeDisplay(this); }
}
public void remove(MouseEvent me){ logger.debug(name + " being removed"); Iterator e = plotters.keySet().iterator(); while(e.hasNext()){ LocalSeismogram current = ((SeismogramPlotter)e.next()).getSeismogram(); timeRegistrar.removeSeismogram(current); ampRegistrar.removeSeismogram(current)...
public void setSuperUser(boolean val) {
public void setSuperUser(boolean val) throws CalFacadeException {
public void setSuperUser(boolean val) { superUser = val; }
getCal().setSuperUser(val);
public void setSuperUser(boolean val) { superUser = val; }
this.seismoAmpRange.put(current, new UnitRangeImpl(currentUnit.getMinValue(), currentUnit.getMaxValue(), currentUnit.getUnit()));
if(currentUnit != null){ this.seismoAmpRange.put(current, new UnitRangeImpl(currentUnit.getMinValue(), currentUnit.getMaxValue(), currentUnit.getUnit())); }
public void update(HashMap seismos, UnitRangeImpl generalRange){ this.generalRange = generalRange; Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); UnitRangeImpl currentUnit = (UnitRangeImpl)seismos.get(current); this.seismoAmpRange.p...
public void back(int n) throws AccessException { if (pos - n < 0) { throw AccessException.badACLRewind(); } pos -= n;
public void back() throws AccessException { back(1);
public void back(int n) throws AccessException { if (pos - n < 0) { throw AccessException.badACLRewind(); } pos -= n; }
insets.top -= y+top; insets.bottom -= bottom + y; FontMetrics fm = copy.getFontMetrics();
FontMetrics fm = copy.getFontMetrics();
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g; if (copy != null) { try { Fon...
bottom = majorTickLength+15;
bottom = 20;
public void setBottomScaleMapper(ScaleMapper scaleMap) { this.bottomScaleMap = scaleMap; bottom = majorTickLength+15; //guess as not sure of what font will be }
right = 40;
right = 50;
public void setRightScaleMapper(ScaleMapper scaleMap) { this.rightScaleMap = scaleMap; right = 40; }
if (!random) { playNext(); } else { playRandom();
firePlaybackCompleted(player);
public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } }
}
public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } }
}
firePlaybackStarted(player); }
public void playbackStarted() { }
}
firePlaybackStopped(player); }
public void playbackStopped() { }
public DataSetSeismogram (LocalSeismogramImpl seismo, DataSet ds){ this.seis = seismo; this.dataSet = ds;
public DataSetSeismogram(DataSetSeismogram dss, String suffix){ this(dss.getSeismogram(), dss.getDataSet(), dss.getSuffix() + suffix);
public DataSetSeismogram (LocalSeismogramImpl seismo, DataSet ds){ this.seis = seismo; this.dataSet = ds; }
public Calendars(Calintf cal, AccessUtil access, BwUser user,
public Calendars(Calintf cal, AccessUtil access,
public Calendars(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) throws CalFacadeException { super(cal, access, user, currentMode, ignoreCreator, debug); publicCalendarRootPath = "/" + getSyspars().getPublicCalendarRoot(); ...
super(cal, access, user, currentMode, ignoreCreator, debug);
super(cal, access, currentMode, ignoreCreator, debug);
public Calendars(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) throws CalFacadeException { super(cal, access, user, currentMode, ignoreCreator, debug); publicCalendarRootPath = "/" + getSyspars().getPublicCalendarRoot(); ...
val.setOwner(user);
val.setOwner(getUser());
public void addCalendar(BwCalendar val, BwCalendar parent) throws CalFacadeException { HibSession sess = getSess(); /* We need write access to the parent */ access.accessible(parent, privWrite, false); /** Is the parent a calendar collection? *//* sess.namedQuery("countCalendarEventRefs"); sess....
sess.setEntity("owner", user);
sess.setEntity("owner", getUser());
public Collection getAddContentCalendarCollections() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getUserCalendarCollections"); sess.setEntity("owner", user); sess.cacheableQuery(); return access.checkAccess(sess.getList(), privWriteContent, noAccessReturnsNull); ...
sess.setEntity("owner", user);
sess.setEntity("owner", getUser());
public Collection getCalendarCollections() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getUserCalendarCollections"); sess.setEntity("owner", user); sess.cacheableQuery(); return access.checkAccess(sess.getList(), privWrite, noAccessReturnsNull); }
sess.setString("path", userCalendarRootPath + "/" + user.getAccount());
sess.setString("path", userCalendarRootPath + "/" + getUser().getAccount());
public BwCalendar getCalendars() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getCalendarByPath"); sess.setString("path", userCalendarRootPath + "/" + user.getAccount()); sess.cacheableQuery(); BwCalendar cal = (BwCalendar)sess.getUnique(); return cloneAndCheckAccess(cal...
return getPreferences().getSubscriptions();
Collection c = getPreferences().getSubscriptions(); Iterator it = c.iterator(); while (it.hasNext()) { BwSubscription sub = (BwSubscription)it.next(); getSubCalendar(sub); } return c;
public Collection getSubscriptions() throws CalFacadeException { return getPreferences().getSubscriptions(); }
node.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/workspace.jsf");
node.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/workspace.jsp");
public ViewNode getWorkspaceRoot(){ //ViewNode workspaceNode = getApplicationRoot().getChild("workspace"); if(workspaceNode==null){ DefaultViewNode node = new DefaultViewNode(iwma); node.setViewId("workspace"); //getApplicationRoot().addChildViewNode(node); node.setParent(getApplicationRoot()); node.setJsp...
DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot());
try { Class applicationClass = Class.forName("com.idega.builder.app.IBApplication"); FramedWindowClassViewNode builderNode = new FramedWindowClassViewNode("builder",getWorkspaceRoot()); builderNode.setWindowClass(applicationClass); builderNode.setJspUri(getWorkspaceRoot().getJSPURI()); } catch (ClassNotFoundException e...
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.id...
contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf");
contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.id...
DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bu...
DefaultViewNode articleNode = new DefaultViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsp"); DefaultViewNode createNewArticleNode = new DefaultViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp...
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.id...
DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf");
DefaultViewNode previewArticlesNode = new DefaultViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.id...
DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode);
DefaultViewNode documentNode = new DefaultViewNode("document",contentNode);
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.id...
DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf");
DefaultViewNode searchNode = new DefaultViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.id...
public DefaultViewNode(IWMainApplication iwma) { this.setIWMainApplication(iwma);
public DefaultViewNode(String viewId,ViewNode parent) { this.setViewId(viewId); setParent(parent);
public DefaultViewNode(IWMainApplication iwma) { this.setIWMainApplication(iwma); }
selection3CCount = 0;
public void clear3CSelections(){ get3CSelections().clear(); repaint(); }
selectionCount = 0;
public void clearRegSelections(){ getSelections().clear(); repaint(); }
selectionCount = 0; selection3CCount = 0;
public void clearSelections(){ parent.removeSelectionDisplay(); parent.remove3CSelectionDisplay(); repaint(); }
Collection gs = sess.getList();
Set gs = new TreeSet(sess.getList());
public Collection getGroups(BwPrincipal val) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getAdminGroups"); sess.setInt("entId", val.getId()); /* This is what I want to do but it inserts 'true' or 'false' sess.setBool("isgroup", (val instanceof BwGroup)); */ if (val i...
return addDisplay(dss, globalTimeRegistrar, name);
return addDisplay(dss, globalTimeRegistrar, globalAmpRegistrar, name);
public BasicSeismogramDisplay addDisplay(DataSetSeismogram dss, String name){ return addDisplay(dss, globalTimeRegistrar, name); }
selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } });
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); part...
if(400*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(400 * particleDisplays, tk.getScreenSize().height - 400);
if(particleWindow.getSize().width*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(particleWindow.getSize().width * particleDisplays, tk.getScreenSize().height - particleWindow.getSize().width);
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); part...
particleWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - 400);
particleWindow.setLocation(tk.getScreenSize().width - particleWindow.getSize().width, tk.getScreenSize().height - particleWindow.getSize().height);
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); part...
particleDisplay.setZoomOut(true);
particleDisplay.setZoomIn(true);
public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); }
selectionWindow.setSize(400, 200);
selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } }); selectionWindow.setSize(400, 200);
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismog...
creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor()));
creator.setDisplay(selectionDisplay.addDisplay(first, tr, ar, creator.getParent().getName() + "." + creator.getColor()));
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismog...
if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220));
if(selectionDisplays + selectionWindow.getSize().height < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - selectionWindow.getSize().width, tk.getScreenSize().height - (selectionDisplays + selectionWindow.getSize().height));
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismog...
selectionWindow.setLocation(tk.getScreenSize().width - 400, 0);
selectionWindow.setLocation(tk.getScreenSize().width - selectionWindow.getSize().width, 0);
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismog...
selectionDisplays += 220;
selectionDisplays += selectionWindow.getSize().height;
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismog...
creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor()));
creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, ar, creator.getParent().getName() + "." + creator.getColor()));
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwa...
if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400));
if((selectionDisplays + threeSelectionWindow.getSize().height) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - threeSelectionWindow.getSize().width, tk.getScreenSize().height - (selectionDisplays + threeSelectionWindow.getSize().height));
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwa...
threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0);
threeSelectionWindow.setLocation(tk.getScreenSize().width - threeSelectionWindow.getSize().width, 0);
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwa...
selectionDisplays+= 400;
selectionDisplays+= threeSelectionWindow.getSize().height;
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwa...
selectionDisplays -= 220;
selectionDisplays -= selectionWindow.getSize().height;
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); gl...
selectionDisplays -= 400;
selectionDisplays -= threeSelectionWindow.getSize().height;
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); gl...
selectionDisplays -= 220;
selectionDisplays -= selectionWindow.getSize().height;
public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ selectionWindow.dispose(); selectionDisplays -= 220; selectionDisplay = null; }else{ threeSelectionWindow.dispose(); selectionDisplays -= 400; threeSelectionDisplay = null; } }
selectionDisplays -= 400;
selectionDisplays -= threeSelectionWindow.getSize().height;
public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ selectionWindow.dispose(); selectionDisplays -= 220; selectionDisplay = null; }else{ threeSelectionWindow.dispose(); selectionDisplays -= 400; threeSelectionDisplay = null; } }
assertEquals(AGSymbol.alloc("+"), nativeMethod.base_getName());
assertEquals(AGSymbol.jAlloc("+"), nativeMethod.base_getName());
public void testAcquisition() { try { ATMethod nativeMethod = evalAndReturn("mirrorOn1.grabMethod(`+).base").base_asMethod(); assertEquals(NativeMethod.class, nativeMethod.getClass()); assertEquals(AGSymbol.alloc("+"), nativeMethod.base_getName()); } catch (InterpreterException e) { fail(e.getMessage()); } ...
assertEquals(AGSymbol.alloc("+"), m.base_getName());
assertEquals(AGSymbol.jAlloc("+"), m.base_getName());
public void testSelection() { try { ATObject clo = evalAndReturn("mirrorOn1.select(mirrorOn1.base, `+).base"); assertTrue(clo.base_isClosure()); ATClosure c = clo.base_asClosure(); ATMethod m = c.base_getMethod(); assertEquals(NativeMethod.class, m.getClass()); assertEquals(AGSymbol.alloc("+"), m.base_get...
size.width;
size.width/1000;
public static int[][] calculatePlottable(LocalSeismogram seismogram, UnitRangeImpl a, MicroSecondTimeRange t, Dimension size) throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; double pointsPerPixal =...
if( line == null ) return null;
private Message parseLine( String line, DataDictionary dataDictionary ) { if( skipLine(line, type) ) { return null; } try { String[] split = line.split("8=",2); if( split.length != 2 ) return null; line = "8=" + split[1]; if( delimiter == 0 ) delimiter = getDelimiter(line); String regexp = "[...
review.loadLogFile("C:/programming/acquire/logs/06.11.18-17.10.46 - 940 - tlstyer (501), Marnie (462), Chumba (446), trump (344).log");
private void reviewMode() { setMode(MODE_REVIEW); review.loadLogFile("C:/programming/acquire/logs/06.11.18-17.10.46 - 940 - tlstyer (501), Marnie (462), Chumba (446), trump (344).log"); synchronized (this) { while (!leaveReviewModeFlag) { try { wait(); } catch (InterruptedEx...
if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
}else if(majTickTime <= 30000000){
}else if(majTickTime <= 30 * 1000000){
public void calculateTicks(){ int majTickNum = totalPixels/50; majTickTime = timeIntv/majTickNum; majTickRatio = 10; if(majTickTime <= 100000){ timeFormat = new SimpleDateFormat("ss.S"); if(majTickTime <= 1000){ majTickTime = 1000; }else if(majTickTime <= 10000){ majTickTime = 10000; }else if(m...
numTicks = ((int)(timeIntv/(double)majTickTime) * majTickRatio);
double numTicksDbl = ((timeIntv/(double)majTickTime) * majTickRatio); numTicks = (int)numTicksDbl;
public void calculateTicks(){ int majTickNum = totalPixels/50; majTickTime = timeIntv/majTickNum; majTickRatio = 10; if(majTickTime <= 100000){ timeFormat = new SimpleDateFormat("ss.S"); if(majTickTime <= 1000){ majTickTime = 1000; }else if(majTickTime <= 10000){ majTickTime = 10000; }else if(m...
tickSpacing = totalPixels/(double)numTicks;
tickSpacing = totalPixels/numTicksDbl;
public void calculateTicks(){ int majTickNum = totalPixels/50; majTickTime = timeIntv/majTickNum; majTickRatio = 10; if(majTickTime <= 100000){ timeFormat = new SimpleDateFormat("ss.S"); if(majTickTime <= 1000){ majTickTime = 1000; }else if(majTickTime <= 10000){ majTickTime = 10000; }else if(m...
boolean try1 = false;
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventP...
BwEventProxy pr = (BwEventProxy)cei.getEvent(); if (debug) { trace("Deleted: " + pr.getTarget().getId()); }
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventP...
if (!debug) { return true; } trace("Matched: " + tryCei.getEvent().getId()); try1 = true; break;
return true;
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventP...
boolean try2 = deleted.contains(tryCei); trace(" try2 for : " + tryCei.getEvent().getId() + " gives " + try2); return try1 || try2;
return false;
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventP...
public void remove(MouseEvent me){
public void remove(){
public void remove(MouseEvent me){ logger.debug(name + " being removed"); this.stopImageCreation(); parent.removeDisplay(this); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); Iterator e = seismos.iterator(); while(e.hasNext()){ Loc...
Iterator e = seismos.iterator();
e = seismos.iterator();
public void remove(MouseEvent me){ logger.debug(name + " being removed"); this.stopImageCreation(); parent.removeDisplay(this); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); Iterator e = seismos.iterator(); while(e.hasNext()){ Loc...
newSelection = true;
public void selectRegion(MouseEvent one, MouseEvent two){ Insets insets = this.getInsets(); Dimension dim = getSize(); double x1percent, x2percent; if(one.getX() < two.getX()){ x1percent = (one.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); x2percent = (two.getX() - insets.left...