Dear Veer,

please write such emails to the jpp-developer list. For such purposes we 
have it! If people know a solution or have some ideas they will respond 
to you.

Furthermore.. i think you simply should study exitings code (so look for 
example in *OpenJumpConfiguration.java* how plugins are initialized). I 
think it is your assignment and you need to understand what you to do 
and in which order. This can accomplished only if you "learn by 
yourself". I know the Indian systems is quite different (i.e. you will 
get a detailed task) to the western, but in western society students get 
a task and try to accomplish it without as much help as possible. We - 
being volunteers - can give you some initial help, but can not give you 
complete guidance. That is something we expect from your supervisor.

For the case that you feel you are running out of time - try to 
negotiate with your supervisor.

Finally - as we are a couple of non-native english speaker, you shoudl 
try to write and describe in your best english (although it does not 
need to be formal).

best regards
Stefan Steiniger

veer pal singh wrote:

> Hi all,
> plz guide me.
>
> ---------- Forwarded message ----------
> From: *veer pal singh* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> >
> Date: Aug 29, 2007 3:53 PM
> Subject: wnt 2 add tools in my toolbox like zooming one one 
> feature,goto last,goto first feature etc
> To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> Hi Sir,
> Actually consider that i have my toolbox and further want 2 add more 
> tools to that like
> 1. Zooming features one by one(forward n backward)
> 2.go last feature
> 3.go first feature
> etc
>
> or u can understand by.. what r the toolbutton in folowing code in 
> AttributeTab.java having attached
> with the viewattribute table. so my aim to that my user get frusted 
> doing work on existing so i want to add
> my new toolbox which having the tools as givin in follwoing code .
> n one more thing is that.......>
> when user click on any perticular part of layer then message should 
> come on toolbox[title bar] in such a ways
> that what count[number of that feature] out of which[total] feature.
> and this same thing should come with zooming tools.
>
> so Sergio Baños Calvo now u have understud my problem. please help n 
> guide me sir coz  my work is getting late.
>
>
> regards
> veer
>
>
>
> **************************************************
> private void installToolBarButtons( WorkbenchContext workbenchContext, 
> final TaskFrame taskFrame )
>     {
>         toolBar.add(new JButton(),
>                 
> I18N.getString("workbench.ui.AttributeTab.zoom-to-previous-row"), 
> //$NON-NLS-1$
>                 IconLoader.icon("SmallUp.gif"), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             zoom(panel.topSelectedRow().previousRow());
>                             panel.selectInLayerViewPanel();
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck));
>        
>        
>         toolBar.add(new JButton(), 
> I18N.getString("workbench.ui.AttributeTab.zoom-to-next-row "), 
> //$NON-NLS-1$
>                 IconLoader.icon("SmallDown.gif"), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             zoom(panel.topSelectedRow().nextRow());
>                             panel.selectInLayerViewPanel();
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable (t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck));
>         toolBar.add(new JButton(), I18N
>                 .getString(" 
> workbench.ui.AttributeTab.zoom-to-selected-rows"), //$NON-NLS-1$
>                 IconLoader.icon("SmallMagnify.gif"), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             // panel.zoom(panel.selectedFeatures());
>                             panel.zoom(panel.selectedGeometries());
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         rowsSelectedEnableCheck));
>         toolBar.add(new JButton(), 
> I18N.getString("workbench.ui.AttributeTab.zoom-to-full-extent"), 
> //$NON-NLS-1$
>                 IconLoader.icon("SmallWorld.gif "), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             taskFrame.getLayerViewPanel 
> ().getViewport().zoomToFullExtent();
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck));
>        
>         toolBar.add(new JButton(), 
> I18N.getString("workbench.ui.AttributeTab.inverse"), //$NON-NLS-1$
>                 IconLoader.icon("inverse.gif"), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             new 
> InverseSelectionWaitDialog(JUMPWorkbench.getFrameInstance(), true)
>                                     .setVisible(true);
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck));
>
>         ClearSelectionPlugIn clearSelectionPlugIn = new 
> ClearSelectionPlugIn();
>         toolBar.add(new JButton(), clearSelectionPlugIn.getName(), GUIUtil
>                 .toSmallIcon(clearSelectionPlugIn.getIcon ()), 
> AbstractPlugIn
>                 .toActionListener(clearSelectionPlugIn, 
> workbenchContext, null),
>                 new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         rowsSelectedEnableCheck));
>
>         toolBar.add(new JButton(), 
> I18N.getString("workbench.ui.AttributeTab.flash-selected-rows"), 
> //$NON-NLS-1$
>                 IconLoader.icon("Flashlight.gif"), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             panel.flashSelectedFeatures();
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         rowsSelectedEnableCheck));
>
>         FeatureInfoPlugIn featureInfoPlugIn = new FeatureInfoPlugIn();
>
>         toolBar.add(new JButton(), featureInfoPlugIn.getName(), GUIUtil
>                 .toSmallIcon(FeatureInfoTool.ICON),
>                 FeatureInfoPlugIn.toActionListener(featureInfoPlugIn, 
> workbenchContext, null),
>                 new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         rowsSelectedEnableCheck));
>
>         DeleteSelectedItemsPlugIn deleleteSelectedItemsPlugin = new 
> DeleteSelectedItemsPlugIn();
>
>         toolBar.add(new JButton(), 
> deleleteSelectedItemsPlugin.getName(), GUIUtil
>                 .toSmallIcon( DeleteSelectedItemsPlugIn.ICON), 
> DeleteSelectedItemsPlugIn
>                 .toActionListener(deleleteSelectedItemsPlugin, 
> workbenchContext, null),
>                 new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         
> rowsSelectedEnableCheck).add(layersWithSelectedFeaturesAreEditableEnableCheck));
>
>         final AlwaysOnTopPlugIn alwaysOnTopPlugin = new AlwaysOnTopPlugIn(
>                 (JInternalFrame) layerManagerProxy);
>
>         JButton alwaysOnTopButton = new JButton();
>         alwaysOnTopButton.addActionListener(new ActionListener(){
>             public void actionPerformed( ActionEvent arg0 ) {
>                 ((JButton) arg0.getSource()).setIcon(GUIUtil
>                         .toSmallIcon((ImageIcon) 
> alwaysOnTopPlugin.getIcon()));
>             }
>         });
>         toolBar.add(alwaysOnTopButton, alwaysOnTopPlugin.getName(), 
> GUIUtil
>                 .toSmallIcon((ImageIcon) alwaysOnTopPlugin.getIcon()), 
> AlwaysOnTopPlugIn
>                 .toActionListener(alwaysOnTopPlugin, workbenchContext, 
> null),
>                 new MultiEnableCheck().add(taskFrameEnableCheck));
>
>         toolBar.add(new JButton(), I18N
>                 
> .getString("workbench.ui.AttributeTab.AttributeTab.move-selection-to-the-top"),
>  
> //$NON-NLS-1$
>                 IconLoader.icon("SelectionUp.gif "), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             setLayerViewPanelUpdates(false);
>                             for( int i = 0; i < 
> getSelectedLayers().length; i++ ) {
>                                 panel.getTablePanel((Layer) 
> getSelectedLayers()[i])
>                                         .sortSelectedFeatures(true);
>                             }
>                             setLayerViewPanelUpdates(true);
>
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         rowsSelectedEnableCheck));
>         toolBar.add(new JButton(), I18N
>                 
> .getString("workbench.ui.AttributeTab.AttributeTab.move-selection-to-the-bottom"),
>  
> //$NON-NLS-1$
>                 IconLoader.icon("SelectionDown.gif"), //$NON-NLS-1$
>                 new ActionListener(){
>                     public void actionPerformed( ActionEvent e ) {
>                         try {
>                             setLayerViewPanelUpdates(false);
>                             for( int i = 0; i < 
> getSelectedLayers().length; i++ ) {
>                                 panel.getTablePanel((Layer) 
> getSelectedLayers()[i])
>                                         .sortSelectedFeatures(false);
>                             }
>                             setLayerViewPanelUpdates(true);
>                         } catch (Throwable t) {
>                             errorHandler.handleThrowable(t);
>                         }
>                     }
>                 }, new 
> MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>                         rowsSelectedEnableCheck));
>
>     }
> ********************************************************************************************
>
>
> On 8/29/07, * [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>* < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Send Kosmo_int mailing list submissions to
>             [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>              http://lists.saig.es/mailman/listinfo/kosmo_int
>     or, via email, send a message with subject or body 'help' to
>              [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>     You can reach the person managing the list at
>             [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of Kosmo_int digest..."
>
>
>     Today's Topics:
>
>        1. Re: want to seperate this viewing tool (Sergio Ba?os Calvo)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Wed, 29 Aug 2007 08:22:46 +0200
>     From: Sergio Ba?os Calvo <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     Subject: Re: [Kosmo_int] want to seperate this viewing tool
>     To: Lista de Kosmo Internacional < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>
>     Message-ID: <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>
>     Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>     Good morning, Veer.
>
>     Here is an example of the code you can find at
>     com.vividsolutions.jump.workbench.ui.AttributeTab.java. We can
>     find two
>     cases:
>
>     1) We add the functionality without creating a plugin:
>
>     toolBar.add(new JButton(),
>     I18N.getString("workbench.ui.AttributeTab.inverse "), //$NON-NLS-1$
>                     IconLoader.icon("inverse.gif"), //$NON-NLS-1$
>                     new ActionListener(){
>                         public void actionPerformed( ActionEvent e ) {
>                             try {
>                                 new
>     InverseSelectionWaitDialog(JUMPWorkbench.getFrameInstance(), true)
>                                         .setVisible(true);
>                             } catch (Throwable t) {
>                                  errorHandler.handleThrowable(t);
>                             }
>                         }
>                     }, new
>     MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck));
>     Well, you have all you need here to build a plugin from it:
>
>     - The name: I18N.getString("workbench.ui.AttributeTab.inverse")
>     - The icon: IconLoader.icon("inverse.gif")
>     - The code for the execute method:
>     try {
>         new InverseSelectionWaitDialog( JUMPWorkbench.getFrameInstance(),
>     true).setVisible(true);
>     } catch (Throwable t) {
>         errorHandler.handleThrowable(t)
>     }
>     - The checks: taskFrameEnableCheck, layersEnableCheck (you also
>     need to
>     add a new one in most of the cases in order to check that a
>     ViewAttributesFrame is active)
>
>
>     2) We add an existent plugin to the toolbar.
>
>     ClearSelectionPlugIn clearSelectionPlugIn = new
>     ClearSelectionPlugIn();
>     toolBar.add(new JButton(), clearSelectionPlugIn.getName (), GUIUtil
>                     .toSmallIcon(clearSelectionPlugIn.getIcon()),
>     AbstractPlugIn
>                     .toActionListener(clearSelectionPlugIn,
>     workbenchContext, null),
>                     new
>     MultiEnableCheck().add(taskFrameEnableCheck).add(layersEnableCheck).add(
>
>                             rowsSelectedEnableCheck));
>
>     In this case, the plugin exists and can be added to the toolbox as any
>     of the examples:
>
>     toolbox.addPlugIn(GUIUtil.toSmallIcon(clearSelectionPlugIn.getIcon
>     ()),
>                     new ClearSelectionPlugIn(),
>
>     ClearSelectionPlugIn.createEnableCheck(toolbox.getContext()),
>                      toolbox.getContext());
>
>     Greetings,
>
>     veer pal singh escribió:
>     > Hi Good morning Sir,
>     > As suggestion u have send me to write code for tool as i have told
>     > u.but sir there is problem i don't have seperate code for each n
>     every
>     > tool as i explained 2 u. n what u have writtin for CADtool i
>     > understood that n u have seperate plugin for each tool. so if u can
>     > see  com.vividsolutions.jump.workbench.ui.AttributeTab.java have
>     givin
>     > all my required but hw can i use them. plz help me sir.
>     >
>     > regards
>     > veer
>     >
>     >
>     > On 8/24/07, * Sergio Baños Calvo* <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]> <mailto: [EMAIL PROTECTED] <mailto:[EMAIL 
> PROTECTED]>>>
>     > wrote:
>     >
>     >     Good morning, Veer.
>     >
>     >     As I can understand from your mail, you want to build a
>     toolbox that
>     >     contains the tools that you have mentioned.
>     >
>     >     1) In the ext directory, you have the CADToolsExtension,
>     that create a
>     >     toolbox and populate it with a group of custom plugins. After
>     >     that, it
>     >     adds itself to the main application toolbar. You can use it
>     as example
>     >     in order to create your own toolbox (you have more examples
>     around,
>     >     search for references to the class ToolboxPlugIn).
>     >     2) To show the number of polygons out of total, you have some
>     >     options:
>     >
>     >         - Change the toolbox dialog title when the current row
>     changes.
>     >         - Add a label to the toolbox and update when the current row
>     >     changes.
>     >
>     >     Hope this helps.
>     >
>     >     Greetings,
>     >
>     >     veer pal singh escribió:
>     >     > Hi All
>     >     > I want to seperate the tool from "view/edit attribute" which
>     >     contain some
>     >     > tools like.
>     >     >
>     >     > "zoom to next row"
>     >     > "zoom to previous row"
>     >     > "zoom to top row"
>     >     > "zoom to bottum row"
>     >     > i would like take these for tool on one tool bar and open just
>     >     > clicking like view/edit attribute plugin.
>     >     > so any one please help me. and one more thing want to show
>     >     numbring of
>     >     > polygons on toolbar top(out of total polygons etc ), when i'm
>     >     zooming
>     >     > one by one . so please help me
>     >     >
>     >     >  i have attached the file that to be need. also mention
>     the place to
>     >     > be shift seperate tool. which contain
>     >     > ("zoom to next row"
>     >     > "zoom to previous row"
>     >     > "zoom to top row"
>     >     > "zoom to bottum row") options
>     >     >
>     >     > thanks n regards
>     >     > veer
>     >     >
>     >     >
>     >     >
>     >    
>     ------------------------------------------------------------------------
>     >     >
>     >     >
>     >    
>     ------------------------------------------------------------------------
>     >     >
>     >     > _______________________________________________
>     >     > Kosmo_int mailing list
>     >     > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:
>     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     >     > http://lists.saig.es/mailman/listinfo/kosmo_int
>     >     >
>     >
>     >     --
>     >
>     >     Sergio Baños Calvo
>     >
>     >     Jefe de desarrollos
>     >     Sistemas Abiertos de Información Geográfica, S.L. (SAIG S.L.)
>     >     Tlfno. móvil: 685005960
>     >     Tlfno. fijo: (+34) 954788876
>     >
>     >     E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL 
> PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>
>     >
>     >
>
>     --
>
>     Sergio Baños Calvo
>
>     Jefe de desarrollos
>     Sistemas Abiertos de Información Geográfica, S.L. (SAIG S.L.)
>     Tlfno. móvil: 685005960
>     Tlfno. fijo: (+34) 954788876
>
>     E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
>     ------------------------------
>
>     _______________________________________________
>     Kosmo_int mailing list
>     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     http://lists.saig.es/mailman/listinfo/kosmo_int
>
>
>     End of Kosmo_int Digest, Vol 3, Issue 6
>     ***************************************
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to