bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
public void testCaching() { Map cacheMap = new HashMap(); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap = new HashMap(); queryMap.put(defaultAttr, "edalquist"); queryMap.put("name.first", "Eric"); queryMap.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); }
|
public void testCaching() { Map cacheMap = new HashMap(); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap = new HashMap(); queryMap.put(defaultAttr, "edalquist"); queryMap.put("name.first", "Eric"); queryMap.put("name.last", "Dalquist"); result = dao.getUserAttributes(queryMap); this.validateUser1(result); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); }
| 1,119,612
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
| 1,119,613
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
| 1,119,614
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
| 1,119,615
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
| 1,119,616
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
| 1,119,617
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
|
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
| 1,119,618
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(75, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
| 1,119,619
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
| 1,119,620
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
| 1,119,621
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
| 1,119,622
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Dickerchen"); }
|
private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and Feel..."); try { setLookAndFeel(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(25, "Modules: Loading list..."); try { ModuleConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(35, "Modules: Loading JARs..."); try { loadModules(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(50, "Modules: Checking dependencies..."); try { checkModuleDependencies(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(55, "Modules: Loading auto-start list..."); try { ModuleAutoStartConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(60, "Modules: Analyzing commandline arguments..."); try { startArgRelatedModules(args); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); try { makeVisible(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(100, "Have fun!"); }
| 1,119,623
|
private void startArgRelatedModules(String[] args) { if (args == null) { return; } ModuleContainer[] modules = ModuleLoader.getLoadedModules(); for (int i = 0; i < args.length; i++) { String arg = args[i]; try { URL url = new URL(arg); String protocol = url.getProtocol(); for (int j = 0; j < modules.length; j++) { if (modules[i].handlesProtocol(protocol)) { ModuleFactory.newInstance(modules[i], new Object[] { url }); } } } catch (Exception exc) { } } }
|
private void startArgRelatedModules(String[] args) { if (args == null) { return; } ModuleContainer[] modules = ModuleLoader.getLoadedModules(); for (int i = 0; i < args.length; i++) { String arg = args[i]; try { URL url = new URL(arg); String protocol = url.getProtocol(); for (int j = 0; j < modules.length; j++) { if (modules[i].handlesProtocol(protocol)) { ModuleFactory.newInstance(modules[i], new Object[] { url }); } } } catch (Exception exc) { } } }
| 1,119,624
|
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); timeConfig.removeSeismogram(current); this.addSeismogram(current); newTimeConfig.addSeismogram(current, (MicroSecondDate)seismos.get(current)); } timeConfig = newTimeConfig; timeConfig.addTimeSyncListener(this); timeFinder = timeConfig.getTimeFinder(); }
|
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); timeConfig.removeSeismogram(current); this.addSeismogram(current); newTimeConfig.addSeismogram(current, (MicroSecondDate)seismos.get(current)); } timeConfig = newTimeConfig; timeConfig.addTimeSyncListener(this); timeFinder = timeConfig.getTimeFinder(); }
| 1,119,626
|
public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ System.out.println("The radiobutton UN SELECTED is "+ ((AbstractButton)ae.getItem()).getText()); view.removeDisplaykey(((AbstractButton)ae.getItem()).getText()); } //view.setDisplayKey(ae.getActionCommand()); repaint(); }
|
public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { System.out.println("$$&$&%$&%$&$&&$$&$&$&$&%^&$%&$^$&%&$^&$^%&$%^&$The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ System.out.println("The radiobutton UN SELECTED is "+ ((AbstractButton)ae.getItem()).getText()); view.removeDisplaykey(((AbstractButton)ae.getItem()).getText()); } //view.setDisplayKey(ae.getActionCommand()); repaint(); }
| 1,119,627
|
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout(particleDisplayPanel); radioPanel = new JPanel(); this.setLayout(new BorderLayout()); particleDisplayPanel.setLayout(overlayLayout); radioPanel.setLayout(new GridLayout(1, 0)); if(timeConfigRegistrar != null) { timeConfigRegistrar.addTimeSyncListener(this); } view = new ParticleMotionView(this); view.setSize(new java.awt.Dimension(300, 300)); particleDisplayPanel.add(view, PARTICLE_MOTION_LAYER); hAmpScaleMap = new AmpScaleMapper(50, 4, hAmpConfigRegistrar.getAmpRange(hseis)); vAmpScaleMap = new AmpScaleMapper(50, 4, vAmpConfigRegistrar.getAmpRange(hseis)); scaleBorder = new ScaleBorder(); scaleBorder.setBottomScaleMapper(hAmpScaleMap); scaleBorder.setLeftScaleMapper(vAmpScaleMap); hTitleBorder = new BottomTitleBorder(hseis.getSeismogram().getName()); vTitleBorder = new CenterTitleBorder(hseis.getSeismogram().getName()); particleDisplayPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), hTitleBorder), // BorderFactory.createCompoundBorder(hTitleBorder, // vTitleBorder)), BorderFactory.createCompoundBorder( scaleBorder, BorderFactory.createLoweredBevelBorder())) ); add(particleDisplayPanel, BorderLayout.CENTER); radioPanel.setVisible(false); add(radioPanel, BorderLayout.SOUTH); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); // radioPanel.addContainerListener(new ContainerAdapter() {// public void componentAdded(ContainerEvent e) {// System.out.println("******************************* COMPONENT is ADDED");// resize();// }// public void componentRemove(ContainerEvent e) {// resize();// }// }); updateTimeRange(); Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, advancedOption, true, this)); t.start(); }
|
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout(particleDisplayPanel); radioPanel = new JPanel(); this.setLayout(new BorderLayout()); particleDisplayPanel.setLayout(overlayLayout); radioPanel.setLayout(new GridLayout(1, 0)); if(timeConfigRegistrar != null) { timeConfigRegistrar.addTimeSyncListener(this); } view = new ParticleMotionView(this); view.setSize(new java.awt.Dimension(300, 300)); particleDisplayPanel.add(view, PARTICLE_MOTION_LAYER); hAmpScaleMap = new AmpScaleMapper(50, 4, hAmpConfigRegistrar.getAmpRange(hseis)); vAmpScaleMap = new AmpScaleMapper(50, 4, vAmpConfigRegistrar.getAmpRange(hseis)); scaleBorder = new ScaleBorder(); scaleBorder.setBottomScaleMapper(hAmpScaleMap); scaleBorder.setLeftScaleMapper(vAmpScaleMap); hTitleBorder = new BottomTitleBorder("X - axis Title"); vTitleBorder = new CenterTitleBorder(hseis.getSeismogram().getName()); particleDisplayPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), hTitleBorder), // BorderFactory.createCompoundBorder(hTitleBorder, // vTitleBorder)), BorderFactory.createCompoundBorder( scaleBorder, BorderFactory.createLoweredBevelBorder())) ); add(particleDisplayPanel, BorderLayout.CENTER); radioPanel.setVisible(false); add(radioPanel, BorderLayout.SOUTH); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); // radioPanel.addContainerListener(new ContainerAdapter() {// public void componentAdded(ContainerEvent e) {// System.out.println("******************************* COMPONENT is ADDED");// resize();// }// public void componentRemove(ContainerEvent e) {// resize();// }// }); updateTimeRange(); Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, advancedOption, true, this)); t.start(); }
| 1,119,629
|
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout(particleDisplayPanel); radioPanel = new JPanel(); this.setLayout(new BorderLayout()); particleDisplayPanel.setLayout(overlayLayout); radioPanel.setLayout(new GridLayout(1, 0)); if(timeConfigRegistrar != null) { timeConfigRegistrar.addTimeSyncListener(this); } view = new ParticleMotionView(this); view.setSize(new java.awt.Dimension(300, 300)); particleDisplayPanel.add(view, PARTICLE_MOTION_LAYER); hAmpScaleMap = new AmpScaleMapper(50, 4, hAmpConfigRegistrar.getAmpRange(hseis)); vAmpScaleMap = new AmpScaleMapper(50, 4, vAmpConfigRegistrar.getAmpRange(hseis)); scaleBorder = new ScaleBorder(); scaleBorder.setBottomScaleMapper(hAmpScaleMap); scaleBorder.setLeftScaleMapper(vAmpScaleMap); hTitleBorder = new BottomTitleBorder(hseis.getSeismogram().getName()); vTitleBorder = new CenterTitleBorder(hseis.getSeismogram().getName()); particleDisplayPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), hTitleBorder), // BorderFactory.createCompoundBorder(hTitleBorder, // vTitleBorder)), BorderFactory.createCompoundBorder( scaleBorder, BorderFactory.createLoweredBevelBorder())) ); add(particleDisplayPanel, BorderLayout.CENTER); radioPanel.setVisible(false); add(radioPanel, BorderLayout.SOUTH); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); // radioPanel.addContainerListener(new ContainerAdapter() {// public void componentAdded(ContainerEvent e) {// System.out.println("******************************* COMPONENT is ADDED");// resize();// }// public void componentRemove(ContainerEvent e) {// resize();// }// }); updateTimeRange(); Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, advancedOption, true, this)); t.start(); }
|
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout(particleDisplayPanel); radioPanel = new JPanel(); this.setLayout(new BorderLayout()); particleDisplayPanel.setLayout(overlayLayout); radioPanel.setLayout(new GridLayout(1, 0)); if(timeConfigRegistrar != null) { timeConfigRegistrar.addTimeSyncListener(this); } view = new ParticleMotionView(this); view.setSize(new java.awt.Dimension(300, 300)); particleDisplayPanel.add(view, PARTICLE_MOTION_LAYER); hAmpScaleMap = new AmpScaleMapper(50, 4, hAmpConfigRegistrar.getAmpRange(hseis)); vAmpScaleMap = new AmpScaleMapper(50, 4, vAmpConfigRegistrar.getAmpRange(hseis)); scaleBorder = new ScaleBorder(); scaleBorder.setBottomScaleMapper(hAmpScaleMap); scaleBorder.setLeftScaleMapper(vAmpScaleMap); hTitleBorder = new BottomTitleBorder(hseis.getSeismogram().getName()); vTitleBorder = new LeftTitleBorder("Y - axis Title"); particleDisplayPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), hTitleBorder), // BorderFactory.createCompoundBorder(hTitleBorder, // vTitleBorder)), BorderFactory.createCompoundBorder( scaleBorder, BorderFactory.createLoweredBevelBorder())) ); add(particleDisplayPanel, BorderLayout.CENTER); radioPanel.setVisible(false); add(radioPanel, BorderLayout.SOUTH); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); // radioPanel.addContainerListener(new ContainerAdapter() {// public void componentAdded(ContainerEvent e) {// System.out.println("******************************* COMPONENT is ADDED");// resize();// }// public void componentRemove(ContainerEvent e) {// resize();// }// }); updateTimeRange(); Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, advancedOption, true, this)); t.start(); }
| 1,119,630
|
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout(particleDisplayPanel); radioPanel = new JPanel(); this.setLayout(new BorderLayout()); particleDisplayPanel.setLayout(overlayLayout); radioPanel.setLayout(new GridLayout(1, 0)); if(timeConfigRegistrar != null) { timeConfigRegistrar.addTimeSyncListener(this); } view = new ParticleMotionView(this); view.setSize(new java.awt.Dimension(300, 300)); particleDisplayPanel.add(view, PARTICLE_MOTION_LAYER); hAmpScaleMap = new AmpScaleMapper(50, 4, hAmpConfigRegistrar.getAmpRange(hseis)); vAmpScaleMap = new AmpScaleMapper(50, 4, vAmpConfigRegistrar.getAmpRange(hseis)); scaleBorder = new ScaleBorder(); scaleBorder.setBottomScaleMapper(hAmpScaleMap); scaleBorder.setLeftScaleMapper(vAmpScaleMap); hTitleBorder = new BottomTitleBorder(hseis.getSeismogram().getName()); vTitleBorder = new CenterTitleBorder(hseis.getSeismogram().getName()); particleDisplayPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), hTitleBorder), // BorderFactory.createCompoundBorder(hTitleBorder, // vTitleBorder)), BorderFactory.createCompoundBorder( scaleBorder, BorderFactory.createLoweredBevelBorder())) ); add(particleDisplayPanel, BorderLayout.CENTER); radioPanel.setVisible(false); add(radioPanel, BorderLayout.SOUTH); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); // radioPanel.addContainerListener(new ContainerAdapter() {// public void componentAdded(ContainerEvent e) {// System.out.println("******************************* COMPONENT is ADDED");// resize();// }// public void componentRemove(ContainerEvent e) {// resize();// }// }); updateTimeRange(); Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, advancedOption, true, this)); t.start(); }
|
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout(particleDisplayPanel); radioPanel = new JPanel(); this.setLayout(new BorderLayout()); particleDisplayPanel.setLayout(overlayLayout); radioPanel.setLayout(new GridLayout(1, 0)); if(timeConfigRegistrar != null) { timeConfigRegistrar.addTimeSyncListener(this); } view = new ParticleMotionView(this); view.setSize(new java.awt.Dimension(300, 300)); particleDisplayPanel.add(view, PARTICLE_MOTION_LAYER); hAmpScaleMap = new AmpScaleMapper(50, 4, hAmpConfigRegistrar.getAmpRange(hseis)); vAmpScaleMap = new AmpScaleMapper(50, 4, vAmpConfigRegistrar.getAmpRange(hseis)); scaleBorder = new ScaleBorder(); scaleBorder.setBottomScaleMapper(hAmpScaleMap); scaleBorder.setLeftScaleMapper(vAmpScaleMap); hTitleBorder = new BottomTitleBorder(hseis.getSeismogram().getName()); vTitleBorder = new CenterTitleBorder(hseis.getSeismogram().getName()); particleDisplayPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), // BorderFactory.createCompoundBorder(hTitleBorder, // vTitleBorder)), BorderFactory.createCompoundBorder( scaleBorder, BorderFactory.createLoweredBevelBorder())) ); add(particleDisplayPanel, BorderLayout.CENTER); radioPanel.setVisible(false); add(radioPanel, BorderLayout.SOUTH); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); // radioPanel.addContainerListener(new ContainerAdapter() {// public void componentAdded(ContainerEvent e) {// System.out.println("******************************* COMPONENT is ADDED");// resize();// }// public void componentRemove(ContainerEvent e) {// resize();// }// }); updateTimeRange(); Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, advancedOption, true, this)); t.start(); }
| 1,119,631
|
public void addAzimuthLine(double degrees) { view.addAzimuthLine(degrees); }
|
public synchronized void addAzimuthLine(double degrees) { view.addAzimuthLine(degrees); }
| 1,119,633
|
public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, false, false, this)); t.start(); }
|
public synchronized void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, false, false, this)); t.start(); }
| 1,119,634
|
public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, false, false, this)); t.start(); }
|
public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Thread(new ParticleMotionDisplayThread(hseis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, buttonPanel, buttonPanel, this)); t.start(); }
| 1,119,635
|
public void addSector(double degreeone, double degreetwo) { view.addSector(degreeone, degreetwo); }
|
public synchronized void addSector(double degreeone, double degreetwo) { view.addSector(degreeone, degreetwo); }
| 1,119,637
|
public void displayBackAzimuth(edu.sc.seis.fissuresUtil.xml.DataSet dataset, ChannelId chanId) { edu.sc.seis.fissuresUtil.cache.CacheEvent cacheEvent = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataset).getEvent(); Channel channel = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataset).getChannel(chanId); if(cacheEvent != null) { try { Origin origin = cacheEvent.get_preferred_origin(); Station station = channel.my_site.my_station; double azimuth = SphericalCoords.azimuth(station.my_location.latitude, station.my_location.longitude, origin.my_location.latitude, origin.my_location.longitude); double angle = 90 - azimuth; addAzimuthLine(angle); addSector(angle+5, angle-5); } catch(NoPreferredOrigin npoe) { logger.debug("no preferred origin"); } } }
|
public synchronized void displayBackAzimuth(edu.sc.seis.fissuresUtil.xml.DataSet dataset, ChannelId chanId) { edu.sc.seis.fissuresUtil.cache.CacheEvent cacheEvent = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataset).getEvent(); Channel channel = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataset).getChannel(chanId); if(cacheEvent != null) { try { Origin origin = cacheEvent.get_preferred_origin(); Station station = channel.my_site.my_station; double azimuth = SphericalCoords.azimuth(station.my_location.latitude, station.my_location.longitude, origin.my_location.latitude, origin.my_location.longitude); double angle = 90 - azimuth; addAzimuthLine(angle); addSector(angle+5, angle-5); } catch(NoPreferredOrigin npoe) { logger.debug("no preferred origin"); } } }
| 1,119,638
|
public void formCheckBoxPanel(ChannelId[] channelGroup) { //radioPanel.removeAll(); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < channelGroup.length; counter++) { for(int subcounter = counter+1; subcounter < channelGroup.length; subcounter++) { String labelStr = getOrientationName(channelGroup[counter].channel_code)+"-"+ getOrientationName(channelGroup[subcounter].channel_code); JCheckBox radioButton = new JCheckBox(labelStr); radioButton.setActionCommand(labelStr); radioButton.addItemListener(new RadioButtonListener()); arrayList.add(radioButton); } } JCheckBox[] checkBoxes = new JCheckBox[arrayList.size()]; checkBoxes = (JCheckBox[])arrayList.toArray(checkBoxes); checkBoxes[0].setSelected(true); view.setDisplayKey(checkBoxes[0].getText()); for(int counter = 0; counter < channelGroup.length; counter++) { radioPanel.add(checkBoxes[counter]); } radioPanel.setVisible(true); }
|
public void formCheckBoxPanel(ChannelId[] channelGroup) { //radioPanel.removeAll(); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < channelGroup.length; counter++) { for(int subcounter = counter+1; subcounter < channelGroup.length; subcounter++) { String labelStr = getOrientationName(channelGroup[counter].channel_code)+"-"+ getOrientationName(channelGroup[subcounter].channel_code); JCheckBox radioButton = new JCheckBox(labelStr); radioButton.setActionCommand(labelStr); radioButton.addItemListener(new RadioButtonListener()); arrayList.add(radioButton); } } JCheckBox[] checkBoxes = new JCheckBox[arrayList.size()]; checkBoxes = (JCheckBox[])arrayList.toArray(checkBoxes); initialButton = checkBoxes[0]; view.setDisplayKey(checkBoxes[0].getText()); for(int counter = 0; counter < channelGroup.length; counter++) { radioPanel.add(checkBoxes[counter]); } radioPanel.setVisible(true); }
| 1,119,639
|
public void formRadioSetPanel(ChannelId[] channelGroup) { //radioPanel.removeAll(); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < channelGroup.length; counter++) { for(int subcounter = counter + 1; subcounter < channelGroup.length; subcounter++) { String labelStr = getOrientationName(channelGroup[counter].channel_code)+"-"+ getOrientationName(channelGroup[subcounter].channel_code); JRadioButton radioButton = new JRadioButton(labelStr); radioButton.setActionCommand(labelStr); radioButton.addItemListener(new RadioButtonListener()); arrayList.add(radioButton); } } JRadioButton[] radioButtons = new JRadioButton[arrayList.size()]; radioButtons = (JRadioButton[])arrayList.toArray(radioButtons); radioButtons[0].setSelected(true); ButtonGroup buttonGroup = new ButtonGroup(); view.setDisplayKey(radioButtons[0].getText()); for(int counter = 0; counter < channelGroup.length; counter++) { buttonGroup.add(radioButtons[counter]); radioPanel.add(radioButtons[counter]); } radioPanel.setVisible(true); }
|
public void formRadioSetPanel(ChannelId[] channelGroup) { //radioPanel.removeAll(); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < channelGroup.length; counter++) { for(int subcounter = counter + 1; subcounter < channelGroup.length; subcounter++) { String labelStr = getOrientationName(channelGroup[counter].channel_code)+"-"+ getOrientationName(channelGroup[subcounter].channel_code); JRadioButton radioButton = new JRadioButton(labelStr); radioButton.setActionCommand(labelStr); radioButton.addItemListener(new RadioButtonListener()); arrayList.add(radioButton); } } JRadioButton[] radioButtons = new JRadioButton[arrayList.size()]; radioButtons = (JRadioButton[])arrayList.toArray(radioButtons); initialButton = radioButtons[0]; ButtonGroup buttonGroup = new ButtonGroup(); view.setDisplayKey(radioButtons[0].getText()); for(int counter = 0; counter < channelGroup.length; counter++) { buttonGroup.add(radioButtons[counter]); radioPanel.add(radioButtons[counter]); } radioPanel.setVisible(true); }
| 1,119,640
|
public ParticleMotionView getView() { return this.view; }
|
public synchronized ParticleMotionView getView() { return this.view; }
| 1,119,641
|
public void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width - particleDisplayPanel.getInsets().left - particleDisplayPanel.getInsets().right; height = height - particleDisplayPanel.getInsets().top - particleDisplayPanel.getInsets().bottom; if(width < height) { particleDisplayPanel.setSize(new Dimension(particleDisplayPanel.getSize().width, width + particleDisplayPanel.getInsets().top + particleDisplayPanel.getInsets().bottom)); } else { particleDisplayPanel.setSize(new Dimension(height + particleDisplayPanel.getInsets().left + particleDisplayPanel.getInsets().right, particleDisplayPanel.getSize().height)); } view.resize(); logger.debug("view coordinates are width = "+view.getSize().width+" height = "+view.getSize().height); logger.debug("view insets left = "+insets.left+" right = "+insets.right); logger.debug("view insets top = "+insets.top+" bottom = "+insets.bottom); logger.debug("display after width = "+getSize().width+" height = "+getSize().height); if(hAmpScaleMap != null) { hAmpScaleMap.setTotalPixels(dim.width - insets.left - insets.right); vAmpScaleMap.setTotalPixels(dim.height - insets.top - insets.bottom); } repaint(); }//
|
public synchronized void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width - particleDisplayPanel.getInsets().left - particleDisplayPanel.getInsets().right; height = height - particleDisplayPanel.getInsets().top - particleDisplayPanel.getInsets().bottom; if(width < height) { particleDisplayPanel.setSize(new Dimension(particleDisplayPanel.getSize().width, width + particleDisplayPanel.getInsets().top + particleDisplayPanel.getInsets().bottom)); } else { particleDisplayPanel.setSize(new Dimension(height + particleDisplayPanel.getInsets().left + particleDisplayPanel.getInsets().right, particleDisplayPanel.getSize().height)); } view.resize(); logger.debug("view coordinates are width = "+view.getSize().width+" height = "+view.getSize().height); logger.debug("view insets left = "+insets.left+" right = "+insets.right); logger.debug("view insets top = "+insets.top+" bottom = "+insets.bottom); logger.debug("display after width = "+getSize().width+" height = "+getSize().height); if(hAmpScaleMap != null) { hAmpScaleMap.setTotalPixels(dim.width - insets.left - insets.right); vAmpScaleMap.setTotalPixels(dim.height - insets.top - insets.bottom); } repaint(); }//
| 1,119,642
|
public void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width - particleDisplayPanel.getInsets().left - particleDisplayPanel.getInsets().right; height = height - particleDisplayPanel.getInsets().top - particleDisplayPanel.getInsets().bottom; if(width < height) { particleDisplayPanel.setSize(new Dimension(particleDisplayPanel.getSize().width, width + particleDisplayPanel.getInsets().top + particleDisplayPanel.getInsets().bottom)); } else { particleDisplayPanel.setSize(new Dimension(height + particleDisplayPanel.getInsets().left + particleDisplayPanel.getInsets().right, particleDisplayPanel.getSize().height)); } view.resize(); logger.debug("view coordinates are width = "+view.getSize().width+" height = "+view.getSize().height); logger.debug("view insets left = "+insets.left+" right = "+insets.right); logger.debug("view insets top = "+insets.top+" bottom = "+insets.bottom); logger.debug("display after width = "+getSize().width+" height = "+getSize().height); if(hAmpScaleMap != null) { hAmpScaleMap.setTotalPixels(dim.width - insets.left - insets.right); vAmpScaleMap.setTotalPixels(dim.height - insets.top - insets.bottom); } repaint(); }//
|
public void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width - particleDisplayPanel.getInsets().left - particleDisplayPanel.getInsets().right; height = height - particleDisplayPanel.getInsets().top - particleDisplayPanel.getInsets().bottom; if(width < height) { particleDisplayPanel.setSize(new Dimension(particleDisplayPanel.getSize().width, width + particleDisplayPanel.getInsets().top + particleDisplayPanel.getInsets().bottom)); } else { particleDisplayPanel.setSize(new Dimension(height + particleDisplayPanel.getInsets().left + particleDisplayPanel.getInsets().right, particleDisplayPanel.getSize().height)); } view.resize(); logger.debug("view coordinates are width = "+view.getSize().width+" height = "+view.getSize().height); logger.debug("view insets left = "+insets.left+" right = "+insets.right); logger.debug("view insets top = "+insets.top+" bottom = "+insets.bottom); logger.debug("display after width = "+getSize().width+" height = "+getSize().height); if(hAmpScaleMap != null) { hAmpScaleMap.setTotalPixels(dim.width - insets.left - insets.right); vAmpScaleMap.setTotalPixels(dim.height - insets.top - insets.bottom); } repaint(); }//
| 1,119,643
|
public void setAmplitudeRange(AmpConfigRegistrar amplitudeRange) { this.hAmpConfigRegistrar = amplitudeRange; this.vAmpConfigRegistrar = amplitudeRange; }
|
public synchronized void setAmplitudeRange(AmpConfigRegistrar amplitudeRange) { this.hAmpConfigRegistrar = amplitudeRange; this.vAmpConfigRegistrar = amplitudeRange; }
| 1,119,645
|
public void setZoomIn(boolean value) { view.setZoomIn(value); }
|
public synchronized void setZoomIn(boolean value) { view.setZoomIn(value); }
| 1,119,646
|
public void setZoomOut(boolean value) { view.setZoomOut(value); }
|
public synchronized void setZoomOut(boolean value) { view.setZoomOut(value); }
| 1,119,647
|
public void updateTimeRange() { view.updateTimeRange(); }
|
public synchronized void updateTimeRange() { view.updateTimeRange(); }
| 1,119,648
|
public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory k = getCalSvcI().getCategory(id); if (k == null) { err.emit("org.bedework.client.error.missingcategory", id); return false; } if (!keyId.getChanged()) { return true; }// oldCategory = getEvent().getCategory(0); /* Currently we replace the only category if it exists */ BwEvent ev = getEvent(); ev.clearCategories(); ev.addCategory(k); setCategory(k); return true; } catch (Throwable t) { err.emit(t); return false; } }
|
public boolean validateEventCategory() throws Throwable { int id = categoryId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory k = getCalSvcI().getCategory(id); if (k == null) { err.emit("org.bedework.client.error.missingcategory", id); return false; } if (!keyId.getChanged()) { return true; }// oldCategory = getEvent().getCategory(0); /* Currently we replace the only category if it exists */ BwEvent ev = getEvent(); ev.clearCategories(); ev.addCategory(k); setCategory(k); return true; } catch (Throwable t) { err.emit(t); return false; } }
| 1,119,649
|
public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory k = getCalSvcI().getCategory(id); if (k == null) { err.emit("org.bedework.client.error.missingcategory", id); return false; } if (!keyId.getChanged()) { return true; }// oldCategory = getEvent().getCategory(0); /* Currently we replace the only category if it exists */ BwEvent ev = getEvent(); ev.clearCategories(); ev.addCategory(k); setCategory(k); return true; } catch (Throwable t) { err.emit(t); return false; } }
|
public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory k = getCalSvcI().getCategory(id); if (k == null) { err.emit("org.bedework.client.error.missingcategory", id); return false; } if (!categoryId.getChanged()) { return true; }// oldCategory = getEvent().getCategory(0); /* Currently we replace the only category if it exists */ BwEvent ev = getEvent(); ev.clearCategories(); ev.addCategory(k); setCategory(k); return true; } catch (Throwable t) { err.emit(t); return false; } }
| 1,119,650
|
public void actionPerformed(ActionEvent evt) { adjustModel(); System.out.println("in timer"); }
|
public void actionPerformed(ActionEvent evt) { adjustModel(); }
| 1,119,651
|
public void repaintRequired() { timeChanged = System.currentTimeMillis(); System.out.println("starting ticker because idea changed"); ticker.start(); }
|
public void repaintRequired() { timeChanged = System.currentTimeMillis(); ticker.start(); }
| 1,119,652
|
private Point2D tweakIdeas(final List<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); double totForceX = 0.0; double totForceY = 0.0; if (timeChanged == 0) { timeChanged = System.currentTimeMillis(); } long now = System.currentTimeMillis(); double maxSpeed = 0.0; if ((now - timeChanged) < (MAX_MOVE_TIME_SECS * 1000.0)) { maxSpeed = MAX_SPEED - ((now - timeChanged) * MAX_SPEED / 1000.0 / MAX_MOVE_TIME_SECS); } else { ticker.stop(); System.out.println("stopped ticker"); } synchronized(views) { double minDiffAngle = Math.PI / 2 / views.size(); for (int i = 0; i < views.size(); i++) { IdeaView previousView = null; IdeaView nextView = null; IdeaView view = views.get(i); if (i > 0) { previousView = views.get(i - 1); } if (i < views.size() - 1) { nextView = views.get(i + 1); } Point2D point = getPoint(view, c, initAngle); double forceX = 0.0; double forceY = 0.0; for(Point2D other: points) { double dirX = point.getX() - other.getX(); double dirY = point.getY() - other.getY(); double dSquare = point.distanceSq(other); if (dSquare > 0.000001) { double unitFactor = point.distance(other); forceX += (dirX / unitFactor) * (mass * mass / dSquare); if (forceX > 1.0) { forceX = 1.0; } if (forceX < -1.0) { forceX = -1.0; } forceY += (dirY / unitFactor) * (mass * mass / dSquare); if (forceY > 1.0) { forceY = 1.0; } if (forceY < -1.0) { forceY = -1.0; } } } Point2D p2 = getPoint(view, ORIGIN, initAngle); Point2D tf = tweakIdeas(view.getSubViews(), point, view.getAngle() + initAngle, true); forceX += tf.getX(); forceY += tf.getY(); double sideForce = (p2.getY() * forceX) + (-p2.getX() * forceY); totForceX += forceX; totForceY += forceY; double v = view.getV(); v += sideForce / mass; v *= 0.90; if (v > maxSpeed) { v = maxSpeed; } if (v < -maxSpeed) { v = -maxSpeed; } view.setV(v); double oldAngle = view.getAngle(); double newAngle = oldAngle + (view.getV() / view.getLength()); if (previousView != null) { double previousAngle = previousView.getAngle(); if (previousAngle > newAngle - minDiffAngle) { previousView.setAngle(newAngle - minDiffAngle); newAngle = previousAngle + minDiffAngle; double previousV = previousView.getV(); double diffV = v - previousV; if (diffV > 0) { view.setV(diffV); previousView.setV(-diffV); } else { view.setV(-diffV); previousView.setV(diffV); } v = view.getV(); } } else { double previousAngle = -Math.PI; if (!hasParent) { previousAngle = views.get(views.size() - 1).getAngle() - 2 * Math.PI; } if (previousAngle > newAngle - minDiffAngle) { newAngle = previousAngle + minDiffAngle; double previousV = 0.0; double diffV = v - previousV; if (diffV > 0) { view.setV(diffV); } else { view.setV(-diffV); } v = view.getV(); } } if (nextView != null) { double nextAngle = nextView.getAngle(); if (nextAngle < newAngle + minDiffAngle) { nextView.setAngle(newAngle + minDiffAngle); newAngle = nextAngle - minDiffAngle; double nextV = nextView.getV(); double diffV = 0.0; if (diffV > 0) { view.setV(-diffV); nextView.setV(diffV); } else { view.setV(diffV); nextView.setV(-diffV); } v = view.getV(); } } else { double nextAngle = Math.PI; if (!hasParent) { nextAngle = views.get(0).getAngle() + 2 * Math.PI; } if (nextAngle < newAngle + minDiffAngle) { newAngle = nextAngle - minDiffAngle; double nextV = 0.0; double diffV = 0.0; if (diffV > 0) { view.setV(-diffV); } else { view.setV(diffV); } v = view.getV(); } } view.setAngle(newAngle); } } return new Point2D.Double(totForceX, totForceY); }
|
private Point2D tweakIdeas(final List<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); double totForceX = 0.0; double totForceY = 0.0; if (timeChanged == 0) { timeChanged = System.currentTimeMillis(); } long now = System.currentTimeMillis(); double maxSpeed = 0.0; if ((now - timeChanged) < (MAX_MOVE_TIME_SECS * 1000.0)) { maxSpeed = MAX_SPEED - ((now - timeChanged) * MAX_SPEED / 1000.0 / MAX_MOVE_TIME_SECS); } else { ticker.stop(); } synchronized(views) { double minDiffAngle = Math.PI / 2 / views.size(); for (int i = 0; i < views.size(); i++) { IdeaView previousView = null; IdeaView nextView = null; IdeaView view = views.get(i); if (i > 0) { previousView = views.get(i - 1); } if (i < views.size() - 1) { nextView = views.get(i + 1); } Point2D point = getPoint(view, c, initAngle); double forceX = 0.0; double forceY = 0.0; for(Point2D other: points) { double dirX = point.getX() - other.getX(); double dirY = point.getY() - other.getY(); double dSquare = point.distanceSq(other); if (dSquare > 0.000001) { double unitFactor = point.distance(other); forceX += (dirX / unitFactor) * (mass * mass / dSquare); if (forceX > 1.0) { forceX = 1.0; } if (forceX < -1.0) { forceX = -1.0; } forceY += (dirY / unitFactor) * (mass * mass / dSquare); if (forceY > 1.0) { forceY = 1.0; } if (forceY < -1.0) { forceY = -1.0; } } } Point2D p2 = getPoint(view, ORIGIN, initAngle); Point2D tf = tweakIdeas(view.getSubViews(), point, view.getAngle() + initAngle, true); forceX += tf.getX(); forceY += tf.getY(); double sideForce = (p2.getY() * forceX) + (-p2.getX() * forceY); totForceX += forceX; totForceY += forceY; double v = view.getV(); v += sideForce / mass; v *= 0.90; if (v > maxSpeed) { v = maxSpeed; } if (v < -maxSpeed) { v = -maxSpeed; } view.setV(v); double oldAngle = view.getAngle(); double newAngle = oldAngle + (view.getV() / view.getLength()); if (previousView != null) { double previousAngle = previousView.getAngle(); if (previousAngle > newAngle - minDiffAngle) { previousView.setAngle(newAngle - minDiffAngle); newAngle = previousAngle + minDiffAngle; double previousV = previousView.getV(); double diffV = v - previousV; if (diffV > 0) { view.setV(diffV); previousView.setV(-diffV); } else { view.setV(-diffV); previousView.setV(diffV); } v = view.getV(); } } else { double previousAngle = -Math.PI; if (!hasParent) { previousAngle = views.get(views.size() - 1).getAngle() - 2 * Math.PI; } if (previousAngle > newAngle - minDiffAngle) { newAngle = previousAngle + minDiffAngle; double previousV = 0.0; double diffV = v - previousV; if (diffV > 0) { view.setV(diffV); } else { view.setV(-diffV); } v = view.getV(); } } if (nextView != null) { double nextAngle = nextView.getAngle(); if (nextAngle < newAngle + minDiffAngle) { nextView.setAngle(newAngle + minDiffAngle); newAngle = nextAngle - minDiffAngle; double nextV = nextView.getV(); double diffV = 0.0; if (diffV > 0) { view.setV(-diffV); nextView.setV(diffV); } else { view.setV(diffV); nextView.setV(-diffV); } v = view.getV(); } } else { double nextAngle = Math.PI; if (!hasParent) { nextAngle = views.get(0).getAngle() + 2 * Math.PI; } if (nextAngle < newAngle + minDiffAngle) { newAngle = nextAngle - minDiffAngle; double nextV = 0.0; double diffV = 0.0; if (diffV > 0) { view.setV(-diffV); } else { view.setV(diffV); } v = view.getV(); } } view.setAngle(newAngle); } } return new Point2D.Double(totForceX, totForceY); }
| 1,119,653
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.jAlloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,654
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.jAlloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,655
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.jAlloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,656
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.jAlloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,657
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.jAlloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,658
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.jAlloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,659
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,660
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // now, try to select the 'at' slot from the lobby ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file1 which should load file1 and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); assertEquals(NATNumber.ONE, result); // ensure file1 is now really bound to 1 in the namespace 'test' assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); // normally, by loading file1, file2 should have been loaded as well: assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); // test.file2 should be a normaly object with a ~ slot bound to test ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); // test.file2.y should equal nil assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.jAlloc("y"))); } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,661
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.jAlloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,662
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.jAlloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,663
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.jAlloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,664
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
|
public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); // select '/.at.test' ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.file2 which should load file2 and raise an error // because ~.file2.x in file1.at will result in evaluating nil.x try { test.meta_select(test, AGSymbol.alloc("file2")); } catch(XSelectorNotFound e) { if (e.selector_.equals(AGSymbol.jAlloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { // ok System.out.println("[expected]: "+e.getMessage()); } else throw e; } } catch (InterpreterException e) { fail(e.getMessage()); } }
| 1,119,665
|
public NATNamespace(String name, String path, ATObject parentNamespace) { super(parentNamespace, OBJLexicalRoot._INSTANCE_, NATObject._SHARES_A_); name_ = name; path_ = path; }
|
public NATNamespace(String name, String path, ATObject parentNamespace) { super(parentNamespace, OBJLexicalRoot._INSTANCE_, NATObject._SHARES_A_); name_ = name; path_ = path; }
| 1,119,666
|
public abstract void setSuperUser(boolean val);
|
public abstract void setSuperUser(boolean val) throws CalFacadeException;
| 1,119,668
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
| 1,119,669
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
| 1,119,670
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (er.start.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
| 1,119,671
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (er.end.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
| 1,119,672
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(ei); } } return al; }
|
public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzcache); String start = pars.startDt.getDate(); String end = pars.endDt.getDate(); //if (debug) { // debugMsg("Did UTC stuff in " + (System.currentTimeMillis() - millis)); //} Iterator it = pars.events.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); /* Event is within range if: 1. (((evStart <= :start) and (evEnd > :start)) or 2. ((evStart >= :start) and (evStart < :end)) or 3. ((evEnd > :start) and (evEnd <= :end))) XXX followed caldav which might be wrong. Try 3. ((evEnd > :start) and (evEnd < :end))) */ int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); //debugMsg(" event " + evStart + " to " + evEnd); if (((evstSt <= 0) && (evendSt > 0)) || ((evstSt >= 0) && (evStart.compareTo(end) < 0)) || //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { // Passed the tests. /* if (debug) { debugMsg("Event passed range " + start + "-" + end + " with dates " + evStart + "-" + evEnd + ": " + ev.getSummary()); }*/ al.add(er.entity); } } return al; }
| 1,119,673
|
public void paintComponent(Graphics g){ if(updating){ return; } Graphics2D g2 = (Graphics2D)g; synchronized(this){ Dimension size = getSize(); int width = size.width; int height = size.height; if(displayRemove != null){ g2.setColor(Color.WHITE); g2.fill(new Rectangle2D.Float(0,0, width, height)); displayRemove.draw(g2, size, curTimeEvent, curAmpEvent); } Iterator it = curLayoutEvent.iterator(); double curYPos = 0; while(it.hasNext()){ LayoutData current = (LayoutData)it.next(); System.out.println(current.getStart()); double midPoint = current.getStart() * height + ((current.getEnd() - current.getStart()) * height)/2; int drawHeight = (int)((current.getEnd() - current.getStart())*height * scaling); double neededYPos = midPoint - drawHeight/2; double translate = neededYPos - curYPos; g2.translate(0, translate); curYPos = neededYPos; Dimension drawSize = new Dimension(width, drawHeight); DrawableSeismogram cur = (DrawableSeismogram)dssPlotter.get(current.getSeis()); cur.draw(g2, drawSize, curTimeEvent, curAmpEvent); cur.drawName(g2, 0, drawHeight/2); } } }
|
public void paintComponent(Graphics g){ if(updating){ return; } Graphics2D g2 = (Graphics2D)g; synchronized(this){ Dimension size = getSize(); int width = size.width; int height = size.height; if(displayRemove != null){ g2.setColor(Color.WHITE); g2.fill(new Rectangle2D.Float(0,0, width, height)); displayRemove.draw(g2, size, curTimeEvent, curAmpEvent); } Iterator it = curLayoutEvent.iterator(); double curYPos = 0; while(it.hasNext()){ LayoutData current = (LayoutData)it.next(); double midPoint = current.getStart() * height + ((current.getEnd() - current.getStart()) * height)/2; int drawHeight = (int)((current.getEnd() - current.getStart())*height * scaling); double neededYPos = midPoint - drawHeight/2; double translate = neededYPos - curYPos; g2.translate(0, translate); curYPos = neededYPos; Dimension drawSize = new Dimension(width, drawHeight); DrawableSeismogram cur = (DrawableSeismogram)dssPlotter.get(current.getSeis()); cur.draw(g2, drawSize, curTimeEvent, curAmpEvent); cur.drawName(g2, 0, drawHeight/2); } } }
| 1,119,674
|
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svci = form.fetchSvci(); BwCalendar cal = null; int calId = getIntReqPar(request, "calId", -1); if (calId >= 0) { cal = svci.getCalendar(calId); } if (cal == null) { if (getPublicAdmin(form)) { // Must specify a calendar for public events form.getErr().emit("org.bedework.client.error.missingcalendar"); return "retry"; } // Use preferred calendar cal = svci.getPreferredCalendar(); } FormFile upFile = form.getUploadFile(); if (upFile == null) { // Just forget it return "success"; } String fileName = upFile.getFileName(); if ((fileName == null) || (fileName.length() == 0)) { return "retry"; } try { // To catch some of the parser errors InputStream is = upFile.getInputStream(); IcalTranslator trans = new IcalTranslator(svci.getIcalCallback(), debug); Collection objs = trans.fromIcal(cal, new InputStreamReader(is)); Iterator it = objs.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof EventInfo) { EventInfo ei = (EventInfo)o; BwEvent ev = ei.getEvent(); if (ei.getNewEvent()) { svci.addEvent(cal, ev, ei.getOverrides()); } else { svci.updateEvent(ev); } } } } catch (CalFacadeException cfe) { form.getErr().emit(cfe.getMessage(), cfe.getExtra()); return "baddata"; } form.getMsg().emit("org.bedework.message.added.events", 1); return "success"; }
|
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svci = form.fetchSvci(); BwCalendar cal = null; int calId = getIntReqPar(request, "calId", -1); if (calId >= 0) { cal = svci.getCalendar(calId); } if (cal == null) { if (getPublicAdmin(form)) { // Must specify a calendar for public events form.getErr().emit("org.bedework.client.error.missingcalendar"); return "retry"; } // Use preferred calendar cal = svci.getPreferredCalendar(); } FormFile upFile = form.getUploadFile(); if (upFile == null) { // Just forget it return "success"; } String fileName = upFile.getFileName(); if ((fileName == null) || (fileName.length() == 0)) { return "retry"; } try { // To catch some of the parser errors InputStream is = upFile.getInputStream(); IcalTranslator trans = new IcalTranslator(svci.getIcalCallback(), debug); Collection objs = trans.fromIcal(cal, new InputStreamReader(is)); Iterator it = objs.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof EventInfo) { EventInfo ei = (EventInfo)o; BwEvent ev = ei.getEvent(); if (ei.getNewEvent()) { svci.addEvent(cal, ev, ei.getOverrides()); } else { svci.updateEvent(ev); } } } } catch (CalFacadeException cfe) { form.getErr().emit(cfe.getMessage(), cfe.getExtra()); return "baddata"; } form.getMsg().emit("org.bedework.client.message.added.events", 1); return "success"; }
| 1,119,675
|
public int getOriginalCategoryId() { if (keyId == null) { return 0; } return keyId.getOriginalVal(); }
|
public int getOriginalCategoryId() { if (categoryId == null) { return 0; } return keyId.getOriginalVal(); }
| 1,119,676
|
public int getOriginalCategoryId() { if (keyId == null) { return 0; } return keyId.getOriginalVal(); }
|
public int getOriginalCategoryId() { if (keyId == null) { return 0; } return categoryId.getOriginalVal(); }
| 1,119,677
|
public void setCategoryId(int val) { if (val >= 0) { keyId.setA(val); } }
|
public void setCategoryId(int val) { if (val >= 0) { categoryId.setA(val); } }
| 1,119,678
|
public void setPrefCategoryId(int val) { if (val >= 0) { keyId.setB(val); } }
|
public void setPrefCategoryId(int val) { if (val >= 0) { categoryId.setB(val); } }
| 1,119,679
|
public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getPath(LeapSecondApplier.LEAP_SECOND_FILE)); LeapSecondApplier.addCorrections(pp.getPath(LeapSecondApplier.POWER_UP_TIMES)); ncFile = new NCFile(pp.getPath(NCFile.NC_FILE_LOC)); logger.debug("NC file location: " + ncFile.getCanonicalPath()); String xyFileLoc = pp.getPath(XYReader.XY_FILE_LOC); logger.debug("XY file location: " + xyFileLoc); this.report = new RT130Report(); this.propParser = pp; this.props = props; stationLocations = XYReader.read(new BufferedReader(new FileReader(xyFileLoc))); Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } netAttr = PopulationProperties.getNetworkAttr(props); toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); rtFileReader = new RT130FileReader(); }
|
public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getPath(LeapSecondApplier.LEAP_SECOND_FILE)); LeapSecondApplier.addCorrections(pp.getPath(LeapSecondApplier.POWER_UP_TIMES)); ncFile = new NCFile(pp.getPath(NCFile.NC_FILE_LOC)); logger.debug("NC file location: " + ncFile.getCanonicalPath()); String xyFileLoc = pp.getPath(XYReader.XY_FILE_LOC); logger.debug("XY file location: " + xyFileLoc); this.report = new RT130Report(); this.propParser = pp; this.props = props; stationLocations = XYReader.read(new BufferedReader(new FileReader(xyFileLoc))); Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } netAttr = PopulationProperties.getNetworkAttr(props); toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); rtFileReader = new RT130FileReader(); }
| 1,119,680
|
public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getPath(LeapSecondApplier.LEAP_SECOND_FILE)); LeapSecondApplier.addCorrections(pp.getPath(LeapSecondApplier.POWER_UP_TIMES)); ncFile = new NCFile(pp.getPath(NCFile.NC_FILE_LOC)); logger.debug("NC file location: " + ncFile.getCanonicalPath()); String xyFileLoc = pp.getPath(XYReader.XY_FILE_LOC); logger.debug("XY file location: " + xyFileLoc); this.report = new RT130Report(); this.propParser = pp; this.props = props; stationLocations = XYReader.read(new BufferedReader(new FileReader(xyFileLoc))); Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } netAttr = PopulationProperties.getNetworkAttr(props); toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); rtFileReader = new RT130FileReader(); }
|
public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getPath(LeapSecondApplier.LEAP_SECOND_FILE)); LeapSecondApplier.addCorrections(pp.getPath(LeapSecondApplier.POWER_UP_TIMES)); ncFile = new NCFile(pp.getPath(NCFile.NC_FILE_LOC)); logger.debug("NC file location: " + ncFile.getCanonicalPath()); String xyFileLoc = pp.getPath(XYReader.XY_FILE_LOC); logger.debug("XY file location: " + xyFileLoc); this.report = new RT130Report(); this.propParser = pp; this.props = props; stationLocations = XYReader.read(new BufferedReader(new FileReader(xyFileLoc))); Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } netAttr = PopulationProperties.getNetworkAttr(props); toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); rtFileReader = new RT130FileReader(); }
| 1,119,681
|
public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getPath(LeapSecondApplier.LEAP_SECOND_FILE)); LeapSecondApplier.addCorrections(pp.getPath(LeapSecondApplier.POWER_UP_TIMES)); ncFile = new NCFile(pp.getPath(NCFile.NC_FILE_LOC)); logger.debug("NC file location: " + ncFile.getCanonicalPath()); String xyFileLoc = pp.getPath(XYReader.XY_FILE_LOC); logger.debug("XY file location: " + xyFileLoc); this.report = new RT130Report(); this.propParser = pp; this.props = props; stationLocations = XYReader.read(new BufferedReader(new FileReader(xyFileLoc))); Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } netAttr = PopulationProperties.getNetworkAttr(props); toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); rtFileReader = new RT130FileReader(); }
|
public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getPath(LeapSecondApplier.LEAP_SECOND_FILE)); LeapSecondApplier.addCorrections(pp.getPath(LeapSecondApplier.POWER_UP_TIMES)); ncFile = new NCFile(pp.getPath(NCFile.NC_FILE_LOC)); logger.debug("NC file location: " + ncFile.getCanonicalPath()); String xyFileLoc = pp.getPath(XYReader.XY_FILE_LOC); logger.debug("XY file location: " + xyFileLoc); this.report = new RT130Report(); this.propParser = pp; this.props = props; stationLocations = XYReader.read(new BufferedReader(new FileReader(xyFileLoc))); Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } netAttr = PopulationProperties.getNetworkAttr(props); toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); rtFileReader = new RT130FileReader(); }
| 1,119,682
|
private TimeInterval processSingleRefTekWithKnownChannel(String fileLoc, String fileName, Channel knownChannel, String unitIdNumber) throws IOException { TimeInterval totalSeismogramTime = new TimeInterval(0, UnitImpl.MILLISECOND); PacketType[] seismogramDataPacketArray = null; try { seismogramDataPacketArray = rtFileReader.processRT130Data(fileLoc, false); } catch(RT130FormatException e) { report.addFileFormatException(fileLoc, fileName + " seems to be an invalid rt130 file." + "\n" + e.getMessage()); logger.error(fileName + " seems to be an invalid rt130 file." + "\n" + e.getMessage()); return totalSeismogramTime; } LocalSeismogramImpl[] seismogramArray = toSeismogram.ConvertRT130ToLocalSeismogram(seismogramDataPacketArray); for(int i = 0; i < seismogramArray.length; i++) { // Add one sample period to end time on purpose. addSeismogramToReport(knownChannel, seismogramArray[i].getBeginTime(), seismogramArray[i].getEndTime() .add(seismogramArray[i].getSampling() .getPeriod())); if(flags.contains(RT130FileHandlerFlag.FULL)) { // Add one sample period to end time on purpose. TimeInterval seismogramTime = new TimeInterval(seismogramArray[i].getBeginTime(), seismogramArray[i].getEndTime() .add(seismogramArray[i].getSampling() .getPeriod())); totalSeismogramTime = totalSeismogramTime.add(seismogramTime); } } return totalSeismogramTime; }
|
private TimeInterval processSingleRefTekWithKnownChannel(String fileLoc, String fileName, Channel knownChannel, String unitIdNumber) throws IOException { TimeInterval totalSeismogramTime = new TimeInterval(0, UnitImpl.MILLISECOND); PacketType[] seismogramDataPacketArray = null; try { seismogramDataPacketArray = rtFileReader.processRT130Data(fileLoc, false); } catch(RT130FormatException e) { report.addFileFormatException(fileLoc, fileName + " seems to be an invalid rt130 file." + "\n" + e.getMessage()); logger.error(fileName + " seems to be an invalid rt130 file." + "\n" + e.getMessage()); return totalSeismogramTime; } LocalSeismogramImpl[] seismogramArray = toSeismogram.convert(seismogramDataPacketArray); for(int i = 0; i < seismogramArray.length; i++) { // Add one sample period to end time on purpose. addSeismogramToReport(knownChannel, seismogramArray[i].getBeginTime(), seismogramArray[i].getEndTime() .add(seismogramArray[i].getSampling() .getPeriod())); if(flags.contains(RT130FileHandlerFlag.FULL)) { // Add one sample period to end time on purpose. TimeInterval seismogramTime = new TimeInterval(seismogramArray[i].getBeginTime(), seismogramArray[i].getEndTime() .add(seismogramArray[i].getSampling() .getPeriod())); totalSeismogramTime = totalSeismogramTime.add(seismogramTime); } } return totalSeismogramTime; }
| 1,119,684
|
public void setIsSummaryNewPage(boolean value){ this.getRootElement().setAttribute(ATTRIBUTE_IS_SUMMARY_NEW_PAGE,Boolean.toString(value)); }
|
public void setIsSummaryNewPage(boolean value){ this.getRootElement().setAttribute(ATTRIBUTE_IS_SUMMARY_NEW_PAGE,String.valueOf(value)); }
| 1,119,685
|
TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { super(debug, user); this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); }
|
TimezonesImpl(boolean debug, BwUser user, RestoreGlobals globals) throws CalFacadeException { super(debug, user); this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); }
| 1,119,686
|
TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { super(debug, user); this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); }
|
TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { super(debug, user); this.globals = globals; // Force fetch of timezones //lookup("not-a-timezone"); }
| 1,119,687
|
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { /* For a user update the map to avoid a refetch. For system timezones we will force a refresh when we're done. */ super.saveTimeZone(tzid, vtz); BwTimeZone btz = new BwTimeZone(); btz.setTzid(tzid); btz.setPublick(getPublick()); btz.setOwner(getUser()); StringBuffer sb = new StringBuffer(); sb.append("BEGIN:VCALENDAR\n"); sb.append("PRODID:-//RPI//BEDEWORK//US\n"); sb.append("VERSION:2.0\n"); sb.append(vtz.toString()); sb.append("END:VCALENDAR\n"); btz.setVtimezone(sb.toString()); try { ri.restoreTimezone(btz); } catch (Throwable t) { throw new CalFacadeException(t); } }
|
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { /* For a user update the map to avoid a refetch. For system timezones we will force a refresh when we're done. */ super.saveTimeZone(tzid, vtz); BwTimeZone btz = new BwTimeZone(); btz.setTzid(tzid); btz.setPublick(getPublick()); btz.setOwner(getUser()); StringBuffer sb = new StringBuffer(); sb.append("BEGIN:VCALENDAR\n"); sb.append("PRODID:-//RPI//BEDEWORK//US\n"); sb.append("VERSION:2.0\n"); sb.append(vtz.toString()); sb.append("END:VCALENDAR\n"); btz.setVtimezone(sb.toString()); try { ri.restoreTimezone(btz); } catch (Throwable t) { throw new CalFacadeException(t); } }
| 1,119,689
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable properties = doRefund(getAmountWithExponents(amount), parseResponse(captureProperties)); logText.append("\nRefund successful").append("\nAuthorization Code = "+properties.get(PROPERTY_APPROVAL_CODE)); logText.append("\nAction Code = "+properties.get(PROPERTY_ACTION_CODE).toString()); logger.info(logText.toString()); return properties.get(PROPERTY_APPROVAL_CODE).toString(); } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable properties = doRefund(getAmountWithExponents(amount), parseResponse(captureProperties)); logText.append("\nRefund successful").append("\nAuthorization Code = "+properties.get(PROPERTY_APPROVAL_CODE)); logText.append("\nAction Code = "+properties.get(PROPERTY_ACTION_CODE).toString()); logger.info(logText.toString()); return properties.get(PROPERTY_APPROVAL_CODE).toString(); } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
| 1,119,690
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable properties = doRefund(getAmountWithExponents(amount), parseResponse(captureProperties)); logText.append("\nRefund successful").append("\nAuthorization Code = "+properties.get(PROPERTY_APPROVAL_CODE)); logText.append("\nAction Code = "+properties.get(PROPERTY_ACTION_CODE).toString()); logger.info(logText.toString()); return properties.get(PROPERTY_APPROVAL_CODE).toString(); } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable properties = doRefund(getAmountWithExponents(amount), parseResponse(captureProperties)); logText.append("\nRefund successful").append("\nAuthorization Code = "+properties.get(PROPERTY_APPROVAL_CODE)); logText.append("\nAction Code = "+properties.get(PROPERTY_ACTION_CODE).toString()); logger.info(logText.toString()); return properties.get(PROPERTY_APPROVAL_CODE).toString(); } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
| 1,119,691
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); System.out.println("referenceNumber => "+strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = "+authCode); logText.append("\nAction Code = "+returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } }
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = "+authCode); logText.append("\nAction Code = "+returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } }
| 1,119,692
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); System.out.println("referenceNumber => "+strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = "+authCode); logText.append("\nAction Code = "+returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } }
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); System.out.println("referenceNumber => "+strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = "+authCode); logText.append("\nAction Code = "+returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = "+e.getErrorMessage()); logText.append("\nNumber = "+e.getErrorNumber()); logText.append("\nDisplay error = "+e.getDisplayError()); logger.info(logText.toString()); throw e; } }
| 1,119,693
|
private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); addProperties(strPostData, properties); String strResponse = null; SSLClient client = getSSLClient(); //System.out.println("strPostData [ "+strPostData.toString()+" ]"); try { strResponse = client.sendRequest(REQUEST_TYPE_CAPTURE, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [ "+strResponse+" ]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { captureProperties = parseResponse(strResponse); captureProperties.put(PROPERTY_CARD_BRAND_NAME, properties.get(PROPERTY_CARD_BRAND_NAME)); if (CODE_AUTHORIZATOIN_APPROVED.equals(captureProperties.get(PROPERTY_ACTION_CODE))) { return captureProperties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(captureProperties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(captureProperties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(captureProperties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return captureProperties; }
|
private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); addProperties(strPostData, properties); String strResponse = null; SSLClient client = getSSLClient(); //System.out.println("strPostData [ "+strPostData.toString()+" ]"); try { strResponse = client.sendRequest(REQUEST_TYPE_CAPTURE, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [ "+strResponse+" ]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { captureProperties = parseResponse(strResponse); captureProperties.put(PROPERTY_CARD_BRAND_NAME, properties.get(PROPERTY_CARD_BRAND_NAME)); if (CODE_AUTHORIZATOIN_APPROVED.equals(captureProperties.get(PROPERTY_ACTION_CODE))) { return captureProperties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(captureProperties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(captureProperties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(captureProperties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return captureProperties; }
| 1,119,694
|
private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); addProperties(strPostData, properties); String strResponse = null; SSLClient client = getSSLClient(); //System.out.println("strPostData [ "+strPostData.toString()+" ]"); try { strResponse = client.sendRequest(REQUEST_TYPE_CAPTURE, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [ "+strResponse+" ]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { captureProperties = parseResponse(strResponse); captureProperties.put(PROPERTY_CARD_BRAND_NAME, properties.get(PROPERTY_CARD_BRAND_NAME)); if (CODE_AUTHORIZATOIN_APPROVED.equals(captureProperties.get(PROPERTY_ACTION_CODE))) { return captureProperties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(captureProperties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(captureProperties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(captureProperties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return captureProperties; }
|
private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); addProperties(strPostData, properties); String strResponse = null; SSLClient client = getSSLClient(); //System.out.println("strPostData [ "+strPostData.toString()+" ]"); try { strResponse = client.sendRequest(REQUEST_TYPE_CAPTURE, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [ "+strResponse+" ]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { captureProperties = parseResponse(strResponse); captureProperties.put(PROPERTY_CARD_BRAND_NAME, properties.get(PROPERTY_CARD_BRAND_NAME)); if (CODE_AUTHORIZATOIN_APPROVED.equals(captureProperties.get(PROPERTY_ACTION_CODE))) { return captureProperties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(captureProperties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(captureProperties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(captureProperties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return captureProperties; }
| 1,119,695
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
| 1,119,697
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
| 1,119,698
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
| 1,119,699
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
| 1,119,700
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
|
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
| 1,119,701
|
private void setCurrencyAndAmount(String currency, double amount) throws CreditCardAuthorizationException { if (currency != null) { int amountMultiplier = 100; if (currency.equalsIgnoreCase("ISK")) { strCurrencyCode = "352"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("USD")) { strCurrencyCode = "840"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("GBP")) { strCurrencyCode = "826"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("DKK")) { strCurrencyCode = "208"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("EUR")) { strCurrencyCode = "978"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else { throw new CreditCardAuthorizationException("Unsupported currency ("+currency+")"); } /* Setting amount with correct */ strAmount = Integer.toString((int) amount * amountMultiplier); } else { throw new CreditCardAuthorizationException("Currency is missing"); } }
|
private void setCurrencyAndAmount(String currency, double amount) throws CreditCardAuthorizationException { if (currency != null) { int amountMultiplier = 100; if (currency.equalsIgnoreCase("ISK")) { strCurrencyCode = "352"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("USD")) { strCurrencyCode = "840"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("GBP")) { strCurrencyCode = "826"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("DKK")) { strCurrencyCode = "208"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("EUR")) { strCurrencyCode = "978"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else { throw new CreditCardAuthorizationException("Unsupported currency ("+currency+")"); } /* Setting amount with correct */ strAmount = Integer.toString((int) amount * amountMultiplier); } else { throw new CreditCardAuthorizationException("Currency is missing"); } }
| 1,119,702
|
public void run() { FastMultiPageEditor fastEditor = (FastMultiPageEditor) window .getActivePage().getActiveEditor(); FastEditorInput input = (FastEditorInput) fastEditor.getEditorInput(); File directory = input.getPath().removeLastSegments(1).toFile(); String filePath = input.getPath().removeFileExtension() .addFileExtension("fss").toOSString(); IPreferenceStore store = FastsdkPlugin.getDefault() .getPreferenceStore(); String pathToFast = store.getString(PreferenceConstants.P_PATH); try { Process process = Runtime.getRuntime().exec( pathToFast + " " + filePath, null, directory); Thread.sleep(4000); BufferedReader in = new BufferedReader(new InputStreamReader( process.getErrorStream())); String line = ""; while ((line = in.readLine()) != null) { logger.error(line); } in.close(); fastEditor.setGenerated(true); } catch (IOException exception) { exception.printStackTrace(); } catch (InterruptedException exception) { exception.printStackTrace(); } }
|
public void run() { FastMultiPageEditor fastEditor = (FastMultiPageEditor) window .getActivePage().getActiveEditor(); FastEditorInput input = (FastEditorInput) fastEditor.getEditorInput(); File directory = input.getPath().removeLastSegments(1).toFile(); String filePath = input.getPath().removeFileExtension() .addFileExtension("fss").toOSString(); IPreferenceStore store = FastsdkPlugin.getDefault() .getPreferenceStore(); String pathToFast = store.getString(PreferenceConstants.P_PATH); try { Process process = Runtime.getRuntime().exec( pathToFast + " " + filePath, null, directory); Thread.sleep(4000); BufferedReader in = new BufferedReader(new InputStreamReader( process.getErrorStream())); String line = ""; while ((line = in.readLine()) != null) { logger.error(line); } in.close(); fastEditor.setGenerated(true); } catch (IOException exception) { exception.printStackTrace(); } catch (InterruptedException exception) { exception.printStackTrace(); } }
| 1,119,704
|
public MenuBar() throws HeadlessException { super(); int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); fileOpen.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, keyMask ) ); fileMenu.add( fileOpen ); fileClose.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_W, keyMask ) ); fileMenu.add( fileClose ); fileMenu.add( new JSeparator() ); fileTrace.setEnabled( true ); fileMenu.add( fileTrace ); add( fileMenu ); viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); add( viewMenu ); filterAllMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_M, keyMask ) ); filterMenu.add( filterAllMessages ); filterAdministrativeMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_D, keyMask ) ); filterMenu.add( filterAdministrativeMessages ); filterApplicationMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, keyMask ) ); filterMenu.add( filterApplicationMessages ); filterMenu.add( new JSeparator() ); filterCustomFilter.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F, keyMask ) ); filterMenu.add( filterCustomFilter ); filterMenu.add( new JSeparator() ); filterMenu.add( filterIndicationCategory ); filterMenu.add( filterEventCommunicationCategory ); filterMenu.add( filterQuotationNegotiationCategory ); filterMenu.add( filterMarketDataCategory ); filterMenu.add( filterSecurityAndTradingSessionCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterSingleGeneralOrderHandlingCategory ); filterMenu.add( filterCrossOrdersCategory ); filterMenu.add( filterMultilegOrdersCategory ); filterMenu.add( filterListProgramBasketTradingCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterAllocationCategory ); filterMenu.add( filterConfirmationCategory ); filterMenu.add( filterSettlementInstructionsCategory ); filterMenu.add( filterTradeCaptureReportingCategory ); filterMenu.add( filterRegistrationInstructionsCategory ); filterMenu.add( filterPositionsMaintenanceCategory ); filterMenu.add( filterCollateralManagementCategory ); add( filterMenu ); helpMenu.add( about ); add( helpMenu ); reset(); addActionListener( this ); filterAllMessages.setSelected( true ); }
|
public MenuBar() throws HeadlessException { super(); int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); fileOpen.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, keyMask ) ); fileMenu.add( fileOpen ); fileClose.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_W, keyMask ) ); fileMenu.add( fileClose ); fileMenu.add( new JSeparator() ); fileTrace.setEnabled( true ); fileMenu.add( fileTrace ); add( fileMenu ); viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); add( viewMenu ); filterAllMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_M, keyMask ) ); filterMenu.add( filterAllMessages ); filterAdministrativeMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_D, keyMask ) ); filterMenu.add( filterAdministrativeMessages ); filterApplicationMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, keyMask ) ); filterMenu.add( filterApplicationMessages ); filterMenu.add( new JSeparator() ); filterCustomFilter.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F, keyMask ) ); filterMenu.add( filterCustomFilter ); filterMenu.add( new JSeparator() ); filterMenu.add( filterIndicationCategory ); filterMenu.add( filterEventCommunicationCategory ); filterMenu.add( filterQuotationNegotiationCategory ); filterMenu.add( filterMarketDataCategory ); filterMenu.add( filterSecurityAndTradingSessionCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterSingleGeneralOrderHandlingCategory ); filterMenu.add( filterCrossOrdersCategory ); filterMenu.add( filterMultilegOrdersCategory ); filterMenu.add( filterListProgramBasketTradingCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterAllocationCategory ); filterMenu.add( filterConfirmationCategory ); filterMenu.add( filterSettlementInstructionsCategory ); filterMenu.add( filterTradeCaptureReportingCategory ); filterMenu.add( filterRegistrationInstructionsCategory ); filterMenu.add( filterPositionsMaintenanceCategory ); filterMenu.add( filterCollateralManagementCategory ); add( filterMenu ); helpMenu.add( about ); add( helpMenu ); reset(); addActionListener( this ); filterAllMessages.setSelected( true ); }
| 1,119,705
|
public MenuBar() throws HeadlessException { super(); int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); fileOpen.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, keyMask ) ); fileMenu.add( fileOpen ); fileClose.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_W, keyMask ) ); fileMenu.add( fileClose ); fileMenu.add( new JSeparator() ); fileTrace.setEnabled( true ); fileMenu.add( fileTrace ); add( fileMenu ); viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); add( viewMenu ); filterAllMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_M, keyMask ) ); filterMenu.add( filterAllMessages ); filterAdministrativeMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_D, keyMask ) ); filterMenu.add( filterAdministrativeMessages ); filterApplicationMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, keyMask ) ); filterMenu.add( filterApplicationMessages ); filterMenu.add( new JSeparator() ); filterCustomFilter.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F, keyMask ) ); filterMenu.add( filterCustomFilter ); filterMenu.add( new JSeparator() ); filterMenu.add( filterIndicationCategory ); filterMenu.add( filterEventCommunicationCategory ); filterMenu.add( filterQuotationNegotiationCategory ); filterMenu.add( filterMarketDataCategory ); filterMenu.add( filterSecurityAndTradingSessionCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterSingleGeneralOrderHandlingCategory ); filterMenu.add( filterCrossOrdersCategory ); filterMenu.add( filterMultilegOrdersCategory ); filterMenu.add( filterListProgramBasketTradingCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterAllocationCategory ); filterMenu.add( filterConfirmationCategory ); filterMenu.add( filterSettlementInstructionsCategory ); filterMenu.add( filterTradeCaptureReportingCategory ); filterMenu.add( filterRegistrationInstructionsCategory ); filterMenu.add( filterPositionsMaintenanceCategory ); filterMenu.add( filterCollateralManagementCategory ); add( filterMenu ); helpMenu.add( about ); add( helpMenu ); reset(); addActionListener( this ); filterAllMessages.setSelected( true ); }
|
public MenuBar() throws HeadlessException { super(); int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); fileOpen.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, keyMask ) ); fileMenu.add( fileOpen ); fileClose.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_W, keyMask ) ); fileMenu.add( fileClose ); fileMenu.add( new JSeparator() ); fileTrace.setEnabled( true ); fileMenu.add( fileTrace ); add( fileMenu ); viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); add( viewMenu ); filterAllMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_M, keyMask ) ); filterMenu.add( filterAllMessages ); filterAdministrativeMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_D, keyMask ) ); filterMenu.add( filterAdministrativeMessages ); filterApplicationMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, keyMask ) ); filterMenu.add( filterApplicationMessages ); filterMenu.add( new JSeparator() ); filterCustomFilter.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F, keyMask ) ); filterMenu.add( filterCustomFilter ); filterMenu.add( new JSeparator() ); filterMenu.add( filterIndicationCategory ); filterMenu.add( filterEventCommunicationCategory ); filterMenu.add( filterQuotationNegotiationCategory ); filterMenu.add( filterMarketDataCategory ); filterMenu.add( filterSecurityAndTradingSessionCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterSingleGeneralOrderHandlingCategory ); filterMenu.add( filterCrossOrdersCategory ); filterMenu.add( filterMultilegOrdersCategory ); filterMenu.add( filterListProgramBasketTradingCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterAllocationCategory ); filterMenu.add( filterConfirmationCategory ); filterMenu.add( filterSettlementInstructionsCategory ); filterMenu.add( filterTradeCaptureReportingCategory ); filterMenu.add( filterRegistrationInstructionsCategory ); filterMenu.add( filterPositionsMaintenanceCategory ); filterMenu.add( filterCollateralManagementCategory ); add( filterMenu ); helpMenu.add( helpAbout ); add( helpMenu ); reset(); addActionListener( this ); filterAllMessages.setSelected( true ); }
| 1,119,706
|
public void addActionListener( ActionListener l ) { if( l == this ) { fileOpen.addActionListener( l ); fileClose.addActionListener( l ); fileTrace.addActionListener( l ); autosizeColumns.addActionListener( l ); autosizeAndHideColumns.addActionListener( l ); about.addActionListener( l ); Component[] components = filterMenu.getMenuComponents(); for( int i = 0; i < components.length; ++i ) { try { JCheckBoxMenuItem component = (JCheckBoxMenuItem)components[i]; component.addActionListener(l); } catch( ClassCastException cce ) { } } } else { actionListeners.add( l ); } }
|
public void addActionListener( ActionListener l ) { if( l == this ) { fileOpen.addActionListener( l ); fileClose.addActionListener( l ); fileTrace.addActionListener( l ); autosizeColumns.addActionListener( l ); autosizeAndHideColumns.addActionListener( l ); about.addActionListener( l ); Component[] components = filterMenu.getMenuComponents(); for( int i = 0; i < components.length; ++i ) { try { JCheckBoxMenuItem component = (JCheckBoxMenuItem)components[i]; component.addActionListener(l); } catch( ClassCastException cce ) { } } } else { actionListeners.add( l ); } }
| 1,119,707
|
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { /* CalSvcI svci = form.getCalSvcI(); if (form.getGuest()) { return "doNothing"; } boolean subscribe = false; String reqpar = request.getParameter("subscribe"); if (Util.checkNull(reqpar) != null) { subscribe = true; } else { reqpar = request.getParameter("unsubscribe"); } int calid; if (Util.checkNull(reqpar) != null) { try { calid = Integer.parseInt(reqpar); } catch (Throwable t) { form.getErr().emit("org.bedework.error.badcalendarid"); return "error"; } BwCalendar cal = svci.getCalendar(calid); if (cal == null) { form.getErr().emit("org.bedework.error.badcalendarid"); return "error"; } if (subscribe) { svci.addSubscription(cal); return "edit"; } svci.removeSubscription(cal); return "success"; } /* Not subscribe/unsubscribe - do the edit actions */ return "success"; }
|
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { /* CalSvcI svci = form.getCalSvcI(); if (form.getGuest()) { return "doNothing"; } boolean subscribe = false; String reqpar = request.getParameter("subscribe"); if (Util.checkNull(reqpar) != null) { subscribe = true; } else { reqpar = request.getParameter("unsubscribe"); } int calid; if (Util.checkNull(reqpar) != null) { try { calid = Integer.parseInt(reqpar); } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.badcalendarid"); return "error"; } BwCalendar cal = svci.getCalendar(calid); if (cal == null) { form.getErr().emit("org.bedework.client.error.badcalendarid"); return "error"; } if (subscribe) { svci.addSubscription(cal); return "edit"; } svci.removeSubscription(cal); return "success"; } /* Not subscribe/unsubscribe - do the edit actions */ return "success"; }
| 1,119,708
|
public StereotypeFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); }
|
public StereotypeFigure() { GridLayout layoutThis = new GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); }
| 1,119,710
|
public StereotypeFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); }
|
public StereotypeFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(Graphics.LINE_SOLID); createContents(); }
| 1,119,711
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { WrapLabel stereotypeFigure_StereotypeLabel0 = new WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,712
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,713
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); RectangleFigure stereotypeFigure_NameContainer0 = new RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,714
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,715
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,716
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); CenterLayout layoutStereotypeFigure_NameContainer0 = new CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,717
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); WrapLabel stereotypeFigure_NameLabel1 = new WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,718
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); RectangleFigure stereotypeFigure_AttributesCompartment0 = new RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,719
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,720
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,721
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,722
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.