Dae galera…
O problema é o seguinte:
Quando aperto ponto ou dou Ctrl + Space algumas classes feitas por mim não aparecem, ou melhor, só aparecem quando as acesso e faço uso de algo que leia seu pacote. Se alguém souber como fazer, já tentei adicionar no classpath entre outras coisas mas não funcionou e outra coisa, quando faço o que disse ali em cima e mudo uma classe do seu pacote, ele não atualiza este sistema de facilitação de codificação.
Valeu galera, e se alguem tiver algum tutorial em portugues do Sun One, agradeco a ajuda.
Dae galera…
O problema é o seguinte:
Quando aperto ponto ou dou Ctrl + Space algumas classes feitas por mim não aparecem, ou melhor, só aparecem quando as acesso e faço uso de algo que leia seu pacote. Se alguém souber como fazer, já tentei adicionar no classpath entre outras coisas mas não funcionou e outra coisa, quando faço o que disse ali em cima e mudo uma classe do seu pacote, ele não atualiza este sistema de facilitação de codificação.
Valeu galera, e se alguem tiver algum tutorial em portugues do Sun One, agradeco a ajuda.
Pelo que eu entendi, você deve atualizar o “parser database”, procure no help do Sun ONE Studio (eu utilizo o 4 Update 1 Community Edition), pela palavra “parser”, basicamente é isso :
To update the parser database:
1 - In the Explorer, right-click the package or filesystem containing the classes you want to add to the database. Choose Tools Update Parser Database from the contextual menu.
The Update Parser Database dialog box is displayed.
2 - Type a file name (with no extension) in the Parser Database File Prefix field of the Update Parser Database dialog box. Use a different prefix for each package or filesystem.
Two files are created for each parsed filesystem: <prefix>.jcs, where classes and interfaces are stored, and <prefix>.jcb, where methods and fields are stored.
3 - In the Storage Levels panel of the same dialog box, select the level of code for classes, fields, and methods that you want included in the database.
For libraries that you cannot edit, you probably want the parser database to include only protected and public members. For libraries (filesystems) that you are working on, you might want to also include private members.
Only static fields and methods are included in the database.
4 - Click OK to add the files to the parser database.
hmichel
Valeu cara, funcionou beleza…
Soh uma outra pergunta, agora cada vez que eu adiciono uma classe a um pacote e reinicio a IDE tenho que realizar isto??? Pq qnd eu edito uma classe ele consegue enxergar a classe mas se eu reinicio ele nao aparece, ai tenho que fazer o parser sempre???
Valeu pela ajuda…
douglasfs
“hmichel”:
Valeu cara, funcionou beleza…
Soh uma outra pergunta, agora cada vez que eu adiciono uma classe a um pacote e reinicio a IDE tenho que realizar isto??? Pq qnd eu edito uma classe ele consegue enxergar a classe mas se eu reinicio ele nao aparece, ai tenho que fazer o parser sempre???
Valeu pela ajuda…
Acho que isso responde ao seu problema (help do Sun ONE):
Automatic Parser Database Updates
You need to update the parser database only one time per filesystem. The first update defines the parser database files for a filesystem. After that, the database is automatically updated for that filesystem whenever a file is saved or successfully parsed.
Java files that are open in the Source Editor are automatically parsed after two seconds of idle time. You can configure this time by choosing Tools Options and expanding the the Editing node. Select the Java Sources node, and edit the Automatic Parsing Delay property. If you disable automatic parsing by setting the property to zero, files are parsed only when saved.
There are two exceptions to automatic parser database updates:
If you modify code externally, the parser database is not updated until the file is modified within the IDE and successfully parsed or saved. Alternatively, you can update the parser database as described above after source is modified externally.
Examples of external modification include using an external editor or updating files from a team source code versioning server.
If you delete classes or packages, they are not automatically removed from the parser database. If you don’t want these elements to appear in the code completion box, select the root of the filesystem where they used to exist and update the parser database as described above.
If you delete a whole filesystem, you need to manually delete the corresponding parser database files. See Deleting Parser Database Files for more information.
hmichel
Cara valeu mesmo…
Sei q foi um pouco se preguiça ler o help, mas to fazendo isso…
Muito obrigado pela ajuda…
urubatan
sem querer ser chato
quando estiver com preguiça de ler o help, tente o google, ele localiza as coisas para você