[JBoss JIRA] (JBIDE-18188) HTML5 Palette: provide a way to filter palette groups, option to show only palette groups which libraries defined on the current html page
by Daniel Azarov (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18188?page=com.atlassian.jira.plugi... ]
Daniel Azarov edited comment on JBIDE-18188 at 10/3/14 1:39 PM:
----------------------------------------------------------------
class PaletteAdapter
{code}
public Control createControl(Composite root) {
Control result = null;
model = PaletteModel.getInstance(paletteContents);
viewer = new PaletteViewer(viewPart, model);
if(isMobile()) {
Composite container = new Composite(root, SWT.FILL);
container.setLayout(new GridLayout(1, false));
Composite header = new Composite(container, SWT.FILL);
header.setLayout(new GridLayout(2, false));
header.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL));
final Text text = new Text(header, SWT.SINGLE|SWT.BORDER|SWT.FILL|SWT.SEARCH|SWT.ICON_SEARCH|SWT.ICON_CANCEL);
GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL);
text.setLayoutData(data);
text.setMessage(PaletteUIMessages.PALETTE_FILTER_MESSAGE);
text.addModifyListener(new ModifyListener(){
@Override
public void modifyText(ModifyEvent e) {
filter(text.getText());
}
});
ToolBar toolbar = new ToolBar(header, SWT.NONE);
toolbar.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
ToolItem item = new ToolItem(toolbar, SWT.CHECK);
item.setImage(JSTWebUIImages.getInstance().getOrCreateImage(JSTWebUIImages.FILTER_IMAGE));
item.setToolTipText("Show only palette groups which libraries defined on the page");
item.addSelectionListener(new SelectionListener(){
@Override
public void widgetSelected(SelectionEvent e) {
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
}
});
palette = viewer.createControl(container);
palette.setLayoutData(new GridData(GridData.FILL_BOTH));
result = container;
filter("");
}else{
result = palette = viewer.createControl(root);
}
viewer.setPaletteViewerPreferences(new PaletteViewerPreferences());
PaletteRoot paletteRoot = model.getPaletteRoot();
viewer.setPaletteRoot(paletteRoot);
descriptionManager = new DescriptionManager(viewer);
descriptionManager.install(palette);
if(isJSF()){
dropManager = new DropTargetManager(viewer, model);
dropManager.install(palette);
}
modelListener = new PaletteModelListener();
model.addModelTreeListener(modelListener);
viewer.addDragStartSupport();
return result;
}
{code}
JSTWebUIImages
{code}
public static String FILTER_IMAGE = VIEWS_PATH + "filter.png"; //$NON-NLS-1$
{code}
was (Author: dazarov):
class PaletteAdapter
{code}
public Control createControl(Composite root) {
Control result = null;
model = PaletteModel.getInstance(paletteContents);
viewer = new PaletteViewer(viewPart, model);
if(isMobile()) {
Composite container = new Composite(root, SWT.FILL);
container.setLayout(new GridLayout(1, false));
Composite header = new Composite(container, SWT.FILL);
header.setLayout(new GridLayout(2, false));
header.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL));
final Text text = new Text(header, SWT.SINGLE|SWT.BORDER|SWT.FILL|SWT.SEARCH|SWT.ICON_SEARCH|SWT.ICON_CANCEL);
GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL);
text.setLayoutData(data);
text.setMessage(PaletteUIMessages.PALETTE_FILTER_MESSAGE);
text.addModifyListener(new ModifyListener(){
@Override
public void modifyText(ModifyEvent e) {
filter(text.getText());
}
});
ToolBar toolbar = new ToolBar(header, SWT.NONE);
toolbar.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
ToolItem item = new ToolItem(toolbar, SWT.CHECK);
item.setImage(JSTWebUIImages.getInstance().getOrCreateImage(JSTWebUIImages.FILTER_IMAGE));
item.setToolTipText("Show only palette groups which libraries defined on the page");
item.addSelectionListener(new SelectionListener(){
@Override
public void widgetSelected(SelectionEvent e) {
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
}
});
palette = viewer.createControl(container);
palette.setLayoutData(new GridData(GridData.FILL_BOTH));
result = container;
filter("");
}else{
result = palette = viewer.createControl(root);
}
viewer.setPaletteViewerPreferences(new PaletteViewerPreferences());
PaletteRoot paletteRoot = model.getPaletteRoot();
viewer.setPaletteRoot(paletteRoot);
descriptionManager = new DescriptionManager(viewer);
descriptionManager.install(palette);
if(isJSF()){
dropManager = new DropTargetManager(viewer, model);
dropManager.install(palette);
}
modelListener = new PaletteModelListener();
model.addModelTreeListener(modelListener);
viewer.addDragStartSupport();
return result;
}
{code}
> HTML5 Palette: provide a way to filter palette groups, option to show only palette groups which libraries defined on the current html page
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-18188
> URL: https://issues.jboss.org/browse/JBIDE-18188
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: jsp/jsf/xml/html source editing
> Affects Versions: 4.3.x
> Reporter: Daniel Azarov
> Assignee: Daniel Azarov
> Labels: new_and_noteworthy
> Fix For: 4.3.x
>
> Attachments: filter.png
>
>
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 6 months
[JBoss JIRA] (JBIDE-18188) HTML5 Palette: provide a way to filter palette groups, option to show only palette groups which libraries defined on the current html page
by Daniel Azarov (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18188?page=com.atlassian.jira.plugi... ]
Daniel Azarov commented on JBIDE-18188:
---------------------------------------
class PaletteAdapter
{code}
public Control createControl(Composite root) {
Control result = null;
model = PaletteModel.getInstance(paletteContents);
viewer = new PaletteViewer(viewPart, model);
if(isMobile()) {
Composite container = new Composite(root, SWT.FILL);
container.setLayout(new GridLayout(1, false));
Composite header = new Composite(container, SWT.FILL);
header.setLayout(new GridLayout(2, false));
header.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL));
final Text text = new Text(header, SWT.SINGLE|SWT.BORDER|SWT.FILL|SWT.SEARCH|SWT.ICON_SEARCH|SWT.ICON_CANCEL);
GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL);
text.setLayoutData(data);
text.setMessage(PaletteUIMessages.PALETTE_FILTER_MESSAGE);
text.addModifyListener(new ModifyListener(){
@Override
public void modifyText(ModifyEvent e) {
filter(text.getText());
}
});
ToolBar toolbar = new ToolBar(header, SWT.NONE);
toolbar.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
ToolItem item = new ToolItem(toolbar, SWT.CHECK);
item.setImage(JSTWebUIImages.getInstance().getOrCreateImage(JSTWebUIImages.FILTER_IMAGE));
item.setToolTipText("Show only palette groups which libraries defined on the page");
item.addSelectionListener(new SelectionListener(){
@Override
public void widgetSelected(SelectionEvent e) {
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
}
});
palette = viewer.createControl(container);
palette.setLayoutData(new GridData(GridData.FILL_BOTH));
result = container;
filter("");
}else{
result = palette = viewer.createControl(root);
}
viewer.setPaletteViewerPreferences(new PaletteViewerPreferences());
PaletteRoot paletteRoot = model.getPaletteRoot();
viewer.setPaletteRoot(paletteRoot);
descriptionManager = new DescriptionManager(viewer);
descriptionManager.install(palette);
if(isJSF()){
dropManager = new DropTargetManager(viewer, model);
dropManager.install(palette);
}
modelListener = new PaletteModelListener();
model.addModelTreeListener(modelListener);
viewer.addDragStartSupport();
return result;
}
{code}
> HTML5 Palette: provide a way to filter palette groups, option to show only palette groups which libraries defined on the current html page
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-18188
> URL: https://issues.jboss.org/browse/JBIDE-18188
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: jsp/jsf/xml/html source editing
> Affects Versions: 4.3.x
> Reporter: Daniel Azarov
> Assignee: Daniel Azarov
> Labels: new_and_noteworthy
> Fix For: 4.3.x
>
>
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 6 months
[JBoss JIRA] (JBIDE-17920) Tag Libs are not added when externalizing strings
by Alexey Kazakov (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17920?page=com.atlassian.jira.plugi... ]
Alexey Kazakov updated JBIDE-17920:
-----------------------------------
Fix Version/s: 4.3.x
> Tag Libs are not added when externalizing strings
> -------------------------------------------------
>
> Key: JBIDE-17920
> URL: https://issues.jboss.org/browse/JBIDE-17920
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: jsp/jsf/xml/html source editing
> Affects Versions: 4.2.0.Beta3
> Environment: JBDS Beta3-v20140712-0200-B178
> Reporter: Vlado Pakan
> Assignee: Daniel Azarov
> Priority: Minor
> Fix For: 4.3.x
>
>
> 1. Create JSF 1.2 Kick Start project
> 2. Open inputUserName.jsp
> 3. Delete line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> 4. Select "User" string within <title> tag
> 5. Click on Externalize selected string... toolitem
> 6. Check Create a new properties file check box
> 7. Click Next> two times
> 8. Select via <f:loadBundle> tag on current page
> 9. Click OK
> ERROR: Tag lib defintion for 'f' name space is not added to web page
> ERROR: The same applies for inputname.xhtml page created within JSF 2.0 Kick Start project
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 6 months
[JBoss JIRA] (JBIDE-17943) make it easy to add ionic libraries to cordova project
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17943?page=com.atlassian.jira.plugi... ]
Gorkem Ercan commented on JBIDE-17943:
--------------------------------------
We are implementing only a part of bower functionality so it is a fairly small implementation. If I have to choose between scala and node, I would go with scala. OTOH this is a small implementation. and I do not see any license info, perhaps it is better to do it as an eclipse builder.
[~maxandersen] where do you think we should do this work though? Eclipse Thym, JBT?
> make it easy to add ionic libraries to cordova project
> ------------------------------------------------------
>
> Key: JBIDE-17943
> URL: https://issues.jboss.org/browse/JBIDE-17943
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: aerogear-hybrid
> Reporter: Max Rydahl Andersen
> Assignee: Gorkem Ercan
> Fix For: 4.3.x
>
>
> today enabling ionic on a cordova project requires manual setup - can we make it easier ?
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 6 months