rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
XmlTypeMirror baseType = getBaseType(); AnnotationProcessorEnvironment env = getEnv(); Types typeUtils = env.getTypeUtils(); | public ElementRef(MemberDeclaration delegate, TypeDefinition typedef) { super(delegate, typedef); XmlElementRef xmlElementRef = getAnnotation(XmlElementRef.class); XmlElementRefs xmlElementRefs = getAnnotation(XmlElementRefs.class); if (xmlElementRefs != null) { XmlElementRef[] elementRefChoices = xm... | |
if ((xmlRootElement != null) && (typeUtils.isSubtype(declaredType, typeMirror))) { try { XmlTypeMirror explicitType = ((EnunciateFreemarkerModel) FreemarkerModel.get()).getXmlType(declaredType); this.choices.add(new ElementRef((MemberDeclaration) getDelegate(), getTypeDefinition(), explicitType)); } catch (XmlTypeExcep... | if ((xmlRootElement != null) && (typeUtils.isSubtype(declaredType, typeMirror)) && (declaredType.getDeclaration() instanceof ClassDeclaration)) { RootElementDeclaration ref = model.findRootElementDeclaration((ClassDeclaration) declaredType.getDeclaration()); this.choices.add(new ElementRef((MemberDeclaration) getDelega... | public ElementRef(MemberDeclaration delegate, TypeDefinition typedef) { super(delegate, typedef); XmlElementRef xmlElementRef = getAnnotation(XmlElementRef.class); XmlElementRefs xmlElementRefs = getAnnotation(XmlElementRefs.class); if (xmlElementRefs != null) { XmlElementRef[] elementRefChoices = xm... |
if ((xmlElementRef != null) && (xmlElementRef.type() != XmlElementRef.DEFAULT.class)) { try { this.referencedType = ((EnunciateFreemarkerModel) FreemarkerModel.get()).getXmlType(xmlElementRef.type()); } catch (XmlTypeException e) { throw new ValidationException(getPosition(), e.getMessage()); } } else { this.referenced... | this.ref = loadRef(); | public ElementRef(MemberDeclaration delegate, TypeDefinition typedef) { super(delegate, typedef); XmlElementRef xmlElementRef = getAnnotation(XmlElementRef.class); XmlElementRefs xmlElementRefs = getAnnotation(XmlElementRefs.class); if (xmlElementRefs != null) { XmlElementRef[] elementRefChoices = xm... |
this.typeDef = ((EnunciateFreemarkerModel) FreemarkerModel.get()).findTypeDefinition(classDeclaration); if (this.typeDef == null) { | TypeDefinition typeDef = ((EnunciateFreemarkerModel) FreemarkerModel.get()).findTypeDefinition(classDeclaration); if (typeDef == null) { | public XmlClassType(ClassType delegate) throws XmlTypeException { super(delegate); ClassDeclaration classDeclaration = delegate.getDeclaration(); if (classDeclaration == null) { throw new XmlTypeException("Unknown type definition: " + delegate); } this.typeDef = ((EnunciateFreemarkerModel) Freemar... |
this.typeDef = typeDef; | public XmlClassType(ClassType delegate) throws XmlTypeException { super(delegate); ClassDeclaration classDeclaration = delegate.getDeclaration(); if (classDeclaration == null) { throw new XmlTypeException("Unknown type definition: " + delegate); } this.typeDef = ((EnunciateFreemarkerModel) Freemar... | |
for (DeploymentModule module : modules) { | for (DeploymentModule module : getAllModules()) { | public void begin(String namespace, String name, Attributes attributes) throws Exception { DeploymentModule found = null; for (DeploymentModule module : modules) { if ((name.equals(module.getName())) && (namespace.equals(module.getNamespace()))) { found = module; break; } ... |
cmdBack=new Command("Back", Command.BACK, 99); cmdSelect=new Command("Select", Command.OK, 1); | cmdBack=new Command(SR.MS_BACK, Command.BACK, 99); cmdSelect=new Command(SR.MS_SELECT, Command.OK, 1); | public void commandAction(Command command, Item item) { if (recentList.isEmpty()) return; parentView=display.getCurrent(); cmdBack=new Command("Back", Command.BACK, 99); cmdSelect=new Command("Select", Command.OK, 1); list=new List(label, List.IMPLICIT); lis... |
cf.soundVol=sndVol.getValue()*10; | public void commandAction(Command c, Displayable d) { if (c==cmdOk) { roster.getSelectedFlags(ra); message.getSelectedFlags(mv); application.getSelectedFlags(ap); startup.getSelectedFlags(su); history.getSelectedFlags(his); autoaway.getSelectedFlags(... | |
error.addCommand(new Command(SR.MS_OK, Command.BACK, 1)); | error.addCommand(new Command("OK", Command.BACK, 1)); | public void errorLog(String s){ if (s==null) return; if (s.length()==0) return; Alert error=new Alert("Error: ", s, null, null); //locale error.addCommand(new Command(SR.MS_OK, Command.BACK, 1)); //error.setTimeout(30000); display.setCurrent(error, display.getCurrent()); M... |
public Row getQueryFields(String sql, boolean param, Row inform) throws KettleDatabaseException | public Row getQueryFields(String sql, boolean param) throws KettleDatabaseException | public Row getQueryFields(String sql, boolean param, Row inform) throws KettleDatabaseException { Row fields; DBCache dbcache = DBCache.getInstance(); DBCacheEntry entry=null; // Check the cache first! if (dbcache!=null) { entry = new DBCacheEntry(databaseMeta.getName(), sql); fields = dbcache.get(entry)... |
Row fields; DBCache dbcache = DBCache.getInstance(); DBCacheEntry entry=null; if (dbcache!=null) { entry = new DBCacheEntry(databaseMeta.getName(), sql); fields = dbcache.get(entry); if (fields!=null) { return fields; } } if (connection==null) return null; String debug=""; try { if (inform==null && databaseMeta.... | return getQueryFields(sql, param, null); | public Row getQueryFields(String sql, boolean param, Row inform) throws KettleDatabaseException { Row fields; DBCache dbcache = DBCache.getInstance(); DBCacheEntry entry=null; // Check the cache first! if (dbcache!=null) { entry = new DBCacheEntry(databaseMeta.getName(), sql); fields = dbcache.get(entry)... |
return EMPTY_PREFIX; | return null; | protected static String lookupPrefix(String namespace) { if (namespace == null) { return EMPTY_PREFIX; } return getNamespacesToPrefixes().get(namespace); } |
if (getPrefix() != EMPTY_PREFIX) { | if (getPrefix() != null) { | public String toString() { String string = getLocalPart(); if (getPrefix() != EMPTY_PREFIX) { string = getPrefix() + ":" + string; } return string; } |
protected int getImageIndex() { return -1; } | protected int getImageIndex() { return iconIndex; } | protected int getImageIndex() { return -1; } |
ListWriter listWriter = new ListWriter(); | ListWriter listWriter = new ListWriter((Object[]) null, null, null); | public void writeObject(Object object, MessageWriter writer, MessageContext context) throws XFireFault { Person person = (Person) object; Object value = person.getCity(); //if it's an XmlList: int[] values = new int[10]; TypeMapping typeMapping = getTypeMapping(); Type componentType = typeMapping.ge... |
public EnunciateAnnotationProcessor() { | public EnunciateAnnotationProcessor() throws EnunciateException { | public EnunciateAnnotationProcessor() { this(new EnunciateConfiguration()); } |
public EnunciateAnnotationProcessorFactory(EnunciateConfiguration config) { | public EnunciateAnnotationProcessorFactory(EnunciateConfiguration config) throws EnunciateException { | public EnunciateAnnotationProcessorFactory(EnunciateConfiguration config) { this.processor = new EnunciateAnnotationProcessor(config); } |
return new QName(this.referencedType.getNamespace(), this.referencedType.getName()); | return new QName(this.ref.getTargetNamespace(), this.ref.getName()); | public QName getRef() { return new QName(this.referencedType.getNamespace(), this.referencedType.getName()); } |
template.process(model, new OutputStreamWriter(System.out)); | processTemplate(template, model); | protected void processTemplate(URL templateURL, Object model) throws IOException, TemplateException { Configuration configuration = getConfiguration(); configuration.setDefaultEncoding("UTF-8"); Template template = configuration.getTemplate(templateURL.toString()); template.process(model, new OutputStream... |
public int getTitleBGndRGB() {return 0x338888;} | public int getTitleBGndRGB() {return Colors.BAR_BGND;} | public int getTitleBGndRGB() {return 0x338888;} |
public int getTitleRGB() {return titlecolor;} | public int getTitleRGB() {return Colors.BALLOON_INK;} | public int getTitleRGB() {return titlecolor;} |
new ArchiveList(display, null).setParentView(StaticData.getInstance().roster); | new ArchiveList(display, null, -1).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o).setParen... |
return; | public void connectionTerminated( Exception e ) { //l.setTitleImgL(0); //System.out.println( "Connection terminated" ); if( e != null ) { String error=e.getClass().getName()+"\n"+e.getMessage(); errorLog(error); e.printStackTrace(); } setProgress(S... | |
catch( Exception e ) { System.out.println( "An unknown exception happened:" ); e.printStackTrace( System.out ); throw e; } | public Object proceed() throws Throwable { try { return method.invoke( target, arguments ); } catch( InvocationTargetException e ) { throw e.getTargetException(); } catch( Exception e ) { System.out.println( "An unknown exce... | |
if (cf.loginstatus>4) { sendPresence(Presence.PRESENCE_INVISIBLE); } else { sendPresence(cf.loginstatus); } | if (cf.autoLogin) { if (cf.loginstatus>4) { sendPresence(Presence.PRESENCE_INVISIBLE); } else { sendPresence(cf.loginstatus); } } else sendPresence(Presence.PRESENCE_ONLINE); | public void blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String type = (String) data.getTypeAttribute(); String id=(String) data.getAttribute("id"); if (id!=null) { if (id.startsW... |
System.err.println("Took " + (dt / 1e6) + " ms"); | System.out.println(getName() + " took " + (dt / 1e6) + " ms"); | public void testSpeed() throws Exception { long t0 = System.nanoTime(); // cycle through 10 recurrence rules, advancing and pulling a few dates off // each for (int runs = 5000; --runs >= 0;) { runOne(); } long dt = System.nanoTime() - t0; System.err.println("Took " + (dt / 1e6) + " ms"); } |
cl.CURSOR_OUTLINE=loadInt(skinFile, "CURSOR_OUTLINE"); | public void loadSkin(){ skin=null; int skinfl=SkinFile.getSelectedIndex(); String skinFile=(String)Skinfiles[0].elementAt(skinfl); cl=Colors.getInstance(); cl.BALLOON_INK=loadInt(skinFile, "BALLOON_INK"); cl.BALLOON_BGND=loadInt(skinFile,... | |
if (Version.getPlatformName().indexOf("SIE") > -1) { return; } else { | public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | |
} | public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | |
public AppendNick(Display display, Contact to) { | public AppendNick(Display display, Contact to, MessageEdit messageEdit, int caretPos) { | public AppendNick(Display display, Contact to) { super(display); //this.display=display; setTitleItem(new Title(SR.MS_SELECT_NICKNAME)); nicknames=new Vector(); for (Enumeration e=StaticData.getInstance().roster.getHContacts().elements(); e.hasMoreElements(); ) { ... |
me=messageEdit; this.caretPos=caretPos; | public AppendNick(Display display, Contact to) { super(display); //this.display=display; setTitleItem(new Title(SR.MS_SELECT_NICKNAME)); nicknames=new Vector(); for (Enumeration e=StaticData.getInstance().roster.getHContacts().elements(); e.hasMoreElements(); ) { ... | |
alert.addCommand(new Command(SR.MS_OK, Command.BACK, 1)); | alert.addCommand(new Command("OK", Command.BACK, 1)); | public int blockArrived(JabberDataBlock data) { //System.out.println("<< "+data.toString()); if (!(data instanceof Iq)) return JabberBlockListener.BLOCK_REJECTED; String id=data.getAttribute("id"); if (!id.startsWith("disco")) return JabberBlockListener.BLOCK_REJECTED; ... |
public JobEntryMail() | public JobEntryMail(String n) | public JobEntryMail() { this(""); allocate(0); } |
this(""); | super(n, ""); setType(JobEntryInterface.TYPE_JOBENTRY_MAIL); | public JobEntryMail() { this(""); allocate(0); } |
public PushModuleRule(DeploymentModule module) { this.module = module; | public PushModuleRule(Set<DeploymentModule> modules) { this.modules = modules; | public PushModuleRule(DeploymentModule module) { this.module = module; } |
public void begin(String string, String string1, Attributes attributes) throws Exception { getDigester().push(this.module); | public void begin(String namespace, String name, Attributes attributes) throws Exception { DeploymentModule found = null; for (DeploymentModule module : modules) { if ((name.equals(module.getName())) && (namespace.equals(module.getNamespace()))) { found = module; break; } } if (found == null) { throw new IllegalStateE... | public void begin(String string, String string1, Attributes attributes) throws Exception { getDigester().push(this.module); } |
this.modules = new ArrayList<DeploymentModule>(); this.xmlModule = new XMLDeploymentModule(); this.xfireModule = new XFireDeploymentModule(); this.modules.add(xmlModule); this.modules.add(xfireModule); | this.modules = new TreeSet<DeploymentModule>(); Iterator discoveredModules = Service.providers(DeploymentModule.class); while (discoveredModules.hasNext()) { DeploymentModule discoveredModule = (DeploymentModule) discoveredModules.next(); this.modules.add(discoveredModule); } | public EnunciateConfiguration() { this.modules = new ArrayList<DeploymentModule>(); this.xmlModule = new XMLDeploymentModule(); this.xfireModule = new XFireDeploymentModule(); this.modules.add(xmlModule); this.modules.add(xfireModule); } |
public List<DeploymentModule> getAllModules() { | public SortedSet<DeploymentModule> getAllModules() { | public List<DeploymentModule> getAllModules() { return modules; } |
digester.addRule("enunciate/modules/xml", new PushModuleRule(config.getXMLModule())); digester.addSetProperties("enunciate/modules/xml"); digester.addRule("enunciate/modules/xfire", new PushModuleRule(config.getXFireModule())); digester.addSetProperties("enunciate/modules/xfire"); | digester.addRule("enunciate/modules/*", new PushModuleRule(config.getAllModules())); digester.addSetProperties("enunciate/modules/*"); | public static EnunciateConfiguration readFrom(InputStream in) throws IOException, SAXException { Digester digester = new EnunciateDigester(); digester.setValidating(true); digester.setSchema(EnunciateConfiguration.class.getResource("enunciate.xsd").toString()); digester.setNamespaceAware(true); digeste... |
sendErrorMessage(query.getResponseStream(), e.getMessage()); | try { sendErrorMessage(resp.getOutputStream(), e.getMessage()); } catch (IOException e1) { throw new ServletException(internalErrorMsg, e); } | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException { SOSQuery query = null; try { // parse query arguments String queryString = req.getQueryString(); logger.info("GET REQUEST: " + queryString + " from IP " + req.getRemoteAddr()); SOSRequestReader reader... |
sendErrorMessage(queryInfo.getResponseStream(), e.getMessage()); | try { sendErrorMessage(resp.getOutputStream(), e.getMessage()); } catch (IOException e1) { e.printStackTrace(); } | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException { SOSQuery queryInfo = null; logger.info("POST REQUEST from IP " + req.getRemoteAddr()); try { InputStream xmlRequest = new PostRequestFilter(new BufferedInputStream(req.getInputStream())); DOMReader dom = new DOMRea... |
sendErrorMessage(queryInfo.getResponseStream(), "Invalid XML request. Please check request format"); | try { sendErrorMessage(resp.getOutputStream(), "Invalid XML request. Please check request format"); } catch (IOException e1) { e.printStackTrace(); } | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException { SOSQuery queryInfo = null; logger.info("POST REQUEST from IP " + req.getRemoteAddr()); try { InputStream xmlRequest = new PostRequestFilter(new BufferedInputStream(req.getInputStream())); DOMReader dom = new DOMRea... |
rd.addElement("1:/"); rd.addElement("2:/"); rd.addElement("3:/"); | protected Vector rootDirs() { //System.out.println("Siemens root"); Vector rd = new Vector(); rd.addElement("0:/"); rd.addElement("1:/"); rd.addElement("2:/"); rd.addElement("3:/"); rd.addElement("4:/"); return rd; } | |
public MathFloat (int tmpValue, byte tmpDecimal) { | public MathFloat (int tmpValue) { | public MathFloat (int tmpValue, byte tmpDecimal) { value = tmpValue; decimal = tmpDecimal; } |
decimal = tmpDecimal; | public MathFloat (int tmpValue, byte tmpDecimal) { value = tmpValue; decimal = tmpDecimal; } | |
if (connected) new RosterItemActions(display, o); | if (connected) new RosterItemActions(display, o).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new StatusSelect(display, null); return; | new StatusSelect(display, null).setParentView(StaticData.getInstance().roster); break; | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new ActiveContacts(display, null); | new ActiveContacts(display, null).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new AlertProfile(display); | new AlertProfile(display).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new Bookmarks(display, null); | new Bookmarks(display, null).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new ArchiveList(display, null); | new ArchiveList(display, null).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new RosterToolsMenu(display); | new RosterToolsMenu(display).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
new AccountSelect(display, false); | new AccountSelect(display, false).setParentView(StaticData.getInstance().roster); | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... |
break; | public void eventOk(){ destroyView(); boolean connected= ( StaticData.getInstance().roster.theStream != null ); MenuItem me=(MenuItem) getFocusedObject(); if (me==null) return; int index=me.index; switch (index) { case 0: //actions if (connected) new RosterItemActions(display, o); ... | |
this.arguments = methodInvocation.getArguments(); this.method = methodInvocation.getMethod(); this.proxy = methodInvocation.getProxy(); this.invocationClass = methodInvocation.getClass(); | arguments = methodInvocation.getArguments(); method = methodInvocation.getMethod(); proxy = methodInvocation.getProxy(); invocationClass = methodInvocation.getClass(); | public Object intercept( Invocation methodInvocation ) throws Throwable { this.arguments = methodInvocation.getArguments(); this.method = methodInvocation.getMethod(); this.proxy = methodInvocation.getProxy(); this.invocationClass = methodInvocation.getClass();... |
if (c.equals(cmdSave)) { } if (c.equals(cmdLoad)) { } if (c.equals(cmdBreak)) { screenTree.stopThread(); screenTree.removeCommand(cmdBreak); screenTree.addCommand(cmdResume); } if (c.equals(cmdResume)) { screenTree.removeCommand(cmdResume); screenTree.addCommand(cmdBreak); } | public void commandAction(Command c, Displayable d) { // TODO Auto-generated method stub } | |
System.out.println("--- Core: DATAINIT FINISHED: " + tmpVer + " ---"); screenTree = new ScreenTree(data); data.readDataFinalize(); screenTree.interval(); | if (tmpVer > 0) { System.out.println("--- Core: DATAINIT FINISHED: " + tmpVer + " ---"); screenTree = new ScreenTree(data); data.readDataFinalize(); screenTree.interval(); } else { System.out.println("--- Core: DATAINIT No Record Found: " + tmpVer + " ---"); } | protected void startApp() throws MIDletStateChangeException { data = new FileIO("BonzaiGotchi"); screenTree = new ScreenTree(); Display.getDisplay(this).setCurrent(screenTree); screenTree.interval();/* data.writeDataInit(GlobalVars.SAVE_RECORDSTORE_VERSION); screenTree.writeData(data); data.writeDataFinalize(... |
System.out.println("--- LogWaterRequest: " + logWaterRequest + "---"); this.repaint(); | this.repaint(); | public ScreenTree() { super(); // setzten der GlobalVars GlobalVars.TIME_STAMP = new Date(); GlobalVars.DISPLAY_X_WIDTH = (short)super.getWidth(); GlobalVars.DISPLAY_Y_HEIGHT = (short)super.getHeight(); water = Integer.MAX_VALUE; log = new Element((short)0, (short)(GlobalVars.DISPLAY_X_WIDTH / 2), GlobalVar... |
threadInterval.run(); | threadRun = true; threadWaiting = false; threadInterval.start(); | public void interval() { threadInterval = new Thread(this); threadInterval.run(); } |
LightControl.setLight(cf.lightState); | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... | |
Config.getInstance().confMessageCount=msgLimit; Config.getInstance().defGcRoom=room+"@"+host; Config.getInstance().saveToStorage(); | public void commandAction(Command c, Displayable d){ if (c==cmdCancel) { destroyView(); } if (c==cmdBookmarks) { new Bookmarks(display, null); } if (c==cmdJoin || c==cmdAdd) { String nick=nickField.getString(); String host=hostField.getString(); String room=room... | |
theStream.addBlockListener(new BookmarkQurery(BookmarkQurery.LOAD)); | theStream.addBlockListener(new BookmarkQuery(BookmarkQuery.LOAD)); | public void loginSuccess() { // залогинились. теперь, если был реконнект, то просто пошлём статус if (reconnect) { querysign=reconnect=false; //sendPresence(myStatus); sendPresence(cf.loginstatus); return; } // иначе будем читать ростер... |
theStream.addBlockListener(new BookmarkQuery(BookmarkQuery.LOAD)); | public void loginSuccess() { // залогинились. теперь, если был реконнект, то просто пошлём статус if (reconnect) { querysign=reconnect=false; //sendPresence(myStatus); sendPresence(cf.loginstatus); return; } // иначе будем читать ростер... | |
sd.roster.setLight(true); | public void keyPressed(int keyCode) { //System.out.println("blocked press"+(char) keyCode); if (keyCode==-24) { destroyView(); sd.roster.setLight(true); } kHold=0; } | |
if (cf.lightState) { | if (cf.lightState==true) { | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... |
if (!cf.fullscreen && !cf.digitMemMonitor) { | if (cf.fullscreen==false) { int activeType=Command.SCREEN; String platform=Version.getPlatformName(); if (platform.startsWith("Nokia")) activeType=Command.BACK; if (platform.startsWith("Intent")) activeType=Command.BACK; if (platform.startsWith("j2me")) activeType=Command.BACK; | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... |
int activeType=Command.SCREEN; String platform=Version.getPlatformName(); if (platform.startsWith("Nokia")) activeType=Command.BACK; if (platform.startsWith("Intent")) activeType=Command.BACK; if (platform.startsWith("j2me")) activeType=Command.BACK; | cmdActiveContacts=new Command(SR.MS_ACTIVE_CONTACTS, activeType, 3); | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... |
cmdActiveContacts=new Command(SR.MS_ACTIVE_CONTACTS, activeType, 3); addCommand(cmdStatus); addCommand(cmdActions); addCommand(cmdActiveContacts); addCommand(cmdAlert); addCommand(cmdAdd); addCommand(cmdConference); | addCommand(cmdStatus); addCommand(cmdActions); addCommand(cmdActiveContacts); addCommand(cmdAlert); addCommand(cmdAdd); addCommand(cmdConference); | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... |
if (Version.getPlatformName().startsWith("SIE-")) { if (cf.lightState) { addCommand(cmdTurnOffLight); lightState=1; } else { addCommand(cmdTurnOnLight); lightState=0; } } addCommand(cmdTools); addCommand(cmdArchive); addCommand(cmdInfo); addCommand(cmdAccount); | if (Version.getPlatformName().startsWith("SIE-")) { if (cf.lightState) { addCommand(cmdTurnOffLight); lightState=1; } else { addCommand(cmdTurnOnLight); lightState=0; } } | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... |
if (Version.getPlatformName().startsWith("Nokia9500") || Version.getPlatformName().startsWith("Nokia9300") || Version.getPlatformName().startsWith("Nokia9300i")) { } else { addCommand(cmdQuit); } | addCommand(cmdTools); addCommand(cmdArchive); addCommand(cmdInfo); addCommand(cmdAccount); if (Version.getPlatformName().startsWith("Nokia9500") || Version.getPlatformName().startsWith("Nokia9300") || Version.getPlatformName().startsWith("Nokia9300i")) { } else { addCommand(cmdQuit); } | public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu... |
NodeList cssElts = dom.getElements(dimElt, "CssParameter"); for (int i=0; i<cssElts.getLength(); i++) | NodeList axisElts = dom.getElements(dimElt, "Axis"); for (int i=0; i<axisElts.getLength(); i++) | public Dimensions readDimensions(DOMReader dom, Element dimElt) { Dimensions dim = new Dimensions(); // read all css parameters NodeList cssElts = dom.getElements(dimElt, "CssParameter"); for (int i=0; i<cssElts.getLength(); i++) { Element cssElt = (Element)c... |
Element cssElt = (Element)cssElts.item(i); String paramName = dom.getAttributeValue(cssElt, "name"); if (paramName.equalsIgnoreCase("width")) { ScalarParameter widthData = cssReader.readCssParameter(dom, cssElt); dim.setWidth(widthData); } else if (paramName.equalsIgnoreCase("length")) { ScalarParameter lengthData = c... | Element axisElt = (Element)axisElts.item(i); String axisName = dom.getAttributeValue(axisElt, "name"); String axisMapping = dom.getElementValue(axisElt, "PropertyName"); dim.put(axisName, axisMapping); | public Dimensions readDimensions(DOMReader dom, Element dimElt) { Dimensions dim = new Dimensions(); // read all css parameters NodeList cssElts = dom.getElements(dimElt, "CssParameter"); for (int i=0; i<cssElts.getLength(); i++) { Element cssElt = (Element)c... |
Element dimElt = dom.getElement(symElt, "RasterDimensions"); | Element dimElt = dom.getElement(symElt, "Dimensions"); | public void readRasterParameters(RasterSymbolizer rasterSym, DOMReader dom, Element symElt) { // read red channel Element redElt = dom.getElement(symElt, "ChannelSelection/RedChannel"); rasterSym.setRedChannel(readRasterChannel(dom, redElt)); // read green channel Element gre... |
readGeometryElt(texSym, dom, symElt); readRasterParameters(texSym, dom, symElt); | public TextureSymbolizer readTexture(DOMReader dom, Element symElt) { TextureSymbolizer texSym = new TextureSymbolizer(); readGeometryElt(texSym, dom, symElt); readRasterParameters(texSym, dom, symElt); // read grid dimensions Element dimElt = dom.getElement(symElt, "Gr... | |
Element dimElt = dom.getElement(symElt, "GridDimensions"); | Element gridElt = dom.getElement(symElt, "Grid"); readGeometryElt(texSym, dom, gridElt); Element dimElt = dom.getElement(gridElt, "Dimensions"); | public TextureSymbolizer readTexture(DOMReader dom, Element symElt) { TextureSymbolizer texSym = new TextureSymbolizer(); readGeometryElt(texSym, dom, symElt); readRasterParameters(texSym, dom, symElt); // read grid dimensions Element dimElt = dom.getElement(symElt, "Gr... |
Element rasterElt = dom.getElement(symElt, "Raster"); readRasterParameters(texSym, dom, rasterElt); | public TextureSymbolizer readTexture(DOMReader dom, Element symElt) { TextureSymbolizer texSym = new TextureSymbolizer(); readGeometryElt(texSym, dom, symElt); readRasterParameters(texSym, dom, symElt); // read grid dimensions Element dimElt = dom.getElement(symElt, "Gr... | |
return this.delegate.readObject(reader, context); | if (this.delegate != null) { if (collection) { Collection collection = newCollection(); QName firstItemName = reader.getName(); while (firstItemName.equals(reader.getName())) { collection.add(this.delegate.readObject(reader, context)); } if (getTypeClass().isArray()) { if (collection.size() > 0) { Object first = colle... | public Object readObject(MessageReader reader, MessageContext context) throws XFireFault { return this.delegate.readObject(reader, context); } |
setSchemaType(new JaxbType(typeClass).getSchemaType()); | public void setTypeClass(Class typeClass) { super.setTypeClass(typeClass); XmlRootElement rootElementInfo = (XmlRootElement) typeClass.getAnnotation(XmlRootElement.class); if (rootElementInfo != null) { String name = typeClass.getSimpleName(); if ((rootElementInfo.name() != null) && (!"".equals(roo... | |
protected Class stripFirstTypeArg(ParameterizedType parameterizedType) throws IllegalJAXWSTypeException { | protected Type stripFirstTypeArg(ParameterizedType parameterizedType) { | protected Class stripFirstTypeArg(ParameterizedType parameterizedType) throws IllegalJAXWSTypeException { Type[] typeArgs = parameterizedType.getActualTypeArguments(); Class typeArg; if (typeArgs.length == 0) { typeArg = Object.class; } else if (typeArgs[0] instanceof Class) { typeArg = (Clas... |
Class typeArg; | protected Class stripFirstTypeArg(ParameterizedType parameterizedType) throws IllegalJAXWSTypeException { Type[] typeArgs = parameterizedType.getActualTypeArguments(); Class typeArg; if (typeArgs.length == 0) { typeArg = Object.class; } else if (typeArgs[0] instanceof Class) { typeArg = (Clas... | |
typeArg = Object.class; } else if (typeArgs[0] instanceof Class) { typeArg = (Class) typeArgs[0]; } else if (typeArgs[0] instanceof ParameterizedType) { typeArg = (Class) ((ParameterizedType) typeArgs[0]).getRawType(); | return Object.class; | protected Class stripFirstTypeArg(ParameterizedType parameterizedType) throws IllegalJAXWSTypeException { Type[] typeArgs = parameterizedType.getActualTypeArguments(); Class typeArg; if (typeArgs.length == 0) { typeArg = Object.class; } else if (typeArgs[0] instanceof Class) { typeArg = (Clas... |
throw new IllegalJAXWSTypeException(); | return typeArgs[0]; | protected Class stripFirstTypeArg(ParameterizedType parameterizedType) throws IllegalJAXWSTypeException { Type[] typeArgs = parameterizedType.getActualTypeArguments(); Class typeArg; if (typeArgs.length == 0) { typeArg = Object.class; } else if (typeArgs[0] instanceof Class) { typeArg = (Clas... |
return typeArg; | protected Class stripFirstTypeArg(ParameterizedType parameterizedType) throws IllegalJAXWSTypeException { Type[] typeArgs = parameterizedType.getActualTypeArguments(); Class typeArg; if (typeArgs.length == 0) { typeArg = Object.class; } else if (typeArgs[0] instanceof Class) { typeArg = (Clas... | |
this.delegate.writeObject(object, writer, context); | if (this.delegate != null) { if (collection) { for (Object item : ((Collection) object)) { this.delegate.writeObject(item, writer, context); } } else { this.delegate.writeObject(object, writer, context); } } else { try { Marshaller marshaller = getJAXBContext().createMarshaller(); marshaller.setProperty(Marshaller.JAXB... | public void writeObject(Object object, MessageWriter writer, MessageContext context) throws XFireFault { this.delegate.writeObject(object, writer, context); } |
queryElt.setAttribute("typeNames", "ExtrinsicObject ExtrinsicObject__A Association"); | queryElt.setAttribute("typeNames", "ExtrinsicObject"); | protected Element buildQueryKeywordElement(DOMWriter domWriter, Element rootElt, String keyword) throws OWSException { String kws = "%" + keyword + "%"; Element queryElt = domWriter.addElement(rootElt, "csw:Query"); queryElt.setAttribute("typeNames", "ExtrinsicObject ExtrinsicObject__A Association"); domWriter.s... |
Element andElt = domWriter.addElement(orElt, "ogc:And"); addPropertyIsEqualToProperty(domWriter, andElt, "/Association/@sourceObject", "/ExtrinsicObject/@id"); addPropertyIsEqualToProperty(domWriter, andElt, "/Association/@targetObject", "/A/@id"); addPropertyIsEqualToLiteral(domWriter, andElt, "/Association/@associati... | protected Element buildQueryKeywordElement(DOMWriter domWriter, Element rootElt, String keyword) throws OWSException { String kws = "%" + keyword + "%"; Element queryElt = domWriter.addElement(rootElt, "csw:Query"); queryElt.setAttribute("typeNames", "ExtrinsicObject ExtrinsicObject__A Association"); domWriter.s... | |
protected String convert(TypeMirror typeMirror) { | protected String convert(TypeMirror typeMirror) throws TemplateModelException { | protected String convert(TypeMirror typeMirror) { boolean isArray = typeMirror instanceof ArrayType; String conversion = super.convert(typeMirror); //if we're using converting to a java 5+ client code, take into account the type arguments. if ((this.jdk15) && (typeMirror instanceof DeclaredType)) { D... |
response.setContentType("text/plain"); | response.setContentType("text/xml"); | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String filename = request.getPathInfo(); if (filename == null) { filename = ""; } if (filename.startsWith("/")) { filename = filename.substring(1); } if (filename.trim().l... |
XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(responseTypeInfo.propOrder()[0]))) { | XmlType typeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((typeInfo == null) || (typeInfo.propOrder() == null) || ((typeInfo.propOrder().length == 1) && "".equals(typeInfo.propOrder()[0]))) { | protected PropertyDescriptor[] loadOrderedProperties(Class wrapperClass) throws XFireFault { XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(respon... |
String[] responsePropOrder = responseTypeInfo.propOrder(); BeanInfo responseBeanInfo = null; | String[] propOrder = typeInfo.propOrder(); BeanInfo beanInfo; | protected PropertyDescriptor[] loadOrderedProperties(Class wrapperClass) throws XFireFault { XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(respon... |
responseBeanInfo = Introspector.getBeanInfo(wrapperClass); | beanInfo = Introspector.getBeanInfo(wrapperClass); | protected PropertyDescriptor[] loadOrderedProperties(Class wrapperClass) throws XFireFault { XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(respon... |
PropertyDescriptor[] pds = responseBeanInfo.getPropertyDescriptors(); PropertyDescriptor[] outputProperties = new PropertyDescriptor[responsePropOrder.length]; RESPONSE_PROPERTY_LOOP : for (int i = 0; i < responsePropOrder.length; i++) { String property = responsePropOrder[i]; | PropertyDescriptor[] pds = beanInfo.getPropertyDescriptors(); PropertyDescriptor[] props = new PropertyDescriptor[propOrder.length]; RESPONSE_PROPERTY_LOOP : for (int i = 0; i < propOrder.length; i++) { String property = propOrder[i]; | protected PropertyDescriptor[] loadOrderedProperties(Class wrapperClass) throws XFireFault { XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(respon... |
outputProperties[i] = descriptor; | props[i] = descriptor; | protected PropertyDescriptor[] loadOrderedProperties(Class wrapperClass) throws XFireFault { XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(respon... |
return outputProperties; | return props; | protected PropertyDescriptor[] loadOrderedProperties(Class wrapperClass) throws XFireFault { XmlType responseTypeInfo = (XmlType) wrapperClass.getAnnotation(XmlType.class); if ((responseTypeInfo == null) || (responseTypeInfo.propOrder() == null) || ((responseTypeInfo.propOrder().length == 1) && "".equals(respon... |
if (threadWaiting) { interval(); } | protected void paint(Graphics g) { log.draw(g); } | |
int n = 0; int counter = 0; | int counterDraw = 0; | public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... |
for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); | for (int i = 0; i <= 700 && threadRun; i++) { System.out.println("--- INTERVAL: " + ++GlobalVars.COUNTERINTERVAL + " ---"); | public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... |
if (++counter == 6) { this.repaint(); try { Thread.sleep(70); } catch (InterruptedException e) { e.printStackTrace(); } counter = 0; | if (++counterDraw == 12) { threadWaiting = true; break; | public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... |
data.writeData(GlobalVars.COUNTERINTERVAL); | public void writeData(FileIO data) { data.writeData(GlobalVars.TIME_STAMP.getTime()); data.writeData(water); log.writeData(data); } | |
public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); | public Element(FileIO data) { System.out.println("--- Element Constructor LOADED ---"); | public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.