com.triadsoft.properties.editors
Class PropertiesEditor

java.lang.Object
  extended by MultiPageEditorPart
      extended by com.triadsoft.properties.editors.PropertiesEditor
All Implemented Interfaces:
ILocalizedPropertyFileListener

public class PropertiesEditor
extends MultiPageEditorPart
implements ILocalizedPropertyFileListener

Editor que muestra la grilla de datos de las propiedades, viendo en la primera columna las claves y en las demás los distintos idiomas

Author:
Triad (flores.leonardo@triadsoft.com.ar)

Field Summary
protected static java.lang.String KEY_COLUMN_ID
           
 
Constructor Summary
PropertiesEditor()
          Creates a multi-page editor example.
 
Method Summary
protected  void createPages()
          Creates the pages of the multi-page editor.
 void dispose()
          The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors.
 void doSave(IProgressMonitor monitor)
          Saves the multi-page editor's document.
 void doSaveAs()
          Saves the multi-page editor's document as another file.
 ResourceList getResource()
           
 void gotoMarker(IMarker marker)
           
protected  void handlePropertyChange(int propertyId)
           
 void init(IEditorSite site, IEditorInput editorInput)
          The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.
 boolean isDirty()
           
 boolean isSaveAsAllowed()
           
 void keyAdded(java.lang.String key, java.util.Locale locale)
           
protected  void pageChange(int newPageIndex)
          Calculates the contents of page 2 when the it is activated.
 void resourceChanged(IResourceChangeEvent event)
          Eschucha los cambios de los recursos en el workspace, por el momento no aplica
 void setFocus()
           
protected  void tableChanged()
           
 void valueChanged(java.lang.String key, java.lang.String value, java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_COLUMN_ID

protected static final java.lang.String KEY_COLUMN_ID
See Also:
Constant Field Values
Constructor Detail

PropertiesEditor

public PropertiesEditor()
Creates a multi-page editor example.

Method Detail

getResource

public ResourceList getResource()

createPages

protected void createPages()
Creates the pages of the multi-page editor.


tableChanged

protected void tableChanged()

handlePropertyChange

protected void handlePropertyChange(int propertyId)

isDirty

public boolean isDirty()

dispose

public void dispose()
The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors. Subclasses may extend.


doSave

public void doSave(IProgressMonitor monitor)
Saves the multi-page editor's document.


doSaveAs

public void doSaveAs()
Saves the multi-page editor's document as another file. Also updates the text for page 0's tab, and updates this multi-page editor's input to correspond to the nested editor's.


gotoMarker

public void gotoMarker(IMarker marker)

setFocus

public void setFocus()

init

public void init(IEditorSite site,
                 IEditorInput editorInput)
          throws PartInitException
The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.

Throws:
PartInitException

isSaveAsAllowed

public boolean isSaveAsAllowed()

pageChange

protected void pageChange(int newPageIndex)
Calculates the contents of page 2 when the it is activated.


resourceChanged

public void resourceChanged(IResourceChangeEvent event)
Eschucha los cambios de los recursos en el workspace, por el momento no aplica


valueChanged

public void valueChanged(java.lang.String key,
                         java.lang.String value,
                         java.util.Locale locale)
Specified by:
valueChanged in interface ILocalizedPropertyFileListener

keyAdded

public void keyAdded(java.lang.String key,
                     java.util.Locale locale)
Specified by:
keyAdded in interface ILocalizedPropertyFileListener